github.com/goplus/igop@v0.25.0/pkg/archive/tar/go117_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     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  			"io":      "io",
    26  			"io/fs":   "fs",
    27  			"math":    "math",
    28  			"os/user": "user",
    29  			"path":    "path",
    30  			"reflect": "reflect",
    31  			"runtime": "runtime",
    32  			"sort":    "sort",
    33  			"strconv": "strconv",
    34  			"strings": "strings",
    35  			"sync":    "sync",
    36  			"syscall": "syscall",
    37  			"time":    "time",
    38  		},
    39  		Interfaces: map[string]reflect.Type{},
    40  		NamedTypes: map[string]reflect.Type{
    41  			"Format": reflect.TypeOf((*q.Format)(nil)).Elem(),
    42  			"Header": reflect.TypeOf((*q.Header)(nil)).Elem(),
    43  			"Reader": reflect.TypeOf((*q.Reader)(nil)).Elem(),
    44  			"Writer": reflect.TypeOf((*q.Writer)(nil)).Elem(),
    45  		},
    46  		AliasTypes: map[string]reflect.Type{},
    47  		Vars: map[string]reflect.Value{
    48  			"ErrFieldTooLong":    reflect.ValueOf(&q.ErrFieldTooLong),
    49  			"ErrHeader":          reflect.ValueOf(&q.ErrHeader),
    50  			"ErrWriteAfterClose": reflect.ValueOf(&q.ErrWriteAfterClose),
    51  			"ErrWriteTooLong":    reflect.ValueOf(&q.ErrWriteTooLong),
    52  		},
    53  		Funcs: map[string]reflect.Value{
    54  			"FileInfoHeader": reflect.ValueOf(q.FileInfoHeader),
    55  			"NewReader":      reflect.ValueOf(q.NewReader),
    56  			"NewWriter":      reflect.ValueOf(q.NewWriter),
    57  		},
    58  		TypedConsts: map[string]igop.TypedConst{
    59  			"FormatGNU":     {reflect.TypeOf(q.FormatGNU), constant.MakeInt64(int64(q.FormatGNU))},
    60  			"FormatPAX":     {reflect.TypeOf(q.FormatPAX), constant.MakeInt64(int64(q.FormatPAX))},
    61  			"FormatUSTAR":   {reflect.TypeOf(q.FormatUSTAR), constant.MakeInt64(int64(q.FormatUSTAR))},
    62  			"FormatUnknown": {reflect.TypeOf(q.FormatUnknown), constant.MakeInt64(int64(q.FormatUnknown))},
    63  		},
    64  		UntypedConsts: map[string]igop.UntypedConst{
    65  			"TypeBlock":         {"untyped rune", constant.MakeInt64(int64(q.TypeBlock))},
    66  			"TypeChar":          {"untyped rune", constant.MakeInt64(int64(q.TypeChar))},
    67  			"TypeCont":          {"untyped rune", constant.MakeInt64(int64(q.TypeCont))},
    68  			"TypeDir":           {"untyped rune", constant.MakeInt64(int64(q.TypeDir))},
    69  			"TypeFifo":          {"untyped rune", constant.MakeInt64(int64(q.TypeFifo))},
    70  			"TypeGNULongLink":   {"untyped rune", constant.MakeInt64(int64(q.TypeGNULongLink))},
    71  			"TypeGNULongName":   {"untyped rune", constant.MakeInt64(int64(q.TypeGNULongName))},
    72  			"TypeGNUSparse":     {"untyped rune", constant.MakeInt64(int64(q.TypeGNUSparse))},
    73  			"TypeLink":          {"untyped rune", constant.MakeInt64(int64(q.TypeLink))},
    74  			"TypeReg":           {"untyped rune", constant.MakeInt64(int64(q.TypeReg))},
    75  			"TypeRegA":          {"untyped rune", constant.MakeInt64(int64(q.TypeRegA))},
    76  			"TypeSymlink":       {"untyped rune", constant.MakeInt64(int64(q.TypeSymlink))},
    77  			"TypeXGlobalHeader": {"untyped rune", constant.MakeInt64(int64(q.TypeXGlobalHeader))},
    78  			"TypeXHeader":       {"untyped rune", constant.MakeInt64(int64(q.TypeXHeader))},
    79  		},
    80  	})
    81  }