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

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