Documentation
¶
Index ¶
- func Build(arg string, conf *BuildConfig) (err error)
- func BuildFiles(files []string, conf *BuildConfig) (err error)
- func Install(arg string, conf *InstallConfig) (err error)
- func InstallFiles(files []string, conf *InstallConfig) (err error)
- func Name() string
- func RunDir(buildDir, dir string, args []string, conf *RunConfig) (err error)
- func RunFiles(buildDir string, files []string, args []string, conf *RunConfig) (err error)
- func Test(arg string, conf *TestConfig) (err error)
- func TestFiles(files []string, conf *TestConfig) (err error)
- type BuildConfig
- type Config
- type GopEnv
- type InstallConfig
- type RunConfig
- type TestConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
func Build(arg string, conf *BuildConfig) (err error)
func BuildFiles ¶
func BuildFiles(files []string, conf *BuildConfig) (err error)
func Install ¶
func Install(arg string, conf *InstallConfig) (err error)
func InstallFiles ¶
func InstallFiles(files []string, conf *InstallConfig) (err error)
func Name ¶ added in v1.1.12
func Name() string
Name returns name of the go command. It returns value of environment variable `GOP_GOCMD` if not empty. If not found, it returns `go`.
func RunDir ¶
RunDir runs a Go project by specified directory. If buildDir is not empty, it means split `go run` into `go build` in buildDir and run the built app in current directory.
func RunFiles ¶
RunFiles runs a Go project by specified files. If buildDir is not empty, it means split `go run` into `go build` in buildDir and run the built app in current directory.
func Test ¶
func Test(arg string, conf *TestConfig) (err error)
func TestFiles ¶
func TestFiles(files []string, conf *TestConfig) (err error)
Types ¶
type BuildConfig ¶
type BuildConfig = Config
type InstallConfig ¶
type InstallConfig = Config
type TestConfig ¶
type TestConfig = Config
Click to show internal directories.
Click to hide internal directories.