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

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