goutil

package
v0.2.55 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAPIPath

func GetAPIPath() string

GetAPIPath gets the Go source code path $GOROOT/src.

func GetExecutableInGOBIN

func GetExecutableInGOBIN(executable string) string

GetExecutableInGOBIN gets executable file under GOBIN path.

The specified executable should not with extension, this function will append .exe if on Windows.

func GetGoFormats

func GetGoFormats() []string

GetGoFormats gets Go format tools. It may return ["gofmt", "goimports"].

func IsAPI

func IsAPI(path string) bool

IsAPI determines whether the specified path belongs to Go API.

Types

This section is empty.

Jump to

Keyboard shortcuts

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