goone

command module
v0.0.0-...-a566d0d Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 3 Imported by: 0

README

Goone

Goone is a packing go code utility tool. Mainly, This help you to create snippet for competitive programming. This packs the target source code with depended other code share the same package.

豪腕(Go-One)

Install

go get github.com/masu-mi/goone

Usage

Usage:
  goone [command]

Available Commands:
  gen         Generate Packed source files
  help        Help about any command
  pack        Pack target source code file with depended files share the package name into single file

Flags:
  -c, --config string   config file path (default: ~/.config/goone/config.toml)
  -h, --help            help for goone

Use "goone [command] --help" for more information about a command.

Examples

goone pack ./main.go --package main -o ./example_out.go
goone gen ./         --package main -o ./generated -p snip-compe-
Switch template

You can set template file path in config.toml like this.

templatefile = "/Users/masumi/.config/goone/template.go"

Template is required to match go's text/template format like this.

package {{ .Package }}
// packed from {{ .SrcFiles }} with goone.
// {{"{{_cursor_}}"}}

{{ .Imports }}

{{ .Decls }}

Usable attributes are here.

License

See LICENSE.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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