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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //+build go1.15,!go1.16
     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  			"io/ioutil": "ioutil",
    25  			"net":       "net",
    26  			"strconv":   "strconv",
    27  			"strings":   "strings",
    28  			"sync":      "sync",
    29  		},
    30  		Interfaces: map[string]reflect.Type{},
    31  		NamedTypes: map[string]gossa.NamedType{
    32  			"Conn":          {reflect.TypeOf((*q.Conn)(nil)).Elem(), "", "Close,Cmd"},
    33  			"Error":         {reflect.TypeOf((*q.Error)(nil)).Elem(), "", "Error"},
    34  			"MIMEHeader":    {reflect.TypeOf((*q.MIMEHeader)(nil)).Elem(), "Add,Del,Get,Set,Values", ""},
    35  			"Pipeline":      {reflect.TypeOf((*q.Pipeline)(nil)).Elem(), "", "EndRequest,EndResponse,Next,StartRequest,StartResponse"},
    36  			"ProtocolError": {reflect.TypeOf((*q.ProtocolError)(nil)).Elem(), "Error", ""},
    37  			"Reader":        {reflect.TypeOf((*q.Reader)(nil)).Elem(), "", "DotReader,ReadCodeLine,ReadContinuedLine,ReadContinuedLineBytes,ReadDotBytes,ReadDotLines,ReadLine,ReadLineBytes,ReadMIMEHeader,ReadResponse,closeDot,readCodeLine,readContinuedLineSlice,readLineSlice,skipSpace,upcomingHeaderNewlines"},
    38  			"Writer":        {reflect.TypeOf((*q.Writer)(nil)).Elem(), "", "DotWriter,PrintfLine,closeDot"},
    39  		},
    40  		AliasTypes: map[string]reflect.Type{},
    41  		Vars:       map[string]reflect.Value{},
    42  		Funcs: map[string]reflect.Value{
    43  			"CanonicalMIMEHeaderKey": reflect.ValueOf(q.CanonicalMIMEHeaderKey),
    44  			"Dial":                   reflect.ValueOf(q.Dial),
    45  			"NewConn":                reflect.ValueOf(q.NewConn),
    46  			"NewReader":              reflect.ValueOf(q.NewReader),
    47  			"NewWriter":              reflect.ValueOf(q.NewWriter),
    48  			"TrimBytes":              reflect.ValueOf(q.TrimBytes),
    49  			"TrimString":             reflect.ValueOf(q.TrimString),
    50  		},
    51  		TypedConsts:   map[string]gossa.TypedConst{},
    52  		UntypedConsts: map[string]gossa.UntypedConst{},
    53  	})
    54  }