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

     1  // export by github.com/goplus/gossa/cmd/qexp
     2  
     3  //go:build go1.17 && !go1.18
     4  // +build go1.17,!go1.18
     5  
     6  package textproto
     7  
     8  import (
     9  	q "net/textproto"
    10  
    11  	"reflect"
    12  
    13  	"github.com/goplus/gossa"
    14  )
    15  
    16  func init() {
    17  	gossa.RegisterPackage(&gossa.Package{
    18  		Name: "textproto",
    19  		Path: "net/textproto",
    20  		Deps: map[string]string{
    21  			"bufio":   "bufio",
    22  			"bytes":   "bytes",
    23  			"fmt":     "fmt",
    24  			"io":      "io",
    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  }