github.com/goplus/gossa@v0.3.25/pkg/os/user/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package user
     6  
     7  import (
     8  	q "os/user"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "user",
    18  		Path: "os/user",
    19  		Deps: map[string]string{
    20  			"fmt":         "fmt",
    21  			"runtime/cgo": "cgo",
    22  			"strconv":     "strconv",
    23  			"strings":     "strings",
    24  			"sync":        "sync",
    25  			"syscall":     "syscall",
    26  			"unsafe":      "unsafe",
    27  		},
    28  		Interfaces: map[string]reflect.Type{},
    29  		NamedTypes: map[string]gossa.NamedType{
    30  			"Group":               {reflect.TypeOf((*q.Group)(nil)).Elem(), "", ""},
    31  			"UnknownGroupError":   {reflect.TypeOf((*q.UnknownGroupError)(nil)).Elem(), "Error", ""},
    32  			"UnknownGroupIdError": {reflect.TypeOf((*q.UnknownGroupIdError)(nil)).Elem(), "Error", ""},
    33  			"UnknownUserError":    {reflect.TypeOf((*q.UnknownUserError)(nil)).Elem(), "Error", ""},
    34  			"UnknownUserIdError":  {reflect.TypeOf((*q.UnknownUserIdError)(nil)).Elem(), "Error", ""},
    35  			"User":                {reflect.TypeOf((*q.User)(nil)).Elem(), "", "GroupIds"},
    36  		},
    37  		AliasTypes: map[string]reflect.Type{},
    38  		Vars:       map[string]reflect.Value{},
    39  		Funcs: map[string]reflect.Value{
    40  			"Current":       reflect.ValueOf(q.Current),
    41  			"Lookup":        reflect.ValueOf(q.Lookup),
    42  			"LookupGroup":   reflect.ValueOf(q.LookupGroup),
    43  			"LookupGroupId": reflect.ValueOf(q.LookupGroupId),
    44  			"LookupId":      reflect.ValueOf(q.LookupId),
    45  		},
    46  		TypedConsts:   map[string]gossa.TypedConst{},
    47  		UntypedConsts: map[string]gossa.UntypedConst{},
    48  	})
    49  }