Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
goptions
✓ github.com/voxelbrain/goptions
Parse command-line options into a struct.
package main
import (
"fmt"
"github.com/voxelbrain/goptions"
)
func main() {
var opts struct {
Name string `goptions:"-n, --name"`
}
goptions.ParseAndFail(&opts)
fmt.Println(opts.Name)
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20180630082107-58cddc247ea2latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.