Source File
register.go
Belonging Package
github.com/alexflint/go-arg
package argvar registrations []interface{}// Register adds a struct that will be added to the command line arguments parsed// by any call to arg.Parse or arg.MustParse//// This allows you to have command line arguments defined per-package//// package foo//// var args struct {// CacheSize int `arg:"--foo-cache-size"`// }//// func init() {// arg.Register(&args)// }func ( any) {registrations = append(registrations, )}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |