add more common types for package g

This commit is contained in:
John
2019-09-05 14:25:20 +08:00
parent 6cf4bf81e5
commit 05922e4f21
2 changed files with 28 additions and 0 deletions

22
.example/os/gcmd/main.go Normal file
View File

@ -0,0 +1,22 @@
package main
import (
"fmt"
"github.com/gogf/gf/frame/g"
"github.com/gogf/gf/os/gcmd"
)
func main() {
p, err := gcmd.Parse(g.MapStrBool{
"n,name": true,
"p,prefix": true,
"f,force": false,
"t,tail": false,
"i,interactive": false,
})
if err != nil {
fmt.Println(err)
}
g.Dump(p)
}