github.com/goplus/igop@v0.25.0/pkg/mime/multipart/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 multipart
     7  
     8  import (
     9  	q "mime/multipart"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "multipart",
    19  		Path: "mime/multipart",
    20  		Deps: map[string]string{
    21  			"bufio":                "bufio",
    22  			"bytes":                "bytes",
    23  			"crypto/rand":          "rand",
    24  			"errors":               "errors",
    25  			"fmt":                  "fmt",
    26  			"internal/godebug":     "godebug",
    27  			"io":                   "io",
    28  			"math":                 "math",
    29  			"mime":                 "mime",
    30  			"mime/quotedprintable": "quotedprintable",
    31  			"net/textproto":        "textproto",
    32  			"os":                   "os",
    33  			"path/filepath":        "filepath",
    34  			"sort":                 "sort",
    35  			"strconv":              "strconv",
    36  			"strings":              "strings",
    37  			"unsafe":               "unsafe",
    38  		},
    39  		Interfaces: map[string]reflect.Type{
    40  			"File": reflect.TypeOf((*q.File)(nil)).Elem(),
    41  		},
    42  		NamedTypes: map[string]reflect.Type{
    43  			"FileHeader": reflect.TypeOf((*q.FileHeader)(nil)).Elem(),
    44  			"Form":       reflect.TypeOf((*q.Form)(nil)).Elem(),
    45  			"Part":       reflect.TypeOf((*q.Part)(nil)).Elem(),
    46  			"Reader":     reflect.TypeOf((*q.Reader)(nil)).Elem(),
    47  			"Writer":     reflect.TypeOf((*q.Writer)(nil)).Elem(),
    48  		},
    49  		AliasTypes: map[string]reflect.Type{},
    50  		Vars: map[string]reflect.Value{
    51  			"ErrMessageTooLarge": reflect.ValueOf(&q.ErrMessageTooLarge),
    52  		},
    53  		Funcs: map[string]reflect.Value{
    54  			"NewReader": reflect.ValueOf(q.NewReader),
    55  			"NewWriter": reflect.ValueOf(q.NewWriter),
    56  		},
    57  		TypedConsts:   map[string]igop.TypedConst{},
    58  		UntypedConsts: map[string]igop.UntypedConst{},
    59  	})
    60  }