github.com/goplus/igop@v0.25.0/pkg/os/user/go116_export.go (about)

     1  // export by github.com/goplus/igop/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/igop"
    13  )
    14  
    15  func init() {
    16  	igop.RegisterPackage(&igop.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]reflect.Type{
    30  			"Group":               reflect.TypeOf((*q.Group)(nil)).Elem(),
    31  			"UnknownGroupError":   reflect.TypeOf((*q.UnknownGroupError)(nil)).Elem(),
    32  			"UnknownGroupIdError": reflect.TypeOf((*q.UnknownGroupIdError)(nil)).Elem(),
    33  			"UnknownUserError":    reflect.TypeOf((*q.UnknownUserError)(nil)).Elem(),
    34  			"UnknownUserIdError":  reflect.TypeOf((*q.UnknownUserIdError)(nil)).Elem(),
    35  			"User":                reflect.TypeOf((*q.User)(nil)).Elem(),
    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]igop.TypedConst{},
    47  		UntypedConsts: map[string]igop.UntypedConst{},
    48  	})
    49  }