CodePlayground is a playground tool for go and rust language.
Use homebrews to install code-playground.
brew tap trendyol/trendyol-tap
brew install code-playground
Commands open default (vim) editor
code-playground go
code-playground rust
If you want to use another editor for code-playground, export PLAYGROUND ENVIRONMENT
value.
e.g. export PLAYGROUND_ENVIRONMENT="subl -w"
(use sublime editor)
e.g. export PLAYGROUND_ENVIRONMENT="code -w"
(use vscode editor)
This command save to playground.
code-playground go my-go-playground
code-playground rust my-rust-playground
This flag generate to playground link.
code-playground go -s
code-playground rust -s
This flag import to shared playground link.
code-playground go -i "https://play.golang.org/p/9geTEmeOzJO"
code-playground rust -i "https://play.rust-lang.org/?gist=62a1c0b6f2aee0f7ebd78cfbddaae0e4"
Output
>>> code-playground rust -s
-------------------------------------------------
Hello, code-playground
-------------------------------------------------
⇨ https://play.rust-lang.org/?gist=7f28f8a1a7f35c35a903f983fa95b9e0