INNER CODE UNIT · Go

main

yarpc/yarpc-go · internal/cover/main.go:50

func main() {
	log.SetFlags(0)
	if err := run(os.Args[1:]); err != nil {
		log.Fatal(err)
	}
}

var (
	errUsage        = errors.New("usage: cover packages")
	errNoGoPackage  = errors.New("could not find a Go package in the current directory")
	errNoImportPath = fmt.Errorf("could not determine import path for the Go package in the current directory")
)

func run(args []string) error {
	if len(args) == 0 {
		return errUsage
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…