Documentation
¶
Index ¶
- func APIToGo(s string) string
- func Chromatize(r io.Reader) (io.Reader, error)
- func EsVersion(fpath string) (string, error)
- func GitCommit(fpath string) (string, error)
- func GitTag(fpath string) (string, error)
- func IDToUpper(s string) string
- func IsTTY() bool
- func MapKeys(s interface{}) (keys []string)
- func MapValues(s interface{}) (values []interface{})
- func NameToGo(s string, api ...string) string
- func PrintErr(err error)
- func PrintSourceWithErr(out io.Reader, err error)
- func TerminalWidth() int
- func TypeToGo(s string, comment ...bool) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Chromatize ¶
Chromatize returns a syntax highlighted Go code.
func EsVersion ¶
EsVersion returns the Elasticsearch from environment variable, Java property file, or an error.
func GitCommit ¶
GitCommit returns the Git commit from environment variable or parsing information from fpath, or an error.
func MapKeys ¶
func MapKeys(s interface{}) (keys []string)
MapKeys returns the map keys as a slice of strings.
func MapValues ¶
func MapValues(s interface{}) (values []interface{})
MapValues returns the map values as a slice of interfaces.
func PrintSourceWithErr ¶
PrintSourceWithErr returns source code annotated with location of an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.