> However, the playground has no GOROOT or build cache or anything available: https://play.golang.org/p/RPGwtZSJSPQ
But, isn't it ok to let the playground own a GOROOT? On Mon, Dec 23, 2019 at 5:47 AM Axel Wagner <[email protected]> wrote: > Parsing is not the problem, type-checking is. For that, the > type-information of the imported packages (in this case "fmt") must be > loaded from somewhere. However, the playground has no GOROOT or build cache > or anything available: https://play.golang.org/p/RPGwtZSJSPQ > There will always be programs that don't run on the playground but run > locally, FWIW. That's the nature of a sandbox :) > > On Sun, Dec 22, 2019 at 5:58 PM T L <[email protected]> wrote: > >> The code from the std go/types package parses the demo code well on local >> machine, but not in playground: >> >> https://play.golang.org/p/BlHHgdscaXj >> >> What is the cause? >> >> -- >> You received this message because you are subscribed to the Google Groups >> "golang-nuts" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/golang-nuts/a0266c54-2e3f-496f-a640-9be2d97fa6ab%40googlegroups.com >> <https://groups.google.com/d/msgid/golang-nuts/a0266c54-2e3f-496f-a640-9be2d97fa6ab%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CAHbs%3DNbOnatXKQ8Uy8DoxJXeVvzOS%3DoT-dAQRhjNeYRduOQKYw%40mail.gmail.com.
