goplay

command
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

README

Goplay

This is a command-line client for https://play.golang.org. It uses https://github.com/haya14busa/goplay API client under the hood.

Key differences from https://github.com/haya14busa/goplay/tree/v1.0.0/cmd/goplay:

  1. added the -endpoint flag option
  2. the -share flag now defaults to false
  3. the -openbrowser flag now defaults to false

Example:

echo 'package main

import "fmt"

func main() {
    fmt.Println("Hello, 世界")
}
' | goplay

Hint: China users can try goplay -endpoint https://golang.google.cn/_.

Build from source

Trim path and strip symbols for a minimal build:

GO111MODULE=on go install -v -x -trimpath -ldflags="-s -w" github.com/imacks/goplay/cmd/goplay@v1.0.0

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL