install

package
v0.0.0-...-6f130a9 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	KORPCPath = filepath.Join(Directory(), "..", "korpc")

	KORPCInclude = filepath.Join(Directory(), "src") // , korpcGoPath)
)
View Source
var (
	ProtoCBinary  = filepath.Join(protocInstallDir, "bin", "protoc")
	ProtoCInclude = filepath.Join(protocInstallDir, "include")
)
View Source
var Command = &cobra.Command{
	Use:   "install",
	Short: "Install the necessary dependencies for korpc.",
	Run:   run,
}
View Source
var (
	KOPath = filepath.Join(Directory(), "bin", "ko")
)
View Source
var (
	ProtoCGenGoPath = filepath.Join(Directory(), "bin", "protoc-gen-go")
)

Functions

func Directory

func Directory() string

func InstallKO

func InstallKO() error

func InstallKORPCIncludes

func InstallKORPCIncludes() error

func InstallProtoC

func InstallProtoC() error

This is based on https://golangcode.com/unzip-files-in-go/

func InstallProtoCGenGo

func InstallProtoCGenGo() error

func ProtoCCmd

func ProtoCCmd(out string, plugin string, param parameter.Stuff, protos ...string) (string, []string)

func RunProtoC

func RunProtoC(out string, plugin string, param parameter.Stuff, protos ...string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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