github.com/goplus/igop@v0.25.0/pkg/archive/tar/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 tar
     7  
     8  import (
     9  	q "archive/tar"
    10  
    11  	"go/constant"
    12  	"reflect"
    13  
    14  	"github.com/goplus/igop"
    15  )
    16  
    17  func init() {
    18  	igop.RegisterPackage(&igop.Package{
    19  		Name: "tar",
    20  		Path: "archive/tar",
    21  		Deps: map[string]string{
    22  			"bytes":            "bytes",
    23  			"errors":           "errors",
    24  			"fmt":              "fmt",
    25  			"internal/godebug": "godebug",
    26  			"io":               "io",
    27  			"io/fs":            "fs",
    28  			"math":             "math",
    29  			"os/user":          "user",
    30  			"path":             "path",
    31  			"path/filepath":    "filepath",
    32  			"reflect":          "reflect",
    33  			"runtime":          "runtime",
    34  			"sort":             "sort",
    35  			"strconv":          "strconv",
    36  			"strings":          "strings",
    37  			"sync":             "sync",
    38  			"syscall":          "syscall",
    39  			"time":             "time",
    40  		},
    41  		Interfaces: map[string]reflect.Type{},
    42  		NamedTypes: map[string]reflect.Type{
    43  			"Format": reflect.TypeOf((*q.Format)(nil)).Elem(),
    44  			"Header": reflect.TypeOf((*q.Header)(nil)).Elem(),
    45  			"Reader": reflect.TypeOf((*q.Reader)(nil)).Elem(),
    46  			"Writer": reflect.TypeOf((*q.Writer)(nil)).Elem(),
    47  		},
    48  		AliasTypes: map[string]reflect.Type{},
    49  		Vars: map[string]reflect.Value{
    50  			"ErrFieldTooLong":    reflect.ValueOf(&q.ErrFieldTooLong),
    51  			"ErrHeader":          reflect.ValueOf(&q.ErrHeader),
    52  			"ErrInsecurePath":    reflect.ValueOf(&q.ErrInsecurePath),
    53  			"ErrWriteAfterClose": reflect.ValueOf(&q.ErrWriteAfterClose),
    54  			"ErrWriteTooLong":    reflect.ValueOf(&q.ErrWriteTooLong),
    55  		},
    56  		Funcs: map[string]reflect.Value{
    57  			"FileInfoHeader": reflect.ValueOf(q.FileInfoHeader),
    58  			"NewReader":      reflect.ValueOf(q.NewReader),
    59  			"NewWriter":      reflect.ValueOf(q.NewWriter),
    60  		},
    61  		TypedConsts: map[string]igop.TypedConst{
    62  			"FormatGNU":     {reflect.TypeOf(q.FormatGNU), constant.MakeInt64(int64(q.FormatGNU))},
    63  			"FormatPAX":     {reflect.TypeOf(q.FormatPAX), constant.MakeInt64(int64(q.FormatPAX))},
    64  			"FormatUSTAR":   {reflect.TypeOf(q.FormatUSTAR), constant.MakeInt64(int64(q.FormatUSTAR))},
    65  			"FormatUnknown": {reflect.TypeOf(q.FormatUnknown), constant.MakeInt64(int64(q.FormatUnknown))},
    66  		},
    67  		UntypedConsts: map[string]igop.UntypedConst{
    68  			"TypeBlock":         {"untyped rune", constant.MakeInt64(int64(q.TypeBlock))},
    69  			"TypeChar":          {"untyped rune", constant.MakeInt64(int64(q.TypeChar))},
    70  			"TypeCont":          {"untyped rune", constant.MakeInt64(int64(q.TypeCont))},
    71  			"TypeDir":           {"untyped rune", constant.MakeInt64(int64(q.TypeDir))},
    72  			"TypeFifo":          {"untyped rune", constant.MakeInt64(int64(q.TypeFifo))},
    73  			"TypeGNULongLink":   {"untyped rune", constant.MakeInt64(int64(q.TypeGNULongLink))},
    74  			"TypeGNULongName":   {"untyped rune", constant.MakeInt64(int64(q.TypeGNULongName))},
    75  			"TypeGNUSparse":     {"untyped rune", constant.MakeInt64(int64(q.TypeGNUSparse))},
    76  			"TypeLink":          {"untyped rune", constant.MakeInt64(int64(q.TypeLink))},
    77  			"TypeReg":           {"untyped rune", constant.MakeInt64(int64(q.TypeReg))},
    78  			"TypeRegA":          {"untyped rune", constant.MakeInt64(int64(q.TypeRegA))},
    79  			"TypeSymlink":       {"untyped rune", constant.MakeInt64(int64(q.TypeSymlink))},
    80  			"TypeXGlobalHeader": {"untyped rune", constant.MakeInt64(int64(q.TypeXGlobalHeader))},
    81  			"TypeXHeader":       {"untyped rune", constant.MakeInt64(int64(q.TypeXHeader))},
    82  		},
    83  	})
    84  }