Debian Codegraph @

stdlib/go1_21_net_smtp.go

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