github.com/switchupcb/yaegi@v0.10.2/stdlib/go1_16_net_smtp.go (about) 1 // Code generated by 'yaegi extract net/smtp'. DO NOT EDIT. 2 3 // +build go1.16,!go1.17 4 5 package stdlib 6 7 import ( 8 "net/smtp" 9 "reflect" 10 ) 11 12 func init() { 13 Symbols["net/smtp/smtp"] = map[string]reflect.Value{ 14 // function, constant and variable definitions 15 "CRAMMD5Auth": reflect.ValueOf(smtp.CRAMMD5Auth), 16 "Dial": reflect.ValueOf(smtp.Dial), 17 "NewClient": reflect.ValueOf(smtp.NewClient), 18 "PlainAuth": reflect.ValueOf(smtp.PlainAuth), 19 "SendMail": reflect.ValueOf(smtp.SendMail), 20 21 // type definitions 22 "Auth": reflect.ValueOf((*smtp.Auth)(nil)), 23 "Client": reflect.ValueOf((*smtp.Client)(nil)), 24 "ServerInfo": reflect.ValueOf((*smtp.ServerInfo)(nil)), 25 26 // interface wrapper definitions 27 "_Auth": reflect.ValueOf((*_net_smtp_Auth)(nil)), 28 } 29 } 30 31 // _net_smtp_Auth is an interface wrapper for Auth type 32 type _net_smtp_Auth struct { 33 IValue interface{} 34 WNext func(fromServer []byte, more bool) (toServer []byte, err error) 35 WStart func(server *smtp.ServerInfo) (proto string, toServer []byte, err error) 36 } 37 38 func (W _net_smtp_Auth) Next(fromServer []byte, more bool) (toServer []byte, err error) { 39 return W.WNext(fromServer, more) 40 } 41 func (W _net_smtp_Auth) Start(server *smtp.ServerInfo) (proto string, toServer []byte, err error) { 42 return W.WStart(server) 43 }