💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
TOC] ## 语法 ``` type User struct { Uid string Gid string Username string Name string HomeDir string } type Group struct { Gid string // group ID Name string // group name } ``` ## 实例 ### Current ``` current, _ := user.Current() fmt.Printf("%+v\n", current) // &{Uid:0 Gid:0 Username:root Name:root HomeDir:/root} ``` ### Lookup ``` lookup, _ := user.Lookup("root") fmt.Println(lookup) ``` ### LookupId ### LookupGroup ### LookupGroupId