Playground sandbox technology, AFAIK, is not open. One reason for this, I think, is that publicly disclosing implementation information would make any attempted attack much easier.
I would advise that if you copied your own sandbox, provide fake / empty / limited versions of the packages {unsafe, runtime, net, os, syscall} and disable GOMAXPROCS above 1. But the design should be adapted to your very definition of the sandbox. Is file access yes / no / limited? Is the network yes / no / limited? etc. Last but not least, you probably need to disable CGO, assembler code, and possibly even create tags.
Consider the above list.
zzzz
source share