github.com/goplus/igop@v0.25.0/pkg/net/mail/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 mail
     7  
     8  import (
     9  	q "net/mail"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/igop"
    14  )
    15  
    16  func init() {
    17  	igop.RegisterPackage(&igop.Package{
    18  		Name: "mail",
    19  		Path: "net/mail",
    20  		Deps: map[string]string{
    21  			"bufio":         "bufio",
    22  			"errors":        "errors",
    23  			"fmt":           "fmt",
    24  			"io":            "io",
    25  			"log":           "log",
    26  			"mime":          "mime",
    27  			"net/textproto": "textproto",
    28  			"strings":       "strings",
    29  			"sync":          "sync",
    30  			"time":          "time",
    31  			"unicode/utf8":  "utf8",
    32  		},
    33  		Interfaces: map[string]reflect.Type{},
    34  		NamedTypes: map[string]reflect.Type{
    35  			"Address":       reflect.TypeOf((*q.Address)(nil)).Elem(),
    36  			"AddressParser": reflect.TypeOf((*q.AddressParser)(nil)).Elem(),
    37  			"Header":        reflect.TypeOf((*q.Header)(nil)).Elem(),
    38  			"Message":       reflect.TypeOf((*q.Message)(nil)).Elem(),
    39  		},
    40  		AliasTypes: map[string]reflect.Type{},
    41  		Vars: map[string]reflect.Value{
    42  			"ErrHeaderNotPresent": reflect.ValueOf(&q.ErrHeaderNotPresent),
    43  		},
    44  		Funcs: map[string]reflect.Value{
    45  			"ParseAddress":     reflect.ValueOf(q.ParseAddress),
    46  			"ParseAddressList": reflect.ValueOf(q.ParseAddressList),
    47  			"ParseDate":        reflect.ValueOf(q.ParseDate),
    48  			"ReadMessage":      reflect.ValueOf(q.ReadMessage),
    49  		},
    50  		TypedConsts:   map[string]igop.TypedConst{},
    51  		UntypedConsts: map[string]igop.UntypedConst{},
    52  	})
    53  }