Go Compiler Explorer similar to Matt Godbolt's godbolt.org, but lighter, easier to set up and with Go specific features.
You can check it out at goce.w1ck3dg0ph3r.dev or run goce locally.
Additional features include:
- showing inlineability analysis (recursion, function complexity cost, etc.)
- showing inlined function calls
- showing variables that escape to heap
You will need go, node and pnpm to build goce.
-
Build ui:
cd ui pnpm install pnpm build-only
-
Build server:
# ui will be embedded into the binary go build .
Goce can be configured via:
goce.toml
file located in$PWD
,/etc/goce
or$HOME/.config/goce
- environment variables
.env
file
See goce.example.toml, .env.example and config.go for details.
-
Right now goce supports the following go compilers:
- the one found in
$PATH
- all versions insalled in
~/sdk/go*
(the default location for multiple go installations on *nix systems) - explicitly specified binary
- the one found in
-
goce stores compilation cache and shared code snippets in
cache.db
andshared.db
respectively.- the format can vary between versions, so you may have to remove these files.