github.com/goplus/gossa@v0.3.25/pkg/net/smtp/go118_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.18
     4  // +build go1.18
     5  
     6  package smtp
     7  
     8  import (
     9  	q "net/smtp"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "smtp",
    19  		Path: "net/smtp",
    20  		Deps: map[string]string{
    21  			"crypto/hmac":     "hmac",
    22  			"crypto/md5":      "md5",
    23  			"crypto/tls":      "tls",
    24  			"encoding/base64": "base64",
    25  			"errors":          "errors",
    26  			"fmt":             "fmt",
    27  			"io":              "io",
    28  			"net":             "net",
    29  			"net/textproto":   "textproto",
    30  			"strings":         "strings",
    31  		},
    32  		Interfaces: map[string]reflect.Type{
    33  			"Auth": reflect.TypeOf((*q.Auth)(nil)).Elem(),
    34  		},
    35  		NamedTypes: map[string]gossa.NamedType{
    36  			"Client":     {reflect.TypeOf((*q.Client)(nil)).Elem(), "", "Auth,Close,Data,Extension,Hello,Mail,Noop,Quit,Rcpt,Reset,StartTLS,TLSConnectionState,Verify,cmd,ehlo,hello,helo"},
    37  			"ServerInfo": {reflect.TypeOf((*q.ServerInfo)(nil)).Elem(), "", ""},
    38  		},
    39  		AliasTypes: map[string]reflect.Type{},
    40  		Vars:       map[string]reflect.Value{},
    41  		Funcs: map[string]reflect.Value{
    42  			"CRAMMD5Auth": reflect.ValueOf(q.CRAMMD5Auth),
    43  			"Dial":        reflect.ValueOf(q.Dial),
    44  			"NewClient":   reflect.ValueOf(q.NewClient),
    45  			"PlainAuth":   reflect.ValueOf(q.PlainAuth),
    46  			"SendMail":    reflect.ValueOf(q.SendMail),
    47  		},
    48  		TypedConsts:   map[string]gossa.TypedConst{},
    49  		UntypedConsts: map[string]gossa.UntypedConst{},
    50  	})
    51  }