github.com/goplus/gossa@v0.3.25/pkg/net/textproto/go116_export.go (about)

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.16,!go1.17
     4  
     5  package textproto
     6  
     7  import (
     8  	q "net/textproto"
     9  
    10  	"reflect"
    11  
    12  	"github.com/goplus/gossa"
    13  )
    14  
    15  func init() {
    16  	gossa.RegisterPackage(&gossa.Package{
    17  		Name: "textproto",
    18  		Path: "net/textproto",
    19  		Deps: map[string]string{
    20  			"bufio":   "bufio",
    21  			"bytes":   "bytes",
    22  			"fmt":     "fmt",
    23  			"io":      "io",
    24  			"net":     "net",
    25  			"strconv": "strconv",
    26  			"strings": "strings",
    27  			"sync":    "sync",
    28  		},
    29  		Interfaces: map[string]reflect.Type{},
    30  		NamedTypes: map[string]gossa.NamedType{
    31  			"Conn":          {reflect.TypeOf((*q.Conn)(nil)).Elem(), "", "Close,Cmd"},
    32  			"Error":         {reflect.TypeOf((*q.Error)(nil)).Elem(), "", "Error"},
    33  			"MIMEHeader":    {reflect.TypeOf((*q.MIMEHeader)(nil)).Elem(), "Add,Del,Get,Set,Values", ""},
    34  			"Pipeline":      {reflect.TypeOf((*q.Pipeline)(nil)).Elem(), "", "EndRequest,EndResponse,Next,StartRequest,StartResponse"},
    35  			"ProtocolError": {reflect.TypeOf((*q.ProtocolError)(nil)).Elem(), "Error", ""},
    36  			"Reader":        {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "DotReader,ReadCodeLine,ReadContinuedLine,ReadContinuedLineBytes,ReadDotBytes,ReadDotLines,ReadLine,ReadLineBytes,ReadMIMEHeader,ReadResponse,closeDot,readCodeLine,readContinuedLineSlice,readLineSlice,skipSpace,upcomingHeaderNewlines"},
    37  			"Writer":        {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "DotWriter,PrintfLine,closeDot"},
    38  		},
    39  		AliasTypes: map[string]reflect.Type{},
    40  		Vars:       map[string]reflect.Value{},
    41  		Funcs: map[string]reflect.Value{
    42  			"CanonicalMIMEHeaderKey": reflect.ValueOf(q.CanonicalMIMEHeaderKey),
    43  			"Dial":                   reflect.ValueOf(q.Dial),
    44  			"NewConn":                reflect.ValueOf(q.NewConn),
    45  			"NewReader":              reflect.ValueOf(q.NewReader),
    46  			"NewWriter":              reflect.ValueOf(q.NewWriter),
    47  			"TrimBytes":              reflect.ValueOf(q.TrimBytes),
    48  			"TrimString":             reflect.ValueOf(q.TrimString),
    49  		},
    50  		TypedConsts:   map[string]gossa.TypedConst{},
    51  		UntypedConsts: map[string]gossa.UntypedConst{},
    52  	})
    53  }