Documentation ¶ Index ¶ func Copy(src, dest string) error func Main(ctx context.Context, options Options) error type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Copy ¶ func Copy(src, dest string) error Copy copies src to dest, doesn't matter if src is a directory or a file func Main ¶ func Main(ctx context.Context, options Options) error Main converts a Go internal command line app to a library Types ¶ type Options ¶ type Options struct { From string // package path of command we need to extract - e.g. "cmd/compile" RootPath string // package path of module root RootDir string // dir of module root DisableTests map[string]map[string]bool Init bool Tests bool } Source Files ¶ View all Source files copy.go libgo.go Directories ¶ Show internal Expand all Path Synopsis cmd Click to show internal directories. Click to hide internal directories.