Skip to content

chzyer-other/flagx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Dec 17, 2015
ea3e843 · Dec 17, 2015

History

20 Commits
Jun 25, 2015
Jun 8, 2015
Jun 25, 2015
Jun 25, 2015
Jun 25, 2015
Dec 17, 2015
Jun 25, 2015
Sep 16, 2015
Jun 25, 2015
Sep 16, 2015
Jun 25, 2015
Sep 16, 2015
Jun 25, 2015
Sep 16, 2015
Sep 16, 2015

Repository files navigation

flagx

A Replacement for golang stdlib flag

Getting started

// main.go
type Config struct {
	FileName string `flag:"[0]"`
}

func main() {
	var c Config
	flagx.Parse(&c)
	fmt.Println(c.FileName)
}
go run main.go ~/.profile
// Output: ~/.profile

About

flagx is a struct-bindding wrap for golang flag library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages