摘要: pflag用于子命令,比如下面示例程序: package main import ( "flag" "fmt" "os" ) type Options struct { Firstname string Lastname string } func main() { p:=&Options{Firs 阅读全文
posted @ 2022-06-15 16:00 Oneslide 阅读(179) 评论(0) 推荐(0) 编辑