tools

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: MIT Imports: 0 Imported by: 1

README

Go Tools

This subrepository holds the source for various packages and tools that support the Go programming language.

All of the tools can be fetched with go get.

Packages include an implementation of the Static Single Assignment form (SSA) representation for Go programs.

Download/Install

The easiest way to install is to run go get -u github.com/searKing/golang/tools/.... You can also manually git clone the repository to $GOPATH/src/github.com/searKing/golang/tools/.

Tips
go get -u github.com/searKing/golang/tools/cmd/go-atomicvalue
go get -u github.com/searKing/golang/tools/cmd/go-enum
go get -u github.com/searKing/golang/tools/cmd/go-import
go get -u github.com/searKing/golang/tools/cmd/go-nulljson
go get -u github.com/searKing/golang/tools/cmd/go-option
go get -u github.com/searKing/golang/tools/cmd/go-sqlx
go get -u github.com/searKing/golang/tools/cmd/go-syncmap
go get -u github.com/searKing/golang/tools/cmd/go-syncpool
go get -u github.com/searKing/golang/tools/cmd/go-validator
go get -u github.com/searKing/golang/tools/cmd/protoc-gen-go-tag

Report Issues / Send Patches

This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.

The main issue tracker for the tools repository is located at https://github.com/searKing/golang/issues. Prefix your issue with "golang/tools/(your subdir):" in the subject line, so it is easy to find.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
Deprecated: Use github.com/searKing/golang/tools/ instead.
Deprecated: Use github.com/searKing/golang/tools/ instead.
go-atomicvalue
go-atomicvalue Generates Go code using a package as a generic template for atomic.Value.
go-atomicvalue Generates Go code using a package as a generic template for atomic.Value.
go-enum
go-enum is a tool to automate the creation of methods that satisfy such interfaces: fmt ==> fmt.Stringer binary ==> encoding.BinaryMarshaler and encoding.BinaryUnmarshaler json ==> encoding/json.MarshalJSON and encoding/json.UnmarshalJSON text ==> encoding.TextMarshaler and encoding.TextUnmarshaler sql ==> database/sql.Scanner and database/sql/driver.Valuer yaml ==> gopkg.in/yaml.v3:yaml.Marshaler and gopkg.in/yaml.v3:yaml.Unmarshaler Given the name of a (signed or unsigned) integer type T that has constants defined, stringer will create a new self-contained Go source file implementing fmt ==> fmt.Stringer func (t T) String() string binary ==> encoding.BinaryMarshaler and encoding.BinaryUnmarshaler func (t T) MarshalBinary() (data []byte, err error) func (t *T) UnmarshalBinary(data []byte) error json ==> encoding/json.MarshalJSON and encoding/json.UnmarshalJSON func (t T) MarshalJSON() ([]byte, error) func (t *T) UnmarshalJSON(data []byte) error text ==> encoding.TextMarshaler and encoding.TextUnmarshaler func (t T) MarshalText() ([]byte, error) func (t *T) UnmarshalText(text []byte) error sql ==> database/sql.Scanner and database/sql/driver.Valuer func (t T) Value() (driver.Value, error) func (t *T) Scan(value interface{}) error yaml ==> gopkg.in/yaml.v3:yaml.Marshaler and gopkg.in/yaml.v3:yaml.Unmarshaler func (t T) MarshalYAML() (interface{}, error) func (t *T) UnmarshalYAML(unmarshal func(interface{}) error) error The file is created in the same package and directory as the package that defines T. It has helpful defaults designed for use with go generate.
go-enum is a tool to automate the creation of methods that satisfy such interfaces: fmt ==> fmt.Stringer binary ==> encoding.BinaryMarshaler and encoding.BinaryUnmarshaler json ==> encoding/json.MarshalJSON and encoding/json.UnmarshalJSON text ==> encoding.TextMarshaler and encoding.TextUnmarshaler sql ==> database/sql.Scanner and database/sql/driver.Valuer yaml ==> gopkg.in/yaml.v3:yaml.Marshaler and gopkg.in/yaml.v3:yaml.Unmarshaler Given the name of a (signed or unsigned) integer type T that has constants defined, stringer will create a new self-contained Go source file implementing fmt ==> fmt.Stringer func (t T) String() string binary ==> encoding.BinaryMarshaler and encoding.BinaryUnmarshaler func (t T) MarshalBinary() (data []byte, err error) func (t *T) UnmarshalBinary(data []byte) error json ==> encoding/json.MarshalJSON and encoding/json.UnmarshalJSON func (t T) MarshalJSON() ([]byte, error) func (t *T) UnmarshalJSON(data []byte) error text ==> encoding.TextMarshaler and encoding.TextUnmarshaler func (t T) MarshalText() ([]byte, error) func (t *T) UnmarshalText(text []byte) error sql ==> database/sql.Scanner and database/sql/driver.Valuer func (t T) Value() (driver.Value, error) func (t *T) Scan(value interface{}) error yaml ==> gopkg.in/yaml.v3:yaml.Marshaler and gopkg.in/yaml.v3:yaml.Unmarshaler func (t T) MarshalYAML() (interface{}, error) func (t *T) UnmarshalYAML(unmarshal func(interface{}) error) error The file is created in the same package and directory as the package that defines T. It has helpful defaults designed for use with go generate.
go-import
go-import Performs auto import of non go files.
go-import Performs auto import of non go files.
go-nulljson
go-nulljson Generates Go code using a package as a generic template that implements database/sql.Scanner and database/sql/driver.Valuer.
go-nulljson Generates Go code using a package as a generic template that implements database/sql.Scanner and database/sql/driver.Valuer.
go-option
Typically this process would be run using go generate, like this: //go:generate go-option -type=Pill With no arguments, it processes the package in the current directory.
Typically this process would be run using go generate, like this: //go:generate go-option -type=Pill With no arguments, it processes the package in the current directory.
go-sqlx
go-sqlx Generates Go code using a package as a generic template that implements sqlx.
go-sqlx Generates Go code using a package as a generic template that implements sqlx.
go-syncmap
go-syncmap Generates Go code using a package as a generic template for sync.Map.
go-syncmap Generates Go code using a package as a generic template for sync.Map.
go-syncpool
go-syncpool Generates Go code using a package as a generic template for sync.Pool.
go-syncpool Generates Go code using a package as a generic template for sync.Pool.
go-validator
go-validator Generates Go code using a package as a generic template that implements validator.
go-validator Generates Go code using a package as a generic template that implements validator.
protoc-gen-go-tag
protoc-gen-go-tag is a plugin for the Google protocol buffer compiler to Generate Go code.
protoc-gen-go-tag is a plugin for the Google protocol buffer compiler to Generate Go code.
protoc-gen-go-tag/ast
This code is borrowed from https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go
This code is borrowed from https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go
common module
go-atomicvalue Generates Go code using a package as a generic template for atomic.Value.
go-atomicvalue Generates Go code using a package as a generic template for atomic.Value.
go-enum is a tool to automate the creation of methods that satisfy such interfaces: fmt ==> fmt.Stringer binary ==> encoding.BinaryMarshaler and encoding.BinaryUnmarshaler json ==> encoding/json.MarshalJSON and encoding/json.UnmarshalJSON text ==> encoding.TextMarshaler and encoding.TextUnmarshaler sql ==> database/sql.Scanner and database/sql/driver.Valuer yaml ==> gopkg.in/yaml.v3:yaml.Marshaler and gopkg.in/yaml.v3:yaml.Unmarshaler Given the name of a (signed or unsigned) integer type T that has constants defined, stringer will create a new self-contained Go source file implementing fmt ==> fmt.Stringer func (t T) String() string binary ==> encoding.BinaryMarshaler and encoding.BinaryUnmarshaler func (t T) MarshalBinary() (data []byte, err error) func (t *T) UnmarshalBinary(data []byte) error json ==> encoding/json.MarshalJSON and encoding/json.UnmarshalJSON func (t T) MarshalJSON() ([]byte, error) func (t *T) UnmarshalJSON(data []byte) error text ==> encoding.TextMarshaler and encoding.TextUnmarshaler func (t T) MarshalText() ([]byte, error) func (t *T) UnmarshalText(text []byte) error sql ==> database/sql.Scanner and database/sql/driver.Valuer func (t T) Value() (driver.Value, error) func (t *T) Scan(value interface{}) error yaml ==> gopkg.in/yaml.v3:yaml.Marshaler and gopkg.in/yaml.v3:yaml.Unmarshaler func (t T) MarshalYAML() (interface{}, error) func (t *T) UnmarshalYAML(unmarshal func(interface{}) error) error The file is created in the same package and directory as the package that defines T. It has helpful defaults designed for use with go generate.
go-enum is a tool to automate the creation of methods that satisfy such interfaces: fmt ==> fmt.Stringer binary ==> encoding.BinaryMarshaler and encoding.BinaryUnmarshaler json ==> encoding/json.MarshalJSON and encoding/json.UnmarshalJSON text ==> encoding.TextMarshaler and encoding.TextUnmarshaler sql ==> database/sql.Scanner and database/sql/driver.Valuer yaml ==> gopkg.in/yaml.v3:yaml.Marshaler and gopkg.in/yaml.v3:yaml.Unmarshaler Given the name of a (signed or unsigned) integer type T that has constants defined, stringer will create a new self-contained Go source file implementing fmt ==> fmt.Stringer func (t T) String() string binary ==> encoding.BinaryMarshaler and encoding.BinaryUnmarshaler func (t T) MarshalBinary() (data []byte, err error) func (t *T) UnmarshalBinary(data []byte) error json ==> encoding/json.MarshalJSON and encoding/json.UnmarshalJSON func (t T) MarshalJSON() ([]byte, error) func (t *T) UnmarshalJSON(data []byte) error text ==> encoding.TextMarshaler and encoding.TextUnmarshaler func (t T) MarshalText() ([]byte, error) func (t *T) UnmarshalText(text []byte) error sql ==> database/sql.Scanner and database/sql/driver.Valuer func (t T) Value() (driver.Value, error) func (t *T) Scan(value interface{}) error yaml ==> gopkg.in/yaml.v3:yaml.Marshaler and gopkg.in/yaml.v3:yaml.Unmarshaler func (t T) MarshalYAML() (interface{}, error) func (t *T) UnmarshalYAML(unmarshal func(interface{}) error) error The file is created in the same package and directory as the package that defines T. It has helpful defaults designed for use with go generate.
go-import Performs auto import of non go files.
go-import Performs auto import of non go files.
go-nulljson Generates Go code using a package as a generic template that implements database/sql.Scanner and database/sql/driver.Valuer.
go-nulljson Generates Go code using a package as a generic template that implements database/sql.Scanner and database/sql/driver.Valuer.
Typically this process would be run using go generate, like this: //go:generate go-option -type=Pill With no arguments, it processes the package in the current directory.
Typically this process would be run using go generate, like this: //go:generate go-option -type=Pill With no arguments, it processes the package in the current directory.
go-sqlx Generates Go code using a package as a generic template that implements sqlx.
go-sqlx Generates Go code using a package as a generic template that implements sqlx.
go-syncmap Generates Go code using a package as a generic template for sync.Map.
go-syncmap Generates Go code using a package as a generic template for sync.Map.
go-syncpool Generates Go code using a package as a generic template for sync.Pool.
go-syncpool Generates Go code using a package as a generic template for sync.Pool.
go-validator Generates Go code using a package as a generic template that implements validator.
go-validator Generates Go code using a package as a generic template that implements validator.
pkg
ast
protoc-gen-go-tag is a plugin for the Google protocol buffer compiler to Generate Go code.
protoc-gen-go-tag is a plugin for the Google protocol buffer compiler to Generate Go code.
ast
This code is borrowed from https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go
This code is borrowed from https://github.com/golang/protobuf/blob/master/protoc-gen-go/generator/generator.go
tag

Jump to

Keyboard shortcuts

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