github.com/goplus/igop@v0.25.0/pkg/mime/multipart/go118_export.go (about)

     1  // export by github.com/goplus/igop/cmd/qexp
     2  
     3  //go:build go1.18 && !go1.19
     4  // +build go1.18,!go1.19
     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  			"io":                   "io",
    27  			"math":                 "math",
    28  			"mime":                 "mime",
    29  			"mime/quotedprintable": "quotedprintable",
    30  			"net/textproto":        "textproto",
    31  			"os":                   "os",
    32  			"path/filepath":        "filepath",
    33  			"sort":                 "sort",
    34  			"strings":              "strings",
    35  		},
    36  		Interfaces: map[string]reflect.Type{
    37  			"File": reflect.TypeOf((*q.File)(nil)).Elem(),
    38  		},
    39  		NamedTypes: map[string]reflect.Type{
    40  			"FileHeader": reflect.TypeOf((*q.FileHeader)(nil)).Elem(),
    41  			"Form":       reflect.TypeOf((*q.Form)(nil)).Elem(),
    42  			"Part":       reflect.TypeOf((*q.Part)(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  			"ErrMessageTooLarge": reflect.ValueOf(&q.ErrMessageTooLarge),
    49  		},
    50  		Funcs: map[string]reflect.Value{
    51  			"NewReader": reflect.ValueOf(q.NewReader),
    52  			"NewWriter": reflect.ValueOf(q.NewWriter),
    53  		},
    54  		TypedConsts:   map[string]igop.TypedConst{},
    55  		UntypedConsts: map[string]igop.UntypedConst{},
    56  	})
    57  }