diff --git a/_test/interface44.go b/_test/interface44.go new file mode 100644 index 00000000..95a96110 --- /dev/null +++ b/_test/interface44.go @@ -0,0 +1,25 @@ +package main + +import ( + "fmt" + "strconv" +) + +type Foo int + +func (f Foo) String() string { + return "foo-" + strconv.Itoa(int(f)) +} + +func print1(arg interface{}) { + fmt.Println(arg) +} + +func main() { + var arg Foo = 3 + var f = print1 + f(arg) +} + +// Output: +// foo-3 diff --git a/_test/interface45.go b/_test/interface45.go new file mode 100644 index 00000000..1ef5c15f --- /dev/null +++ b/_test/interface45.go @@ -0,0 +1,20 @@ +package main + +import ( + "fmt" + "strconv" +) + +type Int int + +func (I Int) String() string { + return "foo-" + strconv.Itoa(int(I)) +} + +func main() { + var i Int = 3 + fmt.Println(i) +} + +// Output: +// foo-3 diff --git a/cmd/goexports/goexports.go b/cmd/goexports/goexports.go index ae50c49d..09506a0e 100644 --- a/cmd/goexports/goexports.go +++ b/cmd/goexports/goexports.go @@ -88,10 +88,14 @@ func init() { {{range $key, $value := .Wrap -}} // {{$value.Name}} is an interface wrapper for {{$key}} type type {{$value.Name}} struct { + Val interface{} {{range $m := $value.Method -}} W{{$m.Name}} func{{$m.Param}} {{$m.Result}} {{end}} } + {{- if $value.NeedString}} + func (W {{$value.Name}}) String() string { return fmt.Sprint(W.Val) } + {{end}} {{range $m := $value.Method -}} func (W {{$value.Name}}) {{$m.Name}}{{$m.Param}} {{$m.Result}} { {{$m.Ret}} W.W{{$m.Name}}{{$m.Arg}} } {{end}} @@ -111,8 +115,9 @@ type Method struct { // Wrap store information for generating interface wrapper. type Wrap struct { - Name string - Method []Method + Name string + NeedString bool + Method []Method } func genContent(dest, pkgName, license string) ([]byte, error) { @@ -163,6 +168,7 @@ func genContent(dest, pkgName, license string) ([]byte, error) { typ[name] = pname if t, ok := o.Type().Underlying().(*types.Interface); ok { var methods []Method + needString := true for i := 0; i < t.NumMethods(); i++ { f := t.Method(i) if !f.Exported() { @@ -193,10 +199,15 @@ func genContent(dest, pkgName, license string) ([]byte, error) { if sign.Results().Len() > 0 { ret = "return" } - + if f.Name() == "String" { + needString = false + } methods = append(methods, Method{f.Name(), param, result, arg, ret}) } - wrap[name] = Wrap{prefix + name, methods} + if needString { + imports["fmt"] = true + } + wrap[name] = Wrap{prefix + name, needString, methods} } } } diff --git a/interp/interp.go b/interp/interp.go index e40d1e49..0d04048b 100644 --- a/interp/interp.go +++ b/interp/interp.go @@ -14,6 +14,7 @@ import ( "runtime" "runtime/debug" "strconv" + "strings" "sync" "sync/atomic" ) @@ -102,6 +103,9 @@ type Exports map[string]map[string]reflect.Value // imports stores the map of source packages per package path. type imports map[string]map[string]*symbol +// binWrap stores the map of binary interface wrappers indexed per method signature. +type binWrap map[string][]reflect.Type + // opt stores interpreter options. type opt struct { astDot bool // display AST graph (debug) @@ -131,13 +135,15 @@ type Interpreter struct { binPkg Exports // binary packages used in interpreter, indexed by path rdir map[string]bool // for src import cycle detection - mutex sync.RWMutex + mutex sync.RWMutex + done chan struct{} // for cancellation of channel operations + frame *frame // program data storage during execution universe *scope // interpreter global level scope scopes map[string]*scope // package level scopes, indexed by package name srcPkg imports // source packages used in interpreter, indexed by path pkgNames map[string]string // package names, indexed by path - done chan struct{} // for cancellation of channel operations + binWrap binWrap // binary wrappers indexed by method signature hooks *hooks // symbol hooks } @@ -161,10 +167,16 @@ func init() { Symbols[selfPath]["Symbols"] = reflect.ValueOf(Symbols) } // _error is a wrapper of error interface type. type _error struct { + Val interface{} WError func() string } -func (w _error) Error() string { return w.WError() } +func (w _error) Error() string { + if w.WError != nil { + return w.WError() + } + return fmt.Sprint(w.Val) +} // Panic is an error recovered from a panic call in interpreted code. type Panic struct { @@ -218,6 +230,7 @@ func New(options Options) *Interpreter { srcPkg: imports{}, pkgNames: map[string]string{}, rdir: map[string]bool{}, + binWrap: binWrap{}, hooks: &hooks{}, } @@ -457,6 +470,23 @@ func (interp *Interpreter) stop() { func (interp *Interpreter) runid() uint64 { return atomic.LoadUint64(&interp.id) } +// getWrapperType returns the wrapper type which implements the highest number of methods of t. +func (interp *Interpreter) getWrapperType(t *itype) reflect.Type { + methods := t.methods() + var nmw int + var wt reflect.Type + // build a list of wrapper type candidates + for k, v := range methods { + for _, it := range interp.binWrap[k+v] { + if methods.containsR(it) && it.NumMethod() > nmw { + nmw = it.NumMethod() + wt = it + } + } + } + return wt +} + // getWrapper returns the wrapper type of the corresponding interface, or nil if not found. func (interp *Interpreter) getWrapper(t reflect.Type) reflect.Type { if p, ok := interp.binPkg[t.PkgPath()]; ok { @@ -475,6 +505,21 @@ func (interp *Interpreter) Use(values Exports) { } interp.binPkg[k] = v + + // Register binary interface wrappers. + for id, val := range v { + if !strings.HasPrefix(id, "_") { + continue + } + t := val.Type().Elem() + it := v[strings.TrimPrefix(id, "_")].Type().Elem() + nm := it.NumMethod() + for i := 0; i < nm; i++ { + m := it.Method(i) + name := m.Name + m.Type.String() + interp.binWrap[name] = append(interp.binWrap[name], t) + } + } } } diff --git a/interp/run.go b/interp/run.go index 9f41c47d..abfd7d67 100644 --- a/interp/run.go +++ b/interp/run.go @@ -377,7 +377,7 @@ func assign(n *node) { case dest.typ.cat == interfaceT: svalue[i] = genValueInterface(src) case (dest.typ.cat == valueT || dest.typ.cat == errorT) && dest.typ.rtype.Kind() == reflect.Interface: - svalue[i] = genInterfaceWrapper(src, dest.typ.rtype) + svalue[i], _ = genInterfaceWrapper(src, nil) case src.typ.cat == funcT && dest.typ.cat == valueT: svalue[i] = genFunctionWrapper(src) case src.typ.cat == funcT && isField(dest): @@ -661,7 +661,11 @@ func genFunctionWrapper(n *node) func(*frame) reflect.Value { if rcvr != nil { src, dest := rcvr(f), d[numRet] if src.Type().Kind() != dest.Type().Kind() { - dest.Set(src.Addr()) + if vi, ok := src.Interface().(valueInterface); ok { + dest.Set(vi.value) + } else { + dest.Set(src.Addr()) + } } else { dest.Set(src) } @@ -698,13 +702,24 @@ func genFunctionWrapper(n *node) func(*frame) reflect.Value { } } -func genInterfaceWrapper(n *node, typ reflect.Type) func(*frame) reflect.Value { +func genInterfaceWrapper(n *node, t reflect.Type) (func(*frame) reflect.Value, bool) { value := genValue(n) - if typ == nil || typ.Kind() != reflect.Interface || typ.NumMethod() == 0 || n.typ.cat == valueT { - return value + var typ reflect.Type + switch n.typ.cat { + case valueT: + return value, false + default: + if t != nil { + if nt := n.typ.TypeOf(); nt != nil && nt.Kind() == reflect.Interface { + return value, false + } + typ = n.interp.getWrapper(t) + } else { + typ = n.interp.getWrapperType(n.typ) + } } - if nt := n.typ.TypeOf(); nt != nil && nt.Kind() == reflect.Interface { - return value + if typ == nil { + return value, false } mn := typ.NumMethod() names := make([]string, mn) @@ -718,7 +733,6 @@ func genInterfaceWrapper(n *node, typ reflect.Type) func(*frame) reflect.Value { _, indexes[i], _, _ = n.typ.lookupBinMethod(names[i]) } } - wrap := n.interp.getWrapper(typ) return func(f *frame) reflect.Value { v := value(f) @@ -726,22 +740,29 @@ func genInterfaceWrapper(n *node, typ reflect.Type) func(*frame) reflect.Value { switch v.Kind() { case reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Ptr, reflect.Slice: if v.IsNil() { - return reflect.New(typ).Elem() - } - if v.Kind() == reflect.Ptr { - vv = v.Elem() + return reflect.New(v.Type()).Elem() } } - w := reflect.New(wrap).Elem() + if v.Kind() == reflect.Ptr { + vv = v.Elem() + } + if vi, ok := v.Interface().(valueInterface); ok { + v = vi.value + } + w := reflect.New(typ).Elem() + w.Field(0).Set(v) for i, m := range methods { if m == nil { + if names[i] == "String" { + continue + } if r := v.MethodByName(names[i]); r.IsValid() { - w.Field(i).Set(r) + w.FieldByName("W" + names[i]).Set(r) continue } o := vv.FieldByIndex(indexes[i]) if r := o.MethodByName(names[i]); r.IsValid() { - w.Field(i).Set(r) + w.FieldByName("W" + names[i]).Set(r) } else { log.Println(n.cfgErrorf("genInterfaceWrapper error, no method %s", names[i])) } @@ -749,10 +770,10 @@ func genInterfaceWrapper(n *node, typ reflect.Type) func(*frame) reflect.Value { } nod := *m nod.recv = &receiver{n, v, indexes[i]} - w.Field(i).Set(genFunctionWrapper(&nod)(f)) + w.FieldByName("W" + names[i]).Set(genFunctionWrapper(&nod)(f)) } return w - } + }, true } func call(n *node) { @@ -998,14 +1019,6 @@ func call(n *node) { } } -// pindex returns definition parameter index for function call. -func pindex(i, variadic int) int { - if variadic < 0 || i <= variadic { - return i - } - return variadic -} - // Callbin calls a function from a bin import, accessible through reflect. func callBin(n *node) { tnext := getExec(n.tnext) @@ -1033,7 +1046,6 @@ func callBin(n *node) { } for i, c := range child { - defType := funcType.In(pindex(i, variadic)) switch { case isBinCall(c): // Handle nested function calls: pass returned values as arguments @@ -1072,10 +1084,12 @@ func callBin(n *node) { case interfaceT: values = append(values, genValueInterfaceArray(c)) default: - values = append(values, genInterfaceWrapper(c, defType)) + v, _ := genInterfaceWrapper(c, nil) + values = append(values, v) } default: - values = append(values, genInterfaceWrapper(c, defType)) + v, _ := genInterfaceWrapper(c, nil) + values = append(values, v) } } } @@ -1754,7 +1768,7 @@ func _return(n *node) { for i, c := range child { switch t := def.typ.ret[i]; t.cat { case errorT: - values[i] = genInterfaceWrapper(c, t.TypeOf()) + values[i], _ = genInterfaceWrapper(c, t.TypeOf()) case aliasT: if isInterfaceSrc(t) { values[i] = genValueInterface(c) @@ -1767,7 +1781,7 @@ func _return(n *node) { values[i] = genValueInterface(c) case valueT: if t.rtype.Kind() == reflect.Interface { - values[i] = genInterfaceWrapper(c, t.rtype) + values[i], _ = genInterfaceWrapper(c, nil) break } fallthrough diff --git a/interp/type.go b/interp/type.go index 891ed47d..dc62246a 100644 --- a/interp/type.go +++ b/interp/type.go @@ -960,6 +960,22 @@ func (m methodSet) contains(n methodSet) bool { return true } +// containsR returns true if all methods of t are defined in m method set. +func (m methodSet) containsR(t reflect.Type) bool { + nm := t.NumMethod() + for i := 0; i < nm; i++ { + method := t.Method(i) + if method.Name == "String" || method.Name == "Error" { // always provided by wrapper + continue + } + // TODO: should also verify method signature + if m[method.Name] == "" { + return false + } + } + return true +} + // Equal returns true if the method set m is equal to the method set n. func (m methodSet) equals(n methodSet) bool { return m.contains(n) && n.contains(m) @@ -967,7 +983,17 @@ func (m methodSet) equals(n methodSet) bool { // Methods returns a map of method type strings, indexed by method names. func (t *itype) methods() methodSet { + return getMethods(t, map[string]bool{}) +} + +func getMethods(t *itype, visited map[string]bool) methodSet { res := make(methodSet) + name := t.path + "/" + t.name + if visited[name] { + return res + } + visited[name] = true + switch t.cat { case interfaceT: // Get methods from recursive analysis of interface fields. @@ -975,7 +1001,7 @@ func (t *itype) methods() methodSet { if f.typ.cat == funcT { res[f.name] = f.typ.TypeOf().String() } else { - for k, v := range f.typ.methods() { + for k, v := range getMethods(f.typ, visited) { res[k] = v } } @@ -987,12 +1013,12 @@ func (t *itype) methods() methodSet { res[m.Name] = m.Type.String() } case ptrT: - for k, v := range t.val.methods() { + for k, v := range getMethods(t.val, visited) { res[k] = v } case structT: for _, f := range t.field { - for k, v := range f.typ.methods() { + for k, v := range getMethods(f.typ, visited) { res[k] = v } } diff --git a/interp/value.go b/interp/value.go index e7b386be..3afff09f 100644 --- a/interp/value.go +++ b/interp/value.go @@ -252,10 +252,10 @@ func genValueInterfaceValue(n *node) func(*frame) reflect.Value { return func(f *frame) reflect.Value { v := value(f) - if v.Interface().(valueInterface).node == nil { - // Uninitialized interface value, set it to a correct zero value. + if nod := v.Interface().(valueInterface).node; nod == nil { v.Set(zeroInterfaceValue()) - v = value(f) + } else if w, ok := genInterfaceWrapper(nod, nil); ok { + return w(f) } return v.Interface().(valueInterface).value } diff --git a/stdlib/go1_13_compress_flate.go b/stdlib/go1_13_compress_flate.go index e3943a98..0eae25d4 100644 --- a/stdlib/go1_13_compress_flate.go +++ b/stdlib/go1_13_compress_flate.go @@ -6,6 +6,7 @@ package stdlib import ( "compress/flate" + "fmt" "go/constant" "go/token" "io" @@ -42,16 +43,22 @@ func init() { // _compress_flate_Reader is an interface wrapper for Reader type type _compress_flate_Reader struct { + Val interface{} WRead func(p []byte) (n int, err error) WReadByte func() (byte, error) } +func (W _compress_flate_Reader) String() string { return fmt.Sprint(W.Val) } + func (W _compress_flate_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _compress_flate_Reader) ReadByte() (byte, error) { return W.WReadByte() } // _compress_flate_Resetter is an interface wrapper for Resetter type type _compress_flate_Resetter struct { + Val interface{} WReset func(r io.Reader, dict []byte) error } +func (W _compress_flate_Resetter) String() string { return fmt.Sprint(W.Val) } + func (W _compress_flate_Resetter) Reset(r io.Reader, dict []byte) error { return W.WReset(r, dict) } diff --git a/stdlib/go1_13_compress_zlib.go b/stdlib/go1_13_compress_zlib.go index 5fcf4f58..49f46b6e 100644 --- a/stdlib/go1_13_compress_zlib.go +++ b/stdlib/go1_13_compress_zlib.go @@ -6,6 +6,7 @@ package stdlib import ( "compress/zlib" + "fmt" "go/constant" "go/token" "io" @@ -40,7 +41,10 @@ func init() { // _compress_zlib_Resetter is an interface wrapper for Resetter type type _compress_zlib_Resetter struct { + Val interface{} WReset func(r io.Reader, dict []byte) error } +func (W _compress_zlib_Resetter) String() string { return fmt.Sprint(W.Val) } + func (W _compress_zlib_Resetter) Reset(r io.Reader, dict []byte) error { return W.WReset(r, dict) } diff --git a/stdlib/go1_13_container_heap.go b/stdlib/go1_13_container_heap.go index bee5333f..26d0d1d1 100644 --- a/stdlib/go1_13_container_heap.go +++ b/stdlib/go1_13_container_heap.go @@ -6,6 +6,7 @@ package stdlib import ( "container/heap" + "fmt" "reflect" ) @@ -28,6 +29,7 @@ func init() { // _container_heap_Interface is an interface wrapper for Interface type type _container_heap_Interface struct { + Val interface{} WLen func() int WLess func(i int, j int) bool WPop func() interface{} @@ -35,6 +37,8 @@ type _container_heap_Interface struct { WSwap func(i int, j int) } +func (W _container_heap_Interface) String() string { return fmt.Sprint(W.Val) } + func (W _container_heap_Interface) Len() int { return W.WLen() } func (W _container_heap_Interface) Less(i int, j int) bool { return W.WLess(i, j) } func (W _container_heap_Interface) Pop() interface{} { return W.WPop() } diff --git a/stdlib/go1_13_context.go b/stdlib/go1_13_context.go index 4b8f2778..9fa55b6f 100644 --- a/stdlib/go1_13_context.go +++ b/stdlib/go1_13_context.go @@ -6,6 +6,7 @@ package stdlib import ( "context" + "fmt" "reflect" "time" ) @@ -33,12 +34,15 @@ func init() { // _context_Context is an interface wrapper for Context type type _context_Context struct { + Val interface{} WDeadline func() (deadline time.Time, ok bool) WDone func() <-chan struct{} WErr func() error WValue func(key interface{}) interface{} } +func (W _context_Context) String() string { return fmt.Sprint(W.Val) } + func (W _context_Context) Deadline() (deadline time.Time, ok bool) { return W.WDeadline() } func (W _context_Context) Done() <-chan struct{} { return W.WDone() } func (W _context_Context) Err() error { return W.WErr() } diff --git a/stdlib/go1_13_crypto.go b/stdlib/go1_13_crypto.go index 3f5683c2..7211d6d8 100644 --- a/stdlib/go1_13_crypto.go +++ b/stdlib/go1_13_crypto.go @@ -6,6 +6,7 @@ package stdlib import ( "crypto" + "fmt" "io" "reflect" ) @@ -55,10 +56,13 @@ func init() { // _crypto_Decrypter is an interface wrapper for Decrypter type type _crypto_Decrypter struct { + Val interface{} WDecrypt func(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error) WPublic func() crypto.PublicKey } +func (W _crypto_Decrypter) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_Decrypter) Decrypt(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error) { return W.WDecrypt(rand, msg, opts) } @@ -66,22 +70,34 @@ func (W _crypto_Decrypter) Public() crypto.PublicKey { return W.WPublic() } // _crypto_DecrypterOpts is an interface wrapper for DecrypterOpts type type _crypto_DecrypterOpts struct { + Val interface{} } +func (W _crypto_DecrypterOpts) String() string { return fmt.Sprint(W.Val) } + // _crypto_PrivateKey is an interface wrapper for PrivateKey type type _crypto_PrivateKey struct { + Val interface{} } +func (W _crypto_PrivateKey) String() string { return fmt.Sprint(W.Val) } + // _crypto_PublicKey is an interface wrapper for PublicKey type type _crypto_PublicKey struct { + Val interface{} } +func (W _crypto_PublicKey) String() string { return fmt.Sprint(W.Val) } + // _crypto_Signer is an interface wrapper for Signer type type _crypto_Signer struct { + Val interface{} WPublic func() crypto.PublicKey WSign func(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error) } +func (W _crypto_Signer) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_Signer) Public() crypto.PublicKey { return W.WPublic() } func (W _crypto_Signer) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error) { return W.WSign(rand, digest, opts) @@ -89,7 +105,10 @@ func (W _crypto_Signer) Sign(rand io.Reader, digest []byte, opts crypto.SignerOp // _crypto_SignerOpts is an interface wrapper for SignerOpts type type _crypto_SignerOpts struct { + Val interface{} WHashFunc func() crypto.Hash } +func (W _crypto_SignerOpts) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_SignerOpts) HashFunc() crypto.Hash { return W.WHashFunc() } diff --git a/stdlib/go1_13_crypto_cipher.go b/stdlib/go1_13_crypto_cipher.go index 31fb98e3..4decd354 100644 --- a/stdlib/go1_13_crypto_cipher.go +++ b/stdlib/go1_13_crypto_cipher.go @@ -6,6 +6,7 @@ package stdlib import ( "crypto/cipher" + "fmt" "reflect" ) @@ -40,12 +41,15 @@ func init() { // _crypto_cipher_AEAD is an interface wrapper for AEAD type type _crypto_cipher_AEAD struct { + Val interface{} WNonceSize func() int WOpen func(dst []byte, nonce []byte, ciphertext []byte, additionalData []byte) ([]byte, error) WOverhead func() int WSeal func(dst []byte, nonce []byte, plaintext []byte, additionalData []byte) []byte } +func (W _crypto_cipher_AEAD) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_cipher_AEAD) NonceSize() int { return W.WNonceSize() } func (W _crypto_cipher_AEAD) Open(dst []byte, nonce []byte, ciphertext []byte, additionalData []byte) ([]byte, error) { return W.WOpen(dst, nonce, ciphertext, additionalData) @@ -57,27 +61,36 @@ func (W _crypto_cipher_AEAD) Seal(dst []byte, nonce []byte, plaintext []byte, ad // _crypto_cipher_Block is an interface wrapper for Block type type _crypto_cipher_Block struct { + Val interface{} WBlockSize func() int WDecrypt func(dst []byte, src []byte) WEncrypt func(dst []byte, src []byte) } +func (W _crypto_cipher_Block) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_cipher_Block) BlockSize() int { return W.WBlockSize() } func (W _crypto_cipher_Block) Decrypt(dst []byte, src []byte) { W.WDecrypt(dst, src) } func (W _crypto_cipher_Block) Encrypt(dst []byte, src []byte) { W.WEncrypt(dst, src) } // _crypto_cipher_BlockMode is an interface wrapper for BlockMode type type _crypto_cipher_BlockMode struct { + Val interface{} WBlockSize func() int WCryptBlocks func(dst []byte, src []byte) } +func (W _crypto_cipher_BlockMode) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_cipher_BlockMode) BlockSize() int { return W.WBlockSize() } func (W _crypto_cipher_BlockMode) CryptBlocks(dst []byte, src []byte) { W.WCryptBlocks(dst, src) } // _crypto_cipher_Stream is an interface wrapper for Stream type type _crypto_cipher_Stream struct { + Val interface{} WXORKeyStream func(dst []byte, src []byte) } +func (W _crypto_cipher_Stream) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_cipher_Stream) XORKeyStream(dst []byte, src []byte) { W.WXORKeyStream(dst, src) } diff --git a/stdlib/go1_13_crypto_elliptic.go b/stdlib/go1_13_crypto_elliptic.go index 867d756d..16e83b9c 100644 --- a/stdlib/go1_13_crypto_elliptic.go +++ b/stdlib/go1_13_crypto_elliptic.go @@ -6,6 +6,7 @@ package stdlib import ( "crypto/elliptic" + "fmt" "math/big" "reflect" ) @@ -32,6 +33,7 @@ func init() { // _crypto_elliptic_Curve is an interface wrapper for Curve type type _crypto_elliptic_Curve struct { + Val interface{} WAdd func(x1 *big.Int, y1 *big.Int, x2 *big.Int, y2 *big.Int) (x *big.Int, y *big.Int) WDouble func(x1 *big.Int, y1 *big.Int) (x *big.Int, y *big.Int) WIsOnCurve func(x *big.Int, y *big.Int) bool @@ -40,6 +42,8 @@ type _crypto_elliptic_Curve struct { WScalarMult func(x1 *big.Int, y1 *big.Int, k []byte) (x *big.Int, y *big.Int) } +func (W _crypto_elliptic_Curve) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_elliptic_Curve) Add(x1 *big.Int, y1 *big.Int, x2 *big.Int, y2 *big.Int) (x *big.Int, y *big.Int) { return W.WAdd(x1, y1, x2, y2) } diff --git a/stdlib/go1_13_crypto_tls.go b/stdlib/go1_13_crypto_tls.go index 38ce0998..3a356113 100644 --- a/stdlib/go1_13_crypto_tls.go +++ b/stdlib/go1_13_crypto_tls.go @@ -6,6 +6,7 @@ package stdlib import ( "crypto/tls" + "fmt" "go/constant" "go/token" "reflect" @@ -101,10 +102,13 @@ func init() { // _crypto_tls_ClientSessionCache is an interface wrapper for ClientSessionCache type type _crypto_tls_ClientSessionCache struct { + Val interface{} WGet func(sessionKey string) (session *tls.ClientSessionState, ok bool) WPut func(sessionKey string, cs *tls.ClientSessionState) } +func (W _crypto_tls_ClientSessionCache) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_tls_ClientSessionCache) Get(sessionKey string) (session *tls.ClientSessionState, ok bool) { return W.WGet(sessionKey) } diff --git a/stdlib/go1_13_database_sql.go b/stdlib/go1_13_database_sql.go index 7fd5f0e2..f30acc35 100644 --- a/stdlib/go1_13_database_sql.go +++ b/stdlib/go1_13_database_sql.go @@ -6,6 +6,7 @@ package stdlib import ( "database/sql" + "fmt" "reflect" ) @@ -60,16 +61,22 @@ func init() { // _database_sql_Result is an interface wrapper for Result type type _database_sql_Result struct { + Val interface{} WLastInsertId func() (int64, error) WRowsAffected func() (int64, error) } +func (W _database_sql_Result) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_Result) LastInsertId() (int64, error) { return W.WLastInsertId() } func (W _database_sql_Result) RowsAffected() (int64, error) { return W.WRowsAffected() } // _database_sql_Scanner is an interface wrapper for Scanner type type _database_sql_Scanner struct { + Val interface{} WScan func(src interface{}) error } +func (W _database_sql_Scanner) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_Scanner) Scan(src interface{}) error { return W.WScan(src) } diff --git a/stdlib/go1_13_database_sql_driver.go b/stdlib/go1_13_database_sql_driver.go index 8fb2756c..b8c89814 100644 --- a/stdlib/go1_13_database_sql_driver.go +++ b/stdlib/go1_13_database_sql_driver.go @@ -7,6 +7,7 @@ package stdlib import ( "context" "database/sql/driver" + "fmt" "reflect" ) @@ -96,20 +97,26 @@ func init() { // _database_sql_driver_ColumnConverter is an interface wrapper for ColumnConverter type type _database_sql_driver_ColumnConverter struct { + Val interface{} WColumnConverter func(idx int) driver.ValueConverter } +func (W _database_sql_driver_ColumnConverter) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ColumnConverter) ColumnConverter(idx int) driver.ValueConverter { return W.WColumnConverter(idx) } // _database_sql_driver_Conn is an interface wrapper for Conn type type _database_sql_driver_Conn struct { + Val interface{} WBegin func() (driver.Tx, error) WClose func() error WPrepare func(query string) (driver.Stmt, error) } +func (W _database_sql_driver_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Conn) Begin() (driver.Tx, error) { return W.WBegin() } func (W _database_sql_driver_Conn) Close() error { return W.WClose() } func (W _database_sql_driver_Conn) Prepare(query string) (driver.Stmt, error) { @@ -118,28 +125,37 @@ func (W _database_sql_driver_Conn) Prepare(query string) (driver.Stmt, error) { // _database_sql_driver_ConnBeginTx is an interface wrapper for ConnBeginTx type type _database_sql_driver_ConnBeginTx struct { + Val interface{} WBeginTx func(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) } +func (W _database_sql_driver_ConnBeginTx) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ConnBeginTx) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) { return W.WBeginTx(ctx, opts) } // _database_sql_driver_ConnPrepareContext is an interface wrapper for ConnPrepareContext type type _database_sql_driver_ConnPrepareContext struct { + Val interface{} WPrepareContext func(ctx context.Context, query string) (driver.Stmt, error) } +func (W _database_sql_driver_ConnPrepareContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ConnPrepareContext) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) { return W.WPrepareContext(ctx, query) } // _database_sql_driver_Connector is an interface wrapper for Connector type type _database_sql_driver_Connector struct { + Val interface{} WConnect func(a0 context.Context) (driver.Conn, error) WDriver func() driver.Driver } +func (W _database_sql_driver_Connector) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Connector) Connect(a0 context.Context) (driver.Conn, error) { return W.WConnect(a0) } @@ -147,100 +163,133 @@ func (W _database_sql_driver_Connector) Driver() driver.Driver { return W.WDrive // _database_sql_driver_Driver is an interface wrapper for Driver type type _database_sql_driver_Driver struct { + Val interface{} WOpen func(name string) (driver.Conn, error) } +func (W _database_sql_driver_Driver) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Driver) Open(name string) (driver.Conn, error) { return W.WOpen(name) } // _database_sql_driver_DriverContext is an interface wrapper for DriverContext type type _database_sql_driver_DriverContext struct { + Val interface{} WOpenConnector func(name string) (driver.Connector, error) } +func (W _database_sql_driver_DriverContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_DriverContext) OpenConnector(name string) (driver.Connector, error) { return W.WOpenConnector(name) } // _database_sql_driver_Execer is an interface wrapper for Execer type type _database_sql_driver_Execer struct { + Val interface{} WExec func(query string, args []driver.Value) (driver.Result, error) } +func (W _database_sql_driver_Execer) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Execer) Exec(query string, args []driver.Value) (driver.Result, error) { return W.WExec(query, args) } // _database_sql_driver_ExecerContext is an interface wrapper for ExecerContext type type _database_sql_driver_ExecerContext struct { + Val interface{} WExecContext func(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) } +func (W _database_sql_driver_ExecerContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ExecerContext) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) { return W.WExecContext(ctx, query, args) } // _database_sql_driver_NamedValueChecker is an interface wrapper for NamedValueChecker type type _database_sql_driver_NamedValueChecker struct { + Val interface{} WCheckNamedValue func(a0 *driver.NamedValue) error } +func (W _database_sql_driver_NamedValueChecker) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_NamedValueChecker) CheckNamedValue(a0 *driver.NamedValue) error { return W.WCheckNamedValue(a0) } // _database_sql_driver_Pinger is an interface wrapper for Pinger type type _database_sql_driver_Pinger struct { + Val interface{} WPing func(ctx context.Context) error } +func (W _database_sql_driver_Pinger) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Pinger) Ping(ctx context.Context) error { return W.WPing(ctx) } // _database_sql_driver_Queryer is an interface wrapper for Queryer type type _database_sql_driver_Queryer struct { + Val interface{} WQuery func(query string, args []driver.Value) (driver.Rows, error) } +func (W _database_sql_driver_Queryer) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Queryer) Query(query string, args []driver.Value) (driver.Rows, error) { return W.WQuery(query, args) } // _database_sql_driver_QueryerContext is an interface wrapper for QueryerContext type type _database_sql_driver_QueryerContext struct { + Val interface{} WQueryContext func(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) } +func (W _database_sql_driver_QueryerContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_QueryerContext) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) { return W.WQueryContext(ctx, query, args) } // _database_sql_driver_Result is an interface wrapper for Result type type _database_sql_driver_Result struct { + Val interface{} WLastInsertId func() (int64, error) WRowsAffected func() (int64, error) } +func (W _database_sql_driver_Result) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Result) LastInsertId() (int64, error) { return W.WLastInsertId() } func (W _database_sql_driver_Result) RowsAffected() (int64, error) { return W.WRowsAffected() } // _database_sql_driver_Rows is an interface wrapper for Rows type type _database_sql_driver_Rows struct { + Val interface{} WClose func() error WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_Rows) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Rows) Close() error { return W.WClose() } func (W _database_sql_driver_Rows) Columns() []string { return W.WColumns() } func (W _database_sql_driver_Rows) Next(dest []driver.Value) error { return W.WNext(dest) } // _database_sql_driver_RowsColumnTypeDatabaseTypeName is an interface wrapper for RowsColumnTypeDatabaseTypeName type type _database_sql_driver_RowsColumnTypeDatabaseTypeName struct { + Val interface{} WClose func() error WColumnTypeDatabaseTypeName func(index int) string WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) ColumnTypeDatabaseTypeName(index int) string { return W.WColumnTypeDatabaseTypeName(index) @@ -252,12 +301,15 @@ func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Next(dest []driver. // _database_sql_driver_RowsColumnTypeLength is an interface wrapper for RowsColumnTypeLength type type _database_sql_driver_RowsColumnTypeLength struct { + Val interface{} WClose func() error WColumnTypeLength func(index int) (length int64, ok bool) WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypeLength) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypeLength) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypeLength) ColumnTypeLength(index int) (length int64, ok bool) { return W.WColumnTypeLength(index) @@ -269,12 +321,15 @@ func (W _database_sql_driver_RowsColumnTypeLength) Next(dest []driver.Value) err // _database_sql_driver_RowsColumnTypeNullable is an interface wrapper for RowsColumnTypeNullable type type _database_sql_driver_RowsColumnTypeNullable struct { + Val interface{} WClose func() error WColumnTypeNullable func(index int) (nullable bool, ok bool) WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypeNullable) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypeNullable) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypeNullable) ColumnTypeNullable(index int) (nullable bool, ok bool) { return W.WColumnTypeNullable(index) @@ -286,12 +341,15 @@ func (W _database_sql_driver_RowsColumnTypeNullable) Next(dest []driver.Value) e // _database_sql_driver_RowsColumnTypePrecisionScale is an interface wrapper for RowsColumnTypePrecisionScale type type _database_sql_driver_RowsColumnTypePrecisionScale struct { + Val interface{} WClose func() error WColumnTypePrecisionScale func(index int) (precision int64, scale int64, ok bool) WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypePrecisionScale) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypePrecisionScale) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypePrecisionScale) ColumnTypePrecisionScale(index int) (precision int64, scale int64, ok bool) { return W.WColumnTypePrecisionScale(index) @@ -303,12 +361,15 @@ func (W _database_sql_driver_RowsColumnTypePrecisionScale) Next(dest []driver.Va // _database_sql_driver_RowsColumnTypeScanType is an interface wrapper for RowsColumnTypeScanType type type _database_sql_driver_RowsColumnTypeScanType struct { + Val interface{} WClose func() error WColumnTypeScanType func(index int) reflect.Type WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypeScanType) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypeScanType) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypeScanType) ColumnTypeScanType(index int) reflect.Type { return W.WColumnTypeScanType(index) @@ -320,6 +381,7 @@ func (W _database_sql_driver_RowsColumnTypeScanType) Next(dest []driver.Value) e // _database_sql_driver_RowsNextResultSet is an interface wrapper for RowsNextResultSet type type _database_sql_driver_RowsNextResultSet struct { + Val interface{} WClose func() error WColumns func() []string WHasNextResultSet func() bool @@ -327,6 +389,8 @@ type _database_sql_driver_RowsNextResultSet struct { WNextResultSet func() error } +func (W _database_sql_driver_RowsNextResultSet) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsNextResultSet) Close() error { return W.WClose() } func (W _database_sql_driver_RowsNextResultSet) Columns() []string { return W.WColumns() } func (W _database_sql_driver_RowsNextResultSet) HasNextResultSet() bool { @@ -339,21 +403,27 @@ func (W _database_sql_driver_RowsNextResultSet) NextResultSet() error { return W // _database_sql_driver_SessionResetter is an interface wrapper for SessionResetter type type _database_sql_driver_SessionResetter struct { + Val interface{} WResetSession func(ctx context.Context) error } +func (W _database_sql_driver_SessionResetter) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_SessionResetter) ResetSession(ctx context.Context) error { return W.WResetSession(ctx) } // _database_sql_driver_Stmt is an interface wrapper for Stmt type type _database_sql_driver_Stmt struct { + Val interface{} WClose func() error WExec func(args []driver.Value) (driver.Result, error) WNumInput func() int WQuery func(args []driver.Value) (driver.Rows, error) } +func (W _database_sql_driver_Stmt) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Stmt) Close() error { return W.WClose() } func (W _database_sql_driver_Stmt) Exec(args []driver.Value) (driver.Result, error) { return W.WExec(args) @@ -365,47 +435,65 @@ func (W _database_sql_driver_Stmt) Query(args []driver.Value) (driver.Rows, erro // _database_sql_driver_StmtExecContext is an interface wrapper for StmtExecContext type type _database_sql_driver_StmtExecContext struct { + Val interface{} WExecContext func(ctx context.Context, args []driver.NamedValue) (driver.Result, error) } +func (W _database_sql_driver_StmtExecContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_StmtExecContext) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) { return W.WExecContext(ctx, args) } // _database_sql_driver_StmtQueryContext is an interface wrapper for StmtQueryContext type type _database_sql_driver_StmtQueryContext struct { + Val interface{} WQueryContext func(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) } +func (W _database_sql_driver_StmtQueryContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_StmtQueryContext) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) { return W.WQueryContext(ctx, args) } // _database_sql_driver_Tx is an interface wrapper for Tx type type _database_sql_driver_Tx struct { + Val interface{} WCommit func() error WRollback func() error } +func (W _database_sql_driver_Tx) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Tx) Commit() error { return W.WCommit() } func (W _database_sql_driver_Tx) Rollback() error { return W.WRollback() } // _database_sql_driver_Value is an interface wrapper for Value type type _database_sql_driver_Value struct { + Val interface{} } +func (W _database_sql_driver_Value) String() string { return fmt.Sprint(W.Val) } + // _database_sql_driver_ValueConverter is an interface wrapper for ValueConverter type type _database_sql_driver_ValueConverter struct { + Val interface{} WConvertValue func(v interface{}) (driver.Value, error) } +func (W _database_sql_driver_ValueConverter) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ValueConverter) ConvertValue(v interface{}) (driver.Value, error) { return W.WConvertValue(v) } // _database_sql_driver_Valuer is an interface wrapper for Valuer type type _database_sql_driver_Valuer struct { + Val interface{} WValue func() (driver.Value, error) } +func (W _database_sql_driver_Valuer) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Valuer) Value() (driver.Value, error) { return W.WValue() } diff --git a/stdlib/go1_13_debug_dwarf.go b/stdlib/go1_13_debug_dwarf.go index 9bb4e1b4..4ff46dca 100644 --- a/stdlib/go1_13_debug_dwarf.go +++ b/stdlib/go1_13_debug_dwarf.go @@ -209,6 +209,7 @@ func init() { // _debug_dwarf_Type is an interface wrapper for Type type type _debug_dwarf_Type struct { + Val interface{} WCommon func() *dwarf.CommonType WSize func() int64 WString func() string diff --git a/stdlib/go1_13_debug_macho.go b/stdlib/go1_13_debug_macho.go index c6a354a8..dd93417a 100644 --- a/stdlib/go1_13_debug_macho.go +++ b/stdlib/go1_13_debug_macho.go @@ -6,6 +6,7 @@ package stdlib import ( "debug/macho" + "fmt" "reflect" ) @@ -150,7 +151,10 @@ func init() { // _debug_macho_Load is an interface wrapper for Load type type _debug_macho_Load struct { + Val interface{} WRaw func() []byte } +func (W _debug_macho_Load) String() string { return fmt.Sprint(W.Val) } + func (W _debug_macho_Load) Raw() []byte { return W.WRaw() } diff --git a/stdlib/go1_13_encoding.go b/stdlib/go1_13_encoding.go index a83ad897..a5b8350b 100644 --- a/stdlib/go1_13_encoding.go +++ b/stdlib/go1_13_encoding.go @@ -6,6 +6,7 @@ package stdlib import ( "encoding" + "fmt" "reflect" ) @@ -27,30 +28,42 @@ func init() { // _encoding_BinaryMarshaler is an interface wrapper for BinaryMarshaler type type _encoding_BinaryMarshaler struct { + Val interface{} WMarshalBinary func() (data []byte, err error) } +func (W _encoding_BinaryMarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_BinaryMarshaler) MarshalBinary() (data []byte, err error) { return W.WMarshalBinary() } // _encoding_BinaryUnmarshaler is an interface wrapper for BinaryUnmarshaler type type _encoding_BinaryUnmarshaler struct { + Val interface{} WUnmarshalBinary func(data []byte) error } +func (W _encoding_BinaryUnmarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_BinaryUnmarshaler) UnmarshalBinary(data []byte) error { return W.WUnmarshalBinary(data) } // _encoding_TextMarshaler is an interface wrapper for TextMarshaler type type _encoding_TextMarshaler struct { + Val interface{} WMarshalText func() (text []byte, err error) } +func (W _encoding_TextMarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_TextMarshaler) MarshalText() (text []byte, err error) { return W.WMarshalText() } // _encoding_TextUnmarshaler is an interface wrapper for TextUnmarshaler type type _encoding_TextUnmarshaler struct { + Val interface{} WUnmarshalText func(text []byte) error } +func (W _encoding_TextUnmarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_TextUnmarshaler) UnmarshalText(text []byte) error { return W.WUnmarshalText(text) } diff --git a/stdlib/go1_13_encoding_binary.go b/stdlib/go1_13_encoding_binary.go index c6ea2d6d..748d80ad 100644 --- a/stdlib/go1_13_encoding_binary.go +++ b/stdlib/go1_13_encoding_binary.go @@ -39,6 +39,7 @@ func init() { // _encoding_binary_ByteOrder is an interface wrapper for ByteOrder type type _encoding_binary_ByteOrder struct { + Val interface{} WPutUint16 func(a0 []byte, a1 uint16) WPutUint32 func(a0 []byte, a1 uint32) WPutUint64 func(a0 []byte, a1 uint64) diff --git a/stdlib/go1_13_encoding_gob.go b/stdlib/go1_13_encoding_gob.go index f737ae42..d3ae233b 100644 --- a/stdlib/go1_13_encoding_gob.go +++ b/stdlib/go1_13_encoding_gob.go @@ -6,6 +6,7 @@ package stdlib import ( "encoding/gob" + "fmt" "reflect" ) @@ -32,14 +33,20 @@ func init() { // _encoding_gob_GobDecoder is an interface wrapper for GobDecoder type type _encoding_gob_GobDecoder struct { + Val interface{} WGobDecode func(a0 []byte) error } +func (W _encoding_gob_GobDecoder) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_gob_GobDecoder) GobDecode(a0 []byte) error { return W.WGobDecode(a0) } // _encoding_gob_GobEncoder is an interface wrapper for GobEncoder type type _encoding_gob_GobEncoder struct { + Val interface{} WGobEncode func() ([]byte, error) } +func (W _encoding_gob_GobEncoder) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_gob_GobEncoder) GobEncode() ([]byte, error) { return W.WGobEncode() } diff --git a/stdlib/go1_13_encoding_json.go b/stdlib/go1_13_encoding_json.go index d3d581dd..1dd16ad9 100644 --- a/stdlib/go1_13_encoding_json.go +++ b/stdlib/go1_13_encoding_json.go @@ -6,6 +6,7 @@ package stdlib import ( "encoding/json" + "fmt" "reflect" ) @@ -49,18 +50,27 @@ func init() { // _encoding_json_Marshaler is an interface wrapper for Marshaler type type _encoding_json_Marshaler struct { + Val interface{} WMarshalJSON func() ([]byte, error) } +func (W _encoding_json_Marshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_json_Marshaler) MarshalJSON() ([]byte, error) { return W.WMarshalJSON() } // _encoding_json_Token is an interface wrapper for Token type type _encoding_json_Token struct { + Val interface{} } +func (W _encoding_json_Token) String() string { return fmt.Sprint(W.Val) } + // _encoding_json_Unmarshaler is an interface wrapper for Unmarshaler type type _encoding_json_Unmarshaler struct { + Val interface{} WUnmarshalJSON func(a0 []byte) error } +func (W _encoding_json_Unmarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_json_Unmarshaler) UnmarshalJSON(a0 []byte) error { return W.WUnmarshalJSON(a0) } diff --git a/stdlib/go1_13_encoding_xml.go b/stdlib/go1_13_encoding_xml.go index 0415dd9c..ecc5fa54 100644 --- a/stdlib/go1_13_encoding_xml.go +++ b/stdlib/go1_13_encoding_xml.go @@ -6,6 +6,7 @@ package stdlib import ( "encoding/xml" + "fmt" "reflect" ) @@ -59,47 +60,65 @@ func init() { // _encoding_xml_Marshaler is an interface wrapper for Marshaler type type _encoding_xml_Marshaler struct { + Val interface{} WMarshalXML func(e *xml.Encoder, start xml.StartElement) error } +func (W _encoding_xml_Marshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_Marshaler) MarshalXML(e *xml.Encoder, start xml.StartElement) error { return W.WMarshalXML(e, start) } // _encoding_xml_MarshalerAttr is an interface wrapper for MarshalerAttr type type _encoding_xml_MarshalerAttr struct { + Val interface{} WMarshalXMLAttr func(name xml.Name) (xml.Attr, error) } +func (W _encoding_xml_MarshalerAttr) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_MarshalerAttr) MarshalXMLAttr(name xml.Name) (xml.Attr, error) { return W.WMarshalXMLAttr(name) } // _encoding_xml_Token is an interface wrapper for Token type type _encoding_xml_Token struct { + Val interface{} } +func (W _encoding_xml_Token) String() string { return fmt.Sprint(W.Val) } + // _encoding_xml_TokenReader is an interface wrapper for TokenReader type type _encoding_xml_TokenReader struct { + Val interface{} WToken func() (xml.Token, error) } +func (W _encoding_xml_TokenReader) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_TokenReader) Token() (xml.Token, error) { return W.WToken() } // _encoding_xml_Unmarshaler is an interface wrapper for Unmarshaler type type _encoding_xml_Unmarshaler struct { + Val interface{} WUnmarshalXML func(d *xml.Decoder, start xml.StartElement) error } +func (W _encoding_xml_Unmarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_Unmarshaler) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { return W.WUnmarshalXML(d, start) } // _encoding_xml_UnmarshalerAttr is an interface wrapper for UnmarshalerAttr type type _encoding_xml_UnmarshalerAttr struct { + Val interface{} WUnmarshalXMLAttr func(attr xml.Attr) error } +func (W _encoding_xml_UnmarshalerAttr) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_UnmarshalerAttr) UnmarshalXMLAttr(attr xml.Attr) error { return W.WUnmarshalXMLAttr(attr) } diff --git a/stdlib/go1_13_expvar.go b/stdlib/go1_13_expvar.go index 584174d4..80411dc8 100644 --- a/stdlib/go1_13_expvar.go +++ b/stdlib/go1_13_expvar.go @@ -37,6 +37,7 @@ func init() { // _expvar_Var is an interface wrapper for Var type type _expvar_Var struct { + Val interface{} WString func() string } diff --git a/stdlib/go1_13_flag.go b/stdlib/go1_13_flag.go index 45f5abe2..1cbe7346 100644 --- a/stdlib/go1_13_flag.go +++ b/stdlib/go1_13_flag.go @@ -64,6 +64,7 @@ func init() { // _flag_Getter is an interface wrapper for Getter type type _flag_Getter struct { + Val interface{} WGet func() interface{} WSet func(a0 string) error WString func() string @@ -75,6 +76,7 @@ func (W _flag_Getter) String() string { return W.WString() } // _flag_Value is an interface wrapper for Value type type _flag_Value struct { + Val interface{} WSet func(a0 string) error WString func() string } diff --git a/stdlib/go1_13_fmt.go b/stdlib/go1_13_fmt.go index b9b365dc..f9590670 100644 --- a/stdlib/go1_13_fmt.go +++ b/stdlib/go1_13_fmt.go @@ -52,20 +52,27 @@ func init() { // _fmt_Formatter is an interface wrapper for Formatter type type _fmt_Formatter struct { + Val interface{} WFormat func(f fmt.State, c rune) } +func (W _fmt_Formatter) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_Formatter) Format(f fmt.State, c rune) { W.WFormat(f, c) } // _fmt_GoStringer is an interface wrapper for GoStringer type type _fmt_GoStringer struct { + Val interface{} WGoString func() string } +func (W _fmt_GoStringer) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_GoStringer) GoString() string { return W.WGoString() } // _fmt_ScanState is an interface wrapper for ScanState type type _fmt_ScanState struct { + Val interface{} WRead func(buf []byte) (n int, err error) WReadRune func() (r rune, size int, err error) WSkipSpace func() @@ -74,6 +81,8 @@ type _fmt_ScanState struct { WWidth func() (wid int, ok bool) } +func (W _fmt_ScanState) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_ScanState) Read(buf []byte) (n int, err error) { return W.WRead(buf) } func (W _fmt_ScanState) ReadRune() (r rune, size int, err error) { return W.WReadRune() } func (W _fmt_ScanState) SkipSpace() { W.WSkipSpace() } @@ -85,19 +94,25 @@ func (W _fmt_ScanState) Width() (wid int, ok bool) { return W.WWidth() } // _fmt_Scanner is an interface wrapper for Scanner type type _fmt_Scanner struct { + Val interface{} WScan func(state fmt.ScanState, verb rune) error } +func (W _fmt_Scanner) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_Scanner) Scan(state fmt.ScanState, verb rune) error { return W.WScan(state, verb) } // _fmt_State is an interface wrapper for State type type _fmt_State struct { + Val interface{} WFlag func(c int) bool WPrecision func() (prec int, ok bool) WWidth func() (wid int, ok bool) WWrite func(b []byte) (n int, err error) } +func (W _fmt_State) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_State) Flag(c int) bool { return W.WFlag(c) } func (W _fmt_State) Precision() (prec int, ok bool) { return W.WPrecision() } func (W _fmt_State) Width() (wid int, ok bool) { return W.WWidth() } @@ -105,6 +120,7 @@ func (W _fmt_State) Write(b []byte) (n int, err error) { return W.WWrite(b) } // _fmt_Stringer is an interface wrapper for Stringer type type _fmt_Stringer struct { + Val interface{} WString func() string } diff --git a/stdlib/go1_13_go_ast.go b/stdlib/go1_13_go_ast.go index c6b07641..6a215123 100644 --- a/stdlib/go1_13_go_ast.go +++ b/stdlib/go1_13_go_ast.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/ast" "go/token" "reflect" @@ -128,52 +129,70 @@ func init() { // _go_ast_Decl is an interface wrapper for Decl type type _go_ast_Decl struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Decl) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Decl) End() token.Pos { return W.WEnd() } func (W _go_ast_Decl) Pos() token.Pos { return W.WPos() } // _go_ast_Expr is an interface wrapper for Expr type type _go_ast_Expr struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Expr) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Expr) End() token.Pos { return W.WEnd() } func (W _go_ast_Expr) Pos() token.Pos { return W.WPos() } // _go_ast_Node is an interface wrapper for Node type type _go_ast_Node struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Node) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Node) End() token.Pos { return W.WEnd() } func (W _go_ast_Node) Pos() token.Pos { return W.WPos() } // _go_ast_Spec is an interface wrapper for Spec type type _go_ast_Spec struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Spec) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Spec) End() token.Pos { return W.WEnd() } func (W _go_ast_Spec) Pos() token.Pos { return W.WPos() } // _go_ast_Stmt is an interface wrapper for Stmt type type _go_ast_Stmt struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Stmt) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Stmt) End() token.Pos { return W.WEnd() } func (W _go_ast_Stmt) Pos() token.Pos { return W.WPos() } // _go_ast_Visitor is an interface wrapper for Visitor type type _go_ast_Visitor struct { + Val interface{} WVisit func(node ast.Node) (w ast.Visitor) } +func (W _go_ast_Visitor) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Visitor) Visit(node ast.Node) (w ast.Visitor) { return W.WVisit(node) } diff --git a/stdlib/go1_13_go_constant.go b/stdlib/go1_13_go_constant.go index 7d21fda0..27dc44ff 100644 --- a/stdlib/go1_13_go_constant.go +++ b/stdlib/go1_13_go_constant.go @@ -61,6 +61,7 @@ func init() { // _go_constant_Value is an interface wrapper for Value type type _go_constant_Value struct { + Val interface{} WExactString func() string WKind func() constant.Kind WString func() string diff --git a/stdlib/go1_13_go_types.go b/stdlib/go1_13_go_types.go index e74550c3..64e89e5f 100644 --- a/stdlib/go1_13_go_types.go +++ b/stdlib/go1_13_go_types.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/token" "go/types" "reflect" @@ -162,17 +163,23 @@ func init() { // _go_types_Importer is an interface wrapper for Importer type type _go_types_Importer struct { + Val interface{} WImport func(path string) (*types.Package, error) } +func (W _go_types_Importer) String() string { return fmt.Sprint(W.Val) } + func (W _go_types_Importer) Import(path string) (*types.Package, error) { return W.WImport(path) } // _go_types_ImporterFrom is an interface wrapper for ImporterFrom type type _go_types_ImporterFrom struct { + Val interface{} WImport func(path string) (*types.Package, error) WImportFrom func(path string, dir string, mode types.ImportMode) (*types.Package, error) } +func (W _go_types_ImporterFrom) String() string { return fmt.Sprint(W.Val) } + func (W _go_types_ImporterFrom) Import(path string) (*types.Package, error) { return W.WImport(path) } func (W _go_types_ImporterFrom) ImportFrom(path string, dir string, mode types.ImportMode) (*types.Package, error) { return W.WImportFrom(path, dir, mode) @@ -180,6 +187,7 @@ func (W _go_types_ImporterFrom) ImportFrom(path string, dir string, mode types.I // _go_types_Object is an interface wrapper for Object type type _go_types_Object struct { + Val interface{} WExported func() bool WId func() string WName func() string @@ -201,17 +209,21 @@ func (W _go_types_Object) Type() types.Type { return W.WType() } // _go_types_Sizes is an interface wrapper for Sizes type type _go_types_Sizes struct { + Val interface{} WAlignof func(T types.Type) int64 WOffsetsof func(fields []*types.Var) []int64 WSizeof func(T types.Type) int64 } +func (W _go_types_Sizes) String() string { return fmt.Sprint(W.Val) } + func (W _go_types_Sizes) Alignof(T types.Type) int64 { return W.WAlignof(T) } func (W _go_types_Sizes) Offsetsof(fields []*types.Var) []int64 { return W.WOffsetsof(fields) } func (W _go_types_Sizes) Sizeof(T types.Type) int64 { return W.WSizeof(T) } // _go_types_Type is an interface wrapper for Type type type _go_types_Type struct { + Val interface{} WString func() string WUnderlying func() types.Type } diff --git a/stdlib/go1_13_hash.go b/stdlib/go1_13_hash.go index e3b1b48e..b0880e72 100644 --- a/stdlib/go1_13_hash.go +++ b/stdlib/go1_13_hash.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "hash" "reflect" ) @@ -25,6 +26,7 @@ func init() { // _hash_Hash is an interface wrapper for Hash type type _hash_Hash struct { + Val interface{} WBlockSize func() int WReset func() WSize func() int @@ -32,6 +34,8 @@ type _hash_Hash struct { WWrite func(p []byte) (n int, err error) } +func (W _hash_Hash) String() string { return fmt.Sprint(W.Val) } + func (W _hash_Hash) BlockSize() int { return W.WBlockSize() } func (W _hash_Hash) Reset() { W.WReset() } func (W _hash_Hash) Size() int { return W.WSize() } @@ -40,6 +44,7 @@ func (W _hash_Hash) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _hash_Hash32 is an interface wrapper for Hash32 type type _hash_Hash32 struct { + Val interface{} WBlockSize func() int WReset func() WSize func() int @@ -48,6 +53,8 @@ type _hash_Hash32 struct { WWrite func(p []byte) (n int, err error) } +func (W _hash_Hash32) String() string { return fmt.Sprint(W.Val) } + func (W _hash_Hash32) BlockSize() int { return W.WBlockSize() } func (W _hash_Hash32) Reset() { W.WReset() } func (W _hash_Hash32) Size() int { return W.WSize() } @@ -57,6 +64,7 @@ func (W _hash_Hash32) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _hash_Hash64 is an interface wrapper for Hash64 type type _hash_Hash64 struct { + Val interface{} WBlockSize func() int WReset func() WSize func() int @@ -65,6 +73,8 @@ type _hash_Hash64 struct { WWrite func(p []byte) (n int, err error) } +func (W _hash_Hash64) String() string { return fmt.Sprint(W.Val) } + func (W _hash_Hash64) BlockSize() int { return W.WBlockSize() } func (W _hash_Hash64) Reset() { W.WReset() } func (W _hash_Hash64) Size() int { return W.WSize() } diff --git a/stdlib/go1_13_image.go b/stdlib/go1_13_image.go index f81bc345..be0b548b 100644 --- a/stdlib/go1_13_image.go +++ b/stdlib/go1_13_image.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "image" "image/color" "reflect" @@ -74,23 +75,29 @@ func init() { // _image_Image is an interface wrapper for Image type type _image_Image struct { + Val interface{} WAt func(x int, y int) color.Color WBounds func() image.Rectangle WColorModel func() color.Model } +func (W _image_Image) String() string { return fmt.Sprint(W.Val) } + func (W _image_Image) At(x int, y int) color.Color { return W.WAt(x, y) } func (W _image_Image) Bounds() image.Rectangle { return W.WBounds() } func (W _image_Image) ColorModel() color.Model { return W.WColorModel() } // _image_PalettedImage is an interface wrapper for PalettedImage type type _image_PalettedImage struct { + Val interface{} WAt func(x int, y int) color.Color WBounds func() image.Rectangle WColorIndexAt func(x int, y int) uint8 WColorModel func() color.Model } +func (W _image_PalettedImage) String() string { return fmt.Sprint(W.Val) } + func (W _image_PalettedImage) At(x int, y int) color.Color { return W.WAt(x, y) } func (W _image_PalettedImage) Bounds() image.Rectangle { return W.WBounds() } func (W _image_PalettedImage) ColorIndexAt(x int, y int) uint8 { return W.WColorIndexAt(x, y) } diff --git a/stdlib/go1_13_image_color.go b/stdlib/go1_13_image_color.go index e1b3d8b2..122e49a4 100644 --- a/stdlib/go1_13_image_color.go +++ b/stdlib/go1_13_image_color.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "image/color" "reflect" ) @@ -57,14 +58,20 @@ func init() { // _image_color_Color is an interface wrapper for Color type type _image_color_Color struct { + Val interface{} WRGBA func() (r uint32, g uint32, b uint32, a uint32) } +func (W _image_color_Color) String() string { return fmt.Sprint(W.Val) } + func (W _image_color_Color) RGBA() (r uint32, g uint32, b uint32, a uint32) { return W.WRGBA() } // _image_color_Model is an interface wrapper for Model type type _image_color_Model struct { + Val interface{} WConvert func(c color.Color) color.Color } +func (W _image_color_Model) String() string { return fmt.Sprint(W.Val) } + func (W _image_color_Model) Convert(c color.Color) color.Color { return W.WConvert(c) } diff --git a/stdlib/go1_13_image_draw.go b/stdlib/go1_13_image_draw.go index dca93c89..15df93de 100644 --- a/stdlib/go1_13_image_draw.go +++ b/stdlib/go1_13_image_draw.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "image" "image/color" "image/draw" @@ -35,21 +36,27 @@ func init() { // _image_draw_Drawer is an interface wrapper for Drawer type type _image_draw_Drawer struct { + Val interface{} WDraw func(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) } +func (W _image_draw_Drawer) String() string { return fmt.Sprint(W.Val) } + func (W _image_draw_Drawer) Draw(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) { W.WDraw(dst, r, src, sp) } // _image_draw_Image is an interface wrapper for Image type type _image_draw_Image struct { + Val interface{} WAt func(x int, y int) color.Color WBounds func() image.Rectangle WColorModel func() color.Model WSet func(x int, y int, c color.Color) } +func (W _image_draw_Image) String() string { return fmt.Sprint(W.Val) } + func (W _image_draw_Image) At(x int, y int) color.Color { return W.WAt(x, y) } func (W _image_draw_Image) Bounds() image.Rectangle { return W.WBounds() } func (W _image_draw_Image) ColorModel() color.Model { return W.WColorModel() } @@ -57,9 +64,12 @@ func (W _image_draw_Image) Set(x int, y int, c color.Color) { W.WSet(x, y, c) } // _image_draw_Quantizer is an interface wrapper for Quantizer type type _image_draw_Quantizer struct { + Val interface{} WQuantize func(p color.Palette, m image.Image) color.Palette } +func (W _image_draw_Quantizer) String() string { return fmt.Sprint(W.Val) } + func (W _image_draw_Quantizer) Quantize(p color.Palette, m image.Image) color.Palette { return W.WQuantize(p, m) } diff --git a/stdlib/go1_13_image_jpeg.go b/stdlib/go1_13_image_jpeg.go index 9eb1e554..0ab3672b 100644 --- a/stdlib/go1_13_image_jpeg.go +++ b/stdlib/go1_13_image_jpeg.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/constant" "go/token" "image/jpeg" @@ -32,9 +33,12 @@ func init() { // _image_jpeg_Reader is an interface wrapper for Reader type type _image_jpeg_Reader struct { + Val interface{} WRead func(p []byte) (n int, err error) WReadByte func() (byte, error) } +func (W _image_jpeg_Reader) String() string { return fmt.Sprint(W.Val) } + func (W _image_jpeg_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _image_jpeg_Reader) ReadByte() (byte, error) { return W.WReadByte() } diff --git a/stdlib/go1_13_image_png.go b/stdlib/go1_13_image_png.go index e7d6ecee..a509bdde 100644 --- a/stdlib/go1_13_image_png.go +++ b/stdlib/go1_13_image_png.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "image/png" "reflect" ) @@ -35,9 +36,12 @@ func init() { // _image_png_EncoderBufferPool is an interface wrapper for EncoderBufferPool type type _image_png_EncoderBufferPool struct { + Val interface{} WGet func() *png.EncoderBuffer WPut func(a0 *png.EncoderBuffer) } +func (W _image_png_EncoderBufferPool) String() string { return fmt.Sprint(W.Val) } + func (W _image_png_EncoderBufferPool) Get() *png.EncoderBuffer { return W.WGet() } func (W _image_png_EncoderBufferPool) Put(a0 *png.EncoderBuffer) { W.WPut(a0) } diff --git a/stdlib/go1_13_io.go b/stdlib/go1_13_io.go index 9901d87a..032f120f 100644 --- a/stdlib/go1_13_io.go +++ b/stdlib/go1_13_io.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/constant" "go/token" "io" @@ -90,49 +91,67 @@ func init() { // _io_ByteReader is an interface wrapper for ByteReader type type _io_ByteReader struct { + Val interface{} WReadByte func() (byte, error) } +func (W _io_ByteReader) String() string { return fmt.Sprint(W.Val) } + func (W _io_ByteReader) ReadByte() (byte, error) { return W.WReadByte() } // _io_ByteScanner is an interface wrapper for ByteScanner type type _io_ByteScanner struct { + Val interface{} WReadByte func() (byte, error) WUnreadByte func() error } +func (W _io_ByteScanner) String() string { return fmt.Sprint(W.Val) } + func (W _io_ByteScanner) ReadByte() (byte, error) { return W.WReadByte() } func (W _io_ByteScanner) UnreadByte() error { return W.WUnreadByte() } // _io_ByteWriter is an interface wrapper for ByteWriter type type _io_ByteWriter struct { + Val interface{} WWriteByte func(c byte) error } +func (W _io_ByteWriter) String() string { return fmt.Sprint(W.Val) } + func (W _io_ByteWriter) WriteByte(c byte) error { return W.WWriteByte(c) } // _io_Closer is an interface wrapper for Closer type type _io_Closer struct { + Val interface{} WClose func() error } +func (W _io_Closer) String() string { return fmt.Sprint(W.Val) } + func (W _io_Closer) Close() error { return W.WClose() } // _io_ReadCloser is an interface wrapper for ReadCloser type type _io_ReadCloser struct { + Val interface{} WClose func() error WRead func(p []byte) (n int, err error) } +func (W _io_ReadCloser) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadCloser) Close() error { return W.WClose() } func (W _io_ReadCloser) Read(p []byte) (n int, err error) { return W.WRead(p) } // _io_ReadSeeker is an interface wrapper for ReadSeeker type type _io_ReadSeeker struct { + Val interface{} WRead func(p []byte) (n int, err error) WSeek func(offset int64, whence int) (int64, error) } +func (W _io_ReadSeeker) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadSeeker) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _io_ReadSeeker) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) @@ -140,22 +159,28 @@ func (W _io_ReadSeeker) Seek(offset int64, whence int) (int64, error) { // _io_ReadWriteCloser is an interface wrapper for ReadWriteCloser type type _io_ReadWriteCloser struct { + Val interface{} WClose func() error WRead func(p []byte) (n int, err error) WWrite func(p []byte) (n int, err error) } +func (W _io_ReadWriteCloser) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadWriteCloser) Close() error { return W.WClose() } func (W _io_ReadWriteCloser) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _io_ReadWriteCloser) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _io_ReadWriteSeeker is an interface wrapper for ReadWriteSeeker type type _io_ReadWriteSeeker struct { + Val interface{} WRead func(p []byte) (n int, err error) WSeek func(offset int64, whence int) (int64, error) WWrite func(p []byte) (n int, err error) } +func (W _io_ReadWriteSeeker) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadWriteSeeker) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _io_ReadWriteSeeker) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) @@ -164,79 +189,109 @@ func (W _io_ReadWriteSeeker) Write(p []byte) (n int, err error) { return W.WWrit // _io_ReadWriter is an interface wrapper for ReadWriter type type _io_ReadWriter struct { + Val interface{} WRead func(p []byte) (n int, err error) WWrite func(p []byte) (n int, err error) } +func (W _io_ReadWriter) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadWriter) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _io_ReadWriter) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _io_Reader is an interface wrapper for Reader type type _io_Reader struct { + Val interface{} WRead func(p []byte) (n int, err error) } +func (W _io_Reader) String() string { return fmt.Sprint(W.Val) } + func (W _io_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) } // _io_ReaderAt is an interface wrapper for ReaderAt type type _io_ReaderAt struct { + Val interface{} WReadAt func(p []byte, off int64) (n int, err error) } +func (W _io_ReaderAt) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReaderAt) ReadAt(p []byte, off int64) (n int, err error) { return W.WReadAt(p, off) } // _io_ReaderFrom is an interface wrapper for ReaderFrom type type _io_ReaderFrom struct { + Val interface{} WReadFrom func(r io.Reader) (n int64, err error) } +func (W _io_ReaderFrom) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReaderFrom) ReadFrom(r io.Reader) (n int64, err error) { return W.WReadFrom(r) } // _io_RuneReader is an interface wrapper for RuneReader type type _io_RuneReader struct { + Val interface{} WReadRune func() (r rune, size int, err error) } +func (W _io_RuneReader) String() string { return fmt.Sprint(W.Val) } + func (W _io_RuneReader) ReadRune() (r rune, size int, err error) { return W.WReadRune() } // _io_RuneScanner is an interface wrapper for RuneScanner type type _io_RuneScanner struct { + Val interface{} WReadRune func() (r rune, size int, err error) WUnreadRune func() error } +func (W _io_RuneScanner) String() string { return fmt.Sprint(W.Val) } + func (W _io_RuneScanner) ReadRune() (r rune, size int, err error) { return W.WReadRune() } func (W _io_RuneScanner) UnreadRune() error { return W.WUnreadRune() } // _io_Seeker is an interface wrapper for Seeker type type _io_Seeker struct { + Val interface{} WSeek func(offset int64, whence int) (int64, error) } +func (W _io_Seeker) String() string { return fmt.Sprint(W.Val) } + func (W _io_Seeker) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) } // _io_StringWriter is an interface wrapper for StringWriter type type _io_StringWriter struct { + Val interface{} WWriteString func(s string) (n int, err error) } +func (W _io_StringWriter) String() string { return fmt.Sprint(W.Val) } + func (W _io_StringWriter) WriteString(s string) (n int, err error) { return W.WWriteString(s) } // _io_WriteCloser is an interface wrapper for WriteCloser type type _io_WriteCloser struct { + Val interface{} WClose func() error WWrite func(p []byte) (n int, err error) } +func (W _io_WriteCloser) String() string { return fmt.Sprint(W.Val) } + func (W _io_WriteCloser) Close() error { return W.WClose() } func (W _io_WriteCloser) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _io_WriteSeeker is an interface wrapper for WriteSeeker type type _io_WriteSeeker struct { + Val interface{} WSeek func(offset int64, whence int) (int64, error) WWrite func(p []byte) (n int, err error) } +func (W _io_WriteSeeker) String() string { return fmt.Sprint(W.Val) } + func (W _io_WriteSeeker) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) } @@ -244,21 +299,30 @@ func (W _io_WriteSeeker) Write(p []byte) (n int, err error) { return W.WWrite(p) // _io_Writer is an interface wrapper for Writer type type _io_Writer struct { + Val interface{} WWrite func(p []byte) (n int, err error) } +func (W _io_Writer) String() string { return fmt.Sprint(W.Val) } + func (W _io_Writer) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _io_WriterAt is an interface wrapper for WriterAt type type _io_WriterAt struct { + Val interface{} WWriteAt func(p []byte, off int64) (n int, err error) } +func (W _io_WriterAt) String() string { return fmt.Sprint(W.Val) } + func (W _io_WriterAt) WriteAt(p []byte, off int64) (n int, err error) { return W.WWriteAt(p, off) } // _io_WriterTo is an interface wrapper for WriterTo type type _io_WriterTo struct { + Val interface{} WWriteTo func(w io.Writer) (n int64, err error) } +func (W _io_WriterTo) String() string { return fmt.Sprint(W.Val) } + func (W _io_WriterTo) WriteTo(w io.Writer) (n int64, err error) { return W.WWriteTo(w) } diff --git a/stdlib/go1_13_math_rand.go b/stdlib/go1_13_math_rand.go index 182f6006..fc17003c 100644 --- a/stdlib/go1_13_math_rand.go +++ b/stdlib/go1_13_math_rand.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "math/rand" "reflect" ) @@ -46,20 +47,26 @@ func init() { // _math_rand_Source is an interface wrapper for Source type type _math_rand_Source struct { + Val interface{} WInt63 func() int64 WSeed func(seed int64) } +func (W _math_rand_Source) String() string { return fmt.Sprint(W.Val) } + func (W _math_rand_Source) Int63() int64 { return W.WInt63() } func (W _math_rand_Source) Seed(seed int64) { W.WSeed(seed) } // _math_rand_Source64 is an interface wrapper for Source64 type type _math_rand_Source64 struct { + Val interface{} WInt63 func() int64 WSeed func(seed int64) WUint64 func() uint64 } +func (W _math_rand_Source64) String() string { return fmt.Sprint(W.Val) } + func (W _math_rand_Source64) Int63() int64 { return W.WInt63() } func (W _math_rand_Source64) Seed(seed int64) { W.WSeed(seed) } func (W _math_rand_Source64) Uint64() uint64 { return W.WUint64() } diff --git a/stdlib/go1_13_mime_multipart.go b/stdlib/go1_13_mime_multipart.go index acf2de06..efb242a3 100644 --- a/stdlib/go1_13_mime_multipart.go +++ b/stdlib/go1_13_mime_multipart.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "mime/multipart" "reflect" ) @@ -31,12 +32,15 @@ func init() { // _mime_multipart_File is an interface wrapper for File type type _mime_multipart_File struct { + Val interface{} WClose func() error WRead func(p []byte) (n int, err error) WReadAt func(p []byte, off int64) (n int, err error) WSeek func(offset int64, whence int) (int64, error) } +func (W _mime_multipart_File) String() string { return fmt.Sprint(W.Val) } + func (W _mime_multipart_File) Close() error { return W.WClose() } func (W _mime_multipart_File) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _mime_multipart_File) ReadAt(p []byte, off int64) (n int, err error) { return W.WReadAt(p, off) } diff --git a/stdlib/go1_13_net.go b/stdlib/go1_13_net.go index 39b8663d..ad672bd4 100644 --- a/stdlib/go1_13_net.go +++ b/stdlib/go1_13_net.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/constant" "go/token" "net" @@ -126,6 +127,7 @@ func init() { // _net_Addr is an interface wrapper for Addr type type _net_Addr struct { + Val interface{} WNetwork func() string WString func() string } @@ -135,6 +137,7 @@ func (W _net_Addr) String() string { return W.WString() } // _net_Conn is an interface wrapper for Conn type type _net_Conn struct { + Val interface{} WClose func() error WLocalAddr func() net.Addr WRead func(b []byte) (n int, err error) @@ -145,6 +148,8 @@ type _net_Conn struct { WWrite func(b []byte) (n int, err error) } +func (W _net_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _net_Conn) Close() error { return W.WClose() } func (W _net_Conn) LocalAddr() net.Addr { return W.WLocalAddr() } func (W _net_Conn) Read(b []byte) (n int, err error) { return W.WRead(b) } @@ -156,28 +161,35 @@ func (W _net_Conn) Write(b []byte) (n int, err error) { return W.WWrite(b) } // _net_Error is an interface wrapper for Error type type _net_Error struct { + Val interface{} WError func() string WTemporary func() bool WTimeout func() bool } +func (W _net_Error) String() string { return fmt.Sprint(W.Val) } + func (W _net_Error) Error() string { return W.WError() } func (W _net_Error) Temporary() bool { return W.WTemporary() } func (W _net_Error) Timeout() bool { return W.WTimeout() } // _net_Listener is an interface wrapper for Listener type type _net_Listener struct { + Val interface{} WAccept func() (net.Conn, error) WAddr func() net.Addr WClose func() error } +func (W _net_Listener) String() string { return fmt.Sprint(W.Val) } + func (W _net_Listener) Accept() (net.Conn, error) { return W.WAccept() } func (W _net_Listener) Addr() net.Addr { return W.WAddr() } func (W _net_Listener) Close() error { return W.WClose() } // _net_PacketConn is an interface wrapper for PacketConn type type _net_PacketConn struct { + Val interface{} WClose func() error WLocalAddr func() net.Addr WReadFrom func(p []byte) (n int, addr net.Addr, err error) @@ -187,6 +199,8 @@ type _net_PacketConn struct { WWriteTo func(p []byte, addr net.Addr) (n int, err error) } +func (W _net_PacketConn) String() string { return fmt.Sprint(W.Val) } + func (W _net_PacketConn) Close() error { return W.WClose() } func (W _net_PacketConn) LocalAddr() net.Addr { return W.WLocalAddr() } func (W _net_PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) { return W.WReadFrom(p) } diff --git a/stdlib/go1_13_net_http.go b/stdlib/go1_13_net_http.go index 279e2b4b..4c446bed 100644 --- a/stdlib/go1_13_net_http.go +++ b/stdlib/go1_13_net_http.go @@ -6,6 +6,7 @@ package stdlib import ( "bufio" + "fmt" "go/constant" "go/token" "net" @@ -207,22 +208,29 @@ func init() { // _net_http_CloseNotifier is an interface wrapper for CloseNotifier type type _net_http_CloseNotifier struct { + Val interface{} WCloseNotify func() <-chan bool } +func (W _net_http_CloseNotifier) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_CloseNotifier) CloseNotify() <-chan bool { return W.WCloseNotify() } // _net_http_CookieJar is an interface wrapper for CookieJar type type _net_http_CookieJar struct { + Val interface{} WCookies func(u *url.URL) []*http.Cookie WSetCookies func(u *url.URL, cookies []*http.Cookie) } +func (W _net_http_CookieJar) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_CookieJar) Cookies(u *url.URL) []*http.Cookie { return W.WCookies(u) } func (W _net_http_CookieJar) SetCookies(u *url.URL, cookies []*http.Cookie) { W.WSetCookies(u, cookies) } // _net_http_File is an interface wrapper for File type type _net_http_File struct { + Val interface{} WClose func() error WRead func(p []byte) (n int, err error) WReaddir func(count int) ([]os.FileInfo, error) @@ -230,6 +238,8 @@ type _net_http_File struct { WStat func() (os.FileInfo, error) } +func (W _net_http_File) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_File) Close() error { return W.WClose() } func (W _net_http_File) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _net_http_File) Readdir(count int) ([]os.FileInfo, error) { return W.WReaddir(count) } @@ -240,57 +250,78 @@ func (W _net_http_File) Stat() (os.FileInfo, error) { return W.WStat() } // _net_http_FileSystem is an interface wrapper for FileSystem type type _net_http_FileSystem struct { + Val interface{} WOpen func(name string) (http.File, error) } +func (W _net_http_FileSystem) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_FileSystem) Open(name string) (http.File, error) { return W.WOpen(name) } // _net_http_Flusher is an interface wrapper for Flusher type type _net_http_Flusher struct { + Val interface{} WFlush func() } +func (W _net_http_Flusher) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_Flusher) Flush() { W.WFlush() } // _net_http_Handler is an interface wrapper for Handler type type _net_http_Handler struct { + Val interface{} WServeHTTP func(a0 http.ResponseWriter, a1 *http.Request) } +func (W _net_http_Handler) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_Handler) ServeHTTP(a0 http.ResponseWriter, a1 *http.Request) { W.WServeHTTP(a0, a1) } // _net_http_Hijacker is an interface wrapper for Hijacker type type _net_http_Hijacker struct { + Val interface{} WHijack func() (net.Conn, *bufio.ReadWriter, error) } +func (W _net_http_Hijacker) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_Hijacker) Hijack() (net.Conn, *bufio.ReadWriter, error) { return W.WHijack() } // _net_http_Pusher is an interface wrapper for Pusher type type _net_http_Pusher struct { + Val interface{} WPush func(target string, opts *http.PushOptions) error } +func (W _net_http_Pusher) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_Pusher) Push(target string, opts *http.PushOptions) error { return W.WPush(target, opts) } // _net_http_ResponseWriter is an interface wrapper for ResponseWriter type type _net_http_ResponseWriter struct { + Val interface{} WHeader func() http.Header WWrite func(a0 []byte) (int, error) WWriteHeader func(statusCode int) } +func (W _net_http_ResponseWriter) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_ResponseWriter) Header() http.Header { return W.WHeader() } func (W _net_http_ResponseWriter) Write(a0 []byte) (int, error) { return W.WWrite(a0) } func (W _net_http_ResponseWriter) WriteHeader(statusCode int) { W.WWriteHeader(statusCode) } // _net_http_RoundTripper is an interface wrapper for RoundTripper type type _net_http_RoundTripper struct { + Val interface{} WRoundTrip func(a0 *http.Request) (*http.Response, error) } +func (W _net_http_RoundTripper) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_RoundTripper) RoundTrip(a0 *http.Request) (*http.Response, error) { return W.WRoundTrip(a0) } diff --git a/stdlib/go1_13_net_http_cookiejar.go b/stdlib/go1_13_net_http_cookiejar.go index 4042cd87..acf17e9c 100644 --- a/stdlib/go1_13_net_http_cookiejar.go +++ b/stdlib/go1_13_net_http_cookiejar.go @@ -26,6 +26,7 @@ func init() { // _net_http_cookiejar_PublicSuffixList is an interface wrapper for PublicSuffixList type type _net_http_cookiejar_PublicSuffixList struct { + Val interface{} WPublicSuffix func(domain string) string WString func() string } diff --git a/stdlib/go1_13_net_http_httputil.go b/stdlib/go1_13_net_http_httputil.go index 749283ae..2f6d6b7f 100644 --- a/stdlib/go1_13_net_http_httputil.go +++ b/stdlib/go1_13_net_http_httputil.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "net/http/httputil" "reflect" ) @@ -39,9 +40,12 @@ func init() { // _net_http_httputil_BufferPool is an interface wrapper for BufferPool type type _net_http_httputil_BufferPool struct { + Val interface{} WGet func() []byte WPut func(a0 []byte) } +func (W _net_http_httputil_BufferPool) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_httputil_BufferPool) Get() []byte { return W.WGet() } func (W _net_http_httputil_BufferPool) Put(a0 []byte) { W.WPut(a0) } diff --git a/stdlib/go1_13_net_rpc.go b/stdlib/go1_13_net_rpc.go index 29467d32..d74bf47c 100644 --- a/stdlib/go1_13_net_rpc.go +++ b/stdlib/go1_13_net_rpc.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "net/rpc" "reflect" ) @@ -48,12 +49,15 @@ func init() { // _net_rpc_ClientCodec is an interface wrapper for ClientCodec type type _net_rpc_ClientCodec struct { + Val interface{} WClose func() error WReadResponseBody func(a0 interface{}) error WReadResponseHeader func(a0 *rpc.Response) error WWriteRequest func(a0 *rpc.Request, a1 interface{}) error } +func (W _net_rpc_ClientCodec) String() string { return fmt.Sprint(W.Val) } + func (W _net_rpc_ClientCodec) Close() error { return W.WClose() } func (W _net_rpc_ClientCodec) ReadResponseBody(a0 interface{}) error { return W.WReadResponseBody(a0) } func (W _net_rpc_ClientCodec) ReadResponseHeader(a0 *rpc.Response) error { @@ -65,12 +69,15 @@ func (W _net_rpc_ClientCodec) WriteRequest(a0 *rpc.Request, a1 interface{}) erro // _net_rpc_ServerCodec is an interface wrapper for ServerCodec type type _net_rpc_ServerCodec struct { + Val interface{} WClose func() error WReadRequestBody func(a0 interface{}) error WReadRequestHeader func(a0 *rpc.Request) error WWriteResponse func(a0 *rpc.Response, a1 interface{}) error } +func (W _net_rpc_ServerCodec) String() string { return fmt.Sprint(W.Val) } + func (W _net_rpc_ServerCodec) Close() error { return W.WClose() } func (W _net_rpc_ServerCodec) ReadRequestBody(a0 interface{}) error { return W.WReadRequestBody(a0) } func (W _net_rpc_ServerCodec) ReadRequestHeader(a0 *rpc.Request) error { diff --git a/stdlib/go1_13_net_smtp.go b/stdlib/go1_13_net_smtp.go index 3e6e7a88..1be853c4 100644 --- a/stdlib/go1_13_net_smtp.go +++ b/stdlib/go1_13_net_smtp.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "net/smtp" "reflect" ) @@ -30,10 +31,13 @@ func init() { // _net_smtp_Auth is an interface wrapper for Auth type type _net_smtp_Auth struct { + Val interface{} WNext func(fromServer []byte, more bool) (toServer []byte, err error) WStart func(server *smtp.ServerInfo) (proto string, toServer []byte, err error) } +func (W _net_smtp_Auth) String() string { return fmt.Sprint(W.Val) } + func (W _net_smtp_Auth) Next(fromServer []byte, more bool) (toServer []byte, err error) { return W.WNext(fromServer, more) } diff --git a/stdlib/go1_13_os.go b/stdlib/go1_13_os.go index 79f79fff..5bf9ff79 100644 --- a/stdlib/go1_13_os.go +++ b/stdlib/go1_13_os.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/constant" "go/token" "os" @@ -131,6 +132,7 @@ func init() { // _os_FileInfo is an interface wrapper for FileInfo type type _os_FileInfo struct { + Val interface{} WIsDir func() bool WModTime func() time.Time WMode func() os.FileMode @@ -139,6 +141,8 @@ type _os_FileInfo struct { WSys func() interface{} } +func (W _os_FileInfo) String() string { return fmt.Sprint(W.Val) } + func (W _os_FileInfo) IsDir() bool { return W.WIsDir() } func (W _os_FileInfo) ModTime() time.Time { return W.WModTime() } func (W _os_FileInfo) Mode() os.FileMode { return W.WMode() } @@ -148,6 +152,7 @@ func (W _os_FileInfo) Sys() interface{} { return W.WSys() } // _os_Signal is an interface wrapper for Signal type type _os_Signal struct { + Val interface{} WSignal func() WString func() string } diff --git a/stdlib/go1_13_reflect.go b/stdlib/go1_13_reflect.go index 28d0bd6b..84e95bf9 100644 --- a/stdlib/go1_13_reflect.go +++ b/stdlib/go1_13_reflect.go @@ -91,6 +91,7 @@ func init() { // _reflect_Type is an interface wrapper for Type type type _reflect_Type struct { + Val interface{} WAlign func() int WAssignableTo func(u reflect.Type) bool WBits func() int diff --git a/stdlib/go1_13_runtime.go b/stdlib/go1_13_runtime.go index 56bf8bd9..a077d023 100644 --- a/stdlib/go1_13_runtime.go +++ b/stdlib/go1_13_runtime.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "reflect" "runtime" ) @@ -68,9 +69,12 @@ func init() { // _runtime_Error is an interface wrapper for Error type type _runtime_Error struct { + Val interface{} WError func() string WRuntimeError func() } +func (W _runtime_Error) String() string { return fmt.Sprint(W.Val) } + func (W _runtime_Error) Error() string { return W.WError() } func (W _runtime_Error) RuntimeError() { W.WRuntimeError() } diff --git a/stdlib/go1_13_sort.go b/stdlib/go1_13_sort.go index bb08e07c..a7975cfc 100644 --- a/stdlib/go1_13_sort.go +++ b/stdlib/go1_13_sort.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "reflect" "sort" ) @@ -43,11 +44,14 @@ func init() { // _sort_Interface is an interface wrapper for Interface type type _sort_Interface struct { + Val interface{} WLen func() int WLess func(i int, j int) bool WSwap func(i int, j int) } +func (W _sort_Interface) String() string { return fmt.Sprint(W.Val) } + func (W _sort_Interface) Len() int { return W.WLen() } func (W _sort_Interface) Less(i int, j int) bool { return W.WLess(i, j) } func (W _sort_Interface) Swap(i int, j int) { W.WSwap(i, j) } diff --git a/stdlib/go1_13_sync.go b/stdlib/go1_13_sync.go index 7aacfa27..8b40e711 100644 --- a/stdlib/go1_13_sync.go +++ b/stdlib/go1_13_sync.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "reflect" "sync" ) @@ -31,9 +32,12 @@ func init() { // _sync_Locker is an interface wrapper for Locker type type _sync_Locker struct { + Val interface{} WLock func() WUnlock func() } +func (W _sync_Locker) String() string { return fmt.Sprint(W.Val) } + func (W _sync_Locker) Lock() { W.WLock() } func (W _sync_Locker) Unlock() { W.WUnlock() } diff --git a/stdlib/go1_13_text_template_parse.go b/stdlib/go1_13_text_template_parse.go index db9967a3..ff836763 100644 --- a/stdlib/go1_13_text_template_parse.go +++ b/stdlib/go1_13_text_template_parse.go @@ -67,6 +67,7 @@ func init() { // _text_template_parse_Node is an interface wrapper for Node type type _text_template_parse_Node struct { + Val interface{} WCopy func() parse.Node WPosition func() parse.Pos WString func() string diff --git a/stdlib/go1_14_compress_flate.go b/stdlib/go1_14_compress_flate.go index 5f84b995..b0b54f2b 100644 --- a/stdlib/go1_14_compress_flate.go +++ b/stdlib/go1_14_compress_flate.go @@ -6,6 +6,7 @@ package stdlib import ( "compress/flate" + "fmt" "go/constant" "go/token" "io" @@ -42,16 +43,22 @@ func init() { // _compress_flate_Reader is an interface wrapper for Reader type type _compress_flate_Reader struct { + Val interface{} WRead func(p []byte) (n int, err error) WReadByte func() (byte, error) } +func (W _compress_flate_Reader) String() string { return fmt.Sprint(W.Val) } + func (W _compress_flate_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _compress_flate_Reader) ReadByte() (byte, error) { return W.WReadByte() } // _compress_flate_Resetter is an interface wrapper for Resetter type type _compress_flate_Resetter struct { + Val interface{} WReset func(r io.Reader, dict []byte) error } +func (W _compress_flate_Resetter) String() string { return fmt.Sprint(W.Val) } + func (W _compress_flate_Resetter) Reset(r io.Reader, dict []byte) error { return W.WReset(r, dict) } diff --git a/stdlib/go1_14_compress_zlib.go b/stdlib/go1_14_compress_zlib.go index 02d07235..ccd8ce93 100644 --- a/stdlib/go1_14_compress_zlib.go +++ b/stdlib/go1_14_compress_zlib.go @@ -6,6 +6,7 @@ package stdlib import ( "compress/zlib" + "fmt" "go/constant" "go/token" "io" @@ -40,7 +41,10 @@ func init() { // _compress_zlib_Resetter is an interface wrapper for Resetter type type _compress_zlib_Resetter struct { + Val interface{} WReset func(r io.Reader, dict []byte) error } +func (W _compress_zlib_Resetter) String() string { return fmt.Sprint(W.Val) } + func (W _compress_zlib_Resetter) Reset(r io.Reader, dict []byte) error { return W.WReset(r, dict) } diff --git a/stdlib/go1_14_container_heap.go b/stdlib/go1_14_container_heap.go index fbbedb18..036235e2 100644 --- a/stdlib/go1_14_container_heap.go +++ b/stdlib/go1_14_container_heap.go @@ -6,6 +6,7 @@ package stdlib import ( "container/heap" + "fmt" "reflect" ) @@ -28,6 +29,7 @@ func init() { // _container_heap_Interface is an interface wrapper for Interface type type _container_heap_Interface struct { + Val interface{} WLen func() int WLess func(i int, j int) bool WPop func() interface{} @@ -35,6 +37,8 @@ type _container_heap_Interface struct { WSwap func(i int, j int) } +func (W _container_heap_Interface) String() string { return fmt.Sprint(W.Val) } + func (W _container_heap_Interface) Len() int { return W.WLen() } func (W _container_heap_Interface) Less(i int, j int) bool { return W.WLess(i, j) } func (W _container_heap_Interface) Pop() interface{} { return W.WPop() } diff --git a/stdlib/go1_14_context.go b/stdlib/go1_14_context.go index c1640418..3b9d01ea 100644 --- a/stdlib/go1_14_context.go +++ b/stdlib/go1_14_context.go @@ -6,6 +6,7 @@ package stdlib import ( "context" + "fmt" "reflect" "time" ) @@ -33,12 +34,15 @@ func init() { // _context_Context is an interface wrapper for Context type type _context_Context struct { + Val interface{} WDeadline func() (deadline time.Time, ok bool) WDone func() <-chan struct{} WErr func() error WValue func(key interface{}) interface{} } +func (W _context_Context) String() string { return fmt.Sprint(W.Val) } + func (W _context_Context) Deadline() (deadline time.Time, ok bool) { return W.WDeadline() } func (W _context_Context) Done() <-chan struct{} { return W.WDone() } func (W _context_Context) Err() error { return W.WErr() } diff --git a/stdlib/go1_14_crypto.go b/stdlib/go1_14_crypto.go index 507599e4..0fcf8a0b 100644 --- a/stdlib/go1_14_crypto.go +++ b/stdlib/go1_14_crypto.go @@ -6,6 +6,7 @@ package stdlib import ( "crypto" + "fmt" "io" "reflect" ) @@ -55,10 +56,13 @@ func init() { // _crypto_Decrypter is an interface wrapper for Decrypter type type _crypto_Decrypter struct { + Val interface{} WDecrypt func(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error) WPublic func() crypto.PublicKey } +func (W _crypto_Decrypter) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_Decrypter) Decrypt(rand io.Reader, msg []byte, opts crypto.DecrypterOpts) (plaintext []byte, err error) { return W.WDecrypt(rand, msg, opts) } @@ -66,22 +70,34 @@ func (W _crypto_Decrypter) Public() crypto.PublicKey { return W.WPublic() } // _crypto_DecrypterOpts is an interface wrapper for DecrypterOpts type type _crypto_DecrypterOpts struct { + Val interface{} } +func (W _crypto_DecrypterOpts) String() string { return fmt.Sprint(W.Val) } + // _crypto_PrivateKey is an interface wrapper for PrivateKey type type _crypto_PrivateKey struct { + Val interface{} } +func (W _crypto_PrivateKey) String() string { return fmt.Sprint(W.Val) } + // _crypto_PublicKey is an interface wrapper for PublicKey type type _crypto_PublicKey struct { + Val interface{} } +func (W _crypto_PublicKey) String() string { return fmt.Sprint(W.Val) } + // _crypto_Signer is an interface wrapper for Signer type type _crypto_Signer struct { + Val interface{} WPublic func() crypto.PublicKey WSign func(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error) } +func (W _crypto_Signer) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_Signer) Public() crypto.PublicKey { return W.WPublic() } func (W _crypto_Signer) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error) { return W.WSign(rand, digest, opts) @@ -89,7 +105,10 @@ func (W _crypto_Signer) Sign(rand io.Reader, digest []byte, opts crypto.SignerOp // _crypto_SignerOpts is an interface wrapper for SignerOpts type type _crypto_SignerOpts struct { + Val interface{} WHashFunc func() crypto.Hash } +func (W _crypto_SignerOpts) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_SignerOpts) HashFunc() crypto.Hash { return W.WHashFunc() } diff --git a/stdlib/go1_14_crypto_cipher.go b/stdlib/go1_14_crypto_cipher.go index a9fc75b5..ad958636 100644 --- a/stdlib/go1_14_crypto_cipher.go +++ b/stdlib/go1_14_crypto_cipher.go @@ -6,6 +6,7 @@ package stdlib import ( "crypto/cipher" + "fmt" "reflect" ) @@ -40,12 +41,15 @@ func init() { // _crypto_cipher_AEAD is an interface wrapper for AEAD type type _crypto_cipher_AEAD struct { + Val interface{} WNonceSize func() int WOpen func(dst []byte, nonce []byte, ciphertext []byte, additionalData []byte) ([]byte, error) WOverhead func() int WSeal func(dst []byte, nonce []byte, plaintext []byte, additionalData []byte) []byte } +func (W _crypto_cipher_AEAD) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_cipher_AEAD) NonceSize() int { return W.WNonceSize() } func (W _crypto_cipher_AEAD) Open(dst []byte, nonce []byte, ciphertext []byte, additionalData []byte) ([]byte, error) { return W.WOpen(dst, nonce, ciphertext, additionalData) @@ -57,27 +61,36 @@ func (W _crypto_cipher_AEAD) Seal(dst []byte, nonce []byte, plaintext []byte, ad // _crypto_cipher_Block is an interface wrapper for Block type type _crypto_cipher_Block struct { + Val interface{} WBlockSize func() int WDecrypt func(dst []byte, src []byte) WEncrypt func(dst []byte, src []byte) } +func (W _crypto_cipher_Block) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_cipher_Block) BlockSize() int { return W.WBlockSize() } func (W _crypto_cipher_Block) Decrypt(dst []byte, src []byte) { W.WDecrypt(dst, src) } func (W _crypto_cipher_Block) Encrypt(dst []byte, src []byte) { W.WEncrypt(dst, src) } // _crypto_cipher_BlockMode is an interface wrapper for BlockMode type type _crypto_cipher_BlockMode struct { + Val interface{} WBlockSize func() int WCryptBlocks func(dst []byte, src []byte) } +func (W _crypto_cipher_BlockMode) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_cipher_BlockMode) BlockSize() int { return W.WBlockSize() } func (W _crypto_cipher_BlockMode) CryptBlocks(dst []byte, src []byte) { W.WCryptBlocks(dst, src) } // _crypto_cipher_Stream is an interface wrapper for Stream type type _crypto_cipher_Stream struct { + Val interface{} WXORKeyStream func(dst []byte, src []byte) } +func (W _crypto_cipher_Stream) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_cipher_Stream) XORKeyStream(dst []byte, src []byte) { W.WXORKeyStream(dst, src) } diff --git a/stdlib/go1_14_crypto_elliptic.go b/stdlib/go1_14_crypto_elliptic.go index 41b11c3a..c6bba82f 100644 --- a/stdlib/go1_14_crypto_elliptic.go +++ b/stdlib/go1_14_crypto_elliptic.go @@ -6,6 +6,7 @@ package stdlib import ( "crypto/elliptic" + "fmt" "math/big" "reflect" ) @@ -32,6 +33,7 @@ func init() { // _crypto_elliptic_Curve is an interface wrapper for Curve type type _crypto_elliptic_Curve struct { + Val interface{} WAdd func(x1 *big.Int, y1 *big.Int, x2 *big.Int, y2 *big.Int) (x *big.Int, y *big.Int) WDouble func(x1 *big.Int, y1 *big.Int) (x *big.Int, y *big.Int) WIsOnCurve func(x *big.Int, y *big.Int) bool @@ -40,6 +42,8 @@ type _crypto_elliptic_Curve struct { WScalarMult func(x1 *big.Int, y1 *big.Int, k []byte) (x *big.Int, y *big.Int) } +func (W _crypto_elliptic_Curve) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_elliptic_Curve) Add(x1 *big.Int, y1 *big.Int, x2 *big.Int, y2 *big.Int) (x *big.Int, y *big.Int) { return W.WAdd(x1, y1, x2, y2) } diff --git a/stdlib/go1_14_crypto_tls.go b/stdlib/go1_14_crypto_tls.go index 9a4d2917..178f38ef 100644 --- a/stdlib/go1_14_crypto_tls.go +++ b/stdlib/go1_14_crypto_tls.go @@ -6,6 +6,7 @@ package stdlib import ( "crypto/tls" + "fmt" "go/constant" "go/token" "reflect" @@ -107,10 +108,13 @@ func init() { // _crypto_tls_ClientSessionCache is an interface wrapper for ClientSessionCache type type _crypto_tls_ClientSessionCache struct { + Val interface{} WGet func(sessionKey string) (session *tls.ClientSessionState, ok bool) WPut func(sessionKey string, cs *tls.ClientSessionState) } +func (W _crypto_tls_ClientSessionCache) String() string { return fmt.Sprint(W.Val) } + func (W _crypto_tls_ClientSessionCache) Get(sessionKey string) (session *tls.ClientSessionState, ok bool) { return W.WGet(sessionKey) } diff --git a/stdlib/go1_14_database_sql.go b/stdlib/go1_14_database_sql.go index 7f0ef43b..cd55099d 100644 --- a/stdlib/go1_14_database_sql.go +++ b/stdlib/go1_14_database_sql.go @@ -6,6 +6,7 @@ package stdlib import ( "database/sql" + "fmt" "reflect" ) @@ -60,16 +61,22 @@ func init() { // _database_sql_Result is an interface wrapper for Result type type _database_sql_Result struct { + Val interface{} WLastInsertId func() (int64, error) WRowsAffected func() (int64, error) } +func (W _database_sql_Result) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_Result) LastInsertId() (int64, error) { return W.WLastInsertId() } func (W _database_sql_Result) RowsAffected() (int64, error) { return W.WRowsAffected() } // _database_sql_Scanner is an interface wrapper for Scanner type type _database_sql_Scanner struct { + Val interface{} WScan func(src interface{}) error } +func (W _database_sql_Scanner) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_Scanner) Scan(src interface{}) error { return W.WScan(src) } diff --git a/stdlib/go1_14_database_sql_driver.go b/stdlib/go1_14_database_sql_driver.go index 101c18b8..4b4a87a6 100644 --- a/stdlib/go1_14_database_sql_driver.go +++ b/stdlib/go1_14_database_sql_driver.go @@ -7,6 +7,7 @@ package stdlib import ( "context" "database/sql/driver" + "fmt" "reflect" ) @@ -96,20 +97,26 @@ func init() { // _database_sql_driver_ColumnConverter is an interface wrapper for ColumnConverter type type _database_sql_driver_ColumnConverter struct { + Val interface{} WColumnConverter func(idx int) driver.ValueConverter } +func (W _database_sql_driver_ColumnConverter) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ColumnConverter) ColumnConverter(idx int) driver.ValueConverter { return W.WColumnConverter(idx) } // _database_sql_driver_Conn is an interface wrapper for Conn type type _database_sql_driver_Conn struct { + Val interface{} WBegin func() (driver.Tx, error) WClose func() error WPrepare func(query string) (driver.Stmt, error) } +func (W _database_sql_driver_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Conn) Begin() (driver.Tx, error) { return W.WBegin() } func (W _database_sql_driver_Conn) Close() error { return W.WClose() } func (W _database_sql_driver_Conn) Prepare(query string) (driver.Stmt, error) { @@ -118,28 +125,37 @@ func (W _database_sql_driver_Conn) Prepare(query string) (driver.Stmt, error) { // _database_sql_driver_ConnBeginTx is an interface wrapper for ConnBeginTx type type _database_sql_driver_ConnBeginTx struct { + Val interface{} WBeginTx func(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) } +func (W _database_sql_driver_ConnBeginTx) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ConnBeginTx) BeginTx(ctx context.Context, opts driver.TxOptions) (driver.Tx, error) { return W.WBeginTx(ctx, opts) } // _database_sql_driver_ConnPrepareContext is an interface wrapper for ConnPrepareContext type type _database_sql_driver_ConnPrepareContext struct { + Val interface{} WPrepareContext func(ctx context.Context, query string) (driver.Stmt, error) } +func (W _database_sql_driver_ConnPrepareContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ConnPrepareContext) PrepareContext(ctx context.Context, query string) (driver.Stmt, error) { return W.WPrepareContext(ctx, query) } // _database_sql_driver_Connector is an interface wrapper for Connector type type _database_sql_driver_Connector struct { + Val interface{} WConnect func(a0 context.Context) (driver.Conn, error) WDriver func() driver.Driver } +func (W _database_sql_driver_Connector) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Connector) Connect(a0 context.Context) (driver.Conn, error) { return W.WConnect(a0) } @@ -147,100 +163,135 @@ func (W _database_sql_driver_Connector) Driver() driver.Driver { return W.WDrive // _database_sql_driver_Driver is an interface wrapper for Driver type type _database_sql_driver_Driver struct { + Val interface{} WOpen func(name string) (driver.Conn, error) } +func (W _database_sql_driver_Driver) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Driver) Open(name string) (driver.Conn, error) { return W.WOpen(name) } // _database_sql_driver_DriverContext is an interface wrapper for DriverContext type type _database_sql_driver_DriverContext struct { + Val interface{} WOpenConnector func(name string) (driver.Connector, error) } +func (W _database_sql_driver_DriverContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_DriverContext) OpenConnector(name string) (driver.Connector, error) { return W.WOpenConnector(name) } // _database_sql_driver_Execer is an interface wrapper for Execer type type _database_sql_driver_Execer struct { + Val interface{} WExec func(query string, args []driver.Value) (driver.Result, error) } +func (W _database_sql_driver_Execer) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Execer) Exec(query string, args []driver.Value) (driver.Result, error) { return W.WExec(query, args) } // _database_sql_driver_ExecerContext is an interface wrapper for ExecerContext type type _database_sql_driver_ExecerContext struct { + Val interface{} WExecContext func(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) } +func (W _database_sql_driver_ExecerContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ExecerContext) ExecContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Result, error) { return W.WExecContext(ctx, query, args) } // _database_sql_driver_NamedValueChecker is an interface wrapper for NamedValueChecker type type _database_sql_driver_NamedValueChecker struct { + Val interface{} WCheckNamedValue func(a0 *driver.NamedValue) error } +func (W _database_sql_driver_NamedValueChecker) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_NamedValueChecker) CheckNamedValue(a0 *driver.NamedValue) error { return W.WCheckNamedValue(a0) } // _database_sql_driver_Pinger is an interface wrapper for Pinger type type _database_sql_driver_Pinger struct { + Val interface{} WPing func(ctx context.Context) error } +func (W _database_sql_driver_Pinger) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Pinger) Ping(ctx context.Context) error { return W.WPing(ctx) } // _database_sql_driver_Queryer is an interface wrapper for Queryer type type _database_sql_driver_Queryer struct { + Val interface{} WQuery func(query string, args []driver.Value) (driver.Rows, error) } +func (W _database_sql_driver_Queryer) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Queryer) Query(query string, args []driver.Value) (driver.Rows, error) { return W.WQuery(query, args) } // _database_sql_driver_QueryerContext is an interface wrapper for QueryerContext type type _database_sql_driver_QueryerContext struct { + Val interface{} WQueryContext func(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) } +func (W _database_sql_driver_QueryerContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_QueryerContext) QueryContext(ctx context.Context, query string, args []driver.NamedValue) (driver.Rows, error) { return W.WQueryContext(ctx, query, args) } // _database_sql_driver_Result is an interface wrapper for Result type type _database_sql_driver_Result struct { + Val interface{} WLastInsertId func() (int64, error) WRowsAffected func() (int64, error) } +func (W _database_sql_driver_Result) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Result) LastInsertId() (int64, error) { return W.WLastInsertId() } func (W _database_sql_driver_Result) RowsAffected() (int64, error) { return W.WRowsAffected() } // _database_sql_driver_Rows is an interface wrapper for Rows type type _database_sql_driver_Rows struct { + Val interface{} WClose func() error WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_Rows) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Rows) Close() error { return W.WClose() } func (W _database_sql_driver_Rows) Columns() []string { return W.WColumns() } func (W _database_sql_driver_Rows) Next(dest []driver.Value) error { return W.WNext(dest) } // _database_sql_driver_RowsColumnTypeDatabaseTypeName is an interface wrapper for RowsColumnTypeDatabaseTypeName type type _database_sql_driver_RowsColumnTypeDatabaseTypeName struct { + Val interface{} WClose func() error WColumnTypeDatabaseTypeName func(index int) string WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) String() string { + return fmt.Sprint(W.Val) +} + func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) ColumnTypeDatabaseTypeName(index int) string { return W.WColumnTypeDatabaseTypeName(index) @@ -252,12 +303,15 @@ func (W _database_sql_driver_RowsColumnTypeDatabaseTypeName) Next(dest []driver. // _database_sql_driver_RowsColumnTypeLength is an interface wrapper for RowsColumnTypeLength type type _database_sql_driver_RowsColumnTypeLength struct { + Val interface{} WClose func() error WColumnTypeLength func(index int) (length int64, ok bool) WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypeLength) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypeLength) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypeLength) ColumnTypeLength(index int) (length int64, ok bool) { return W.WColumnTypeLength(index) @@ -269,12 +323,15 @@ func (W _database_sql_driver_RowsColumnTypeLength) Next(dest []driver.Value) err // _database_sql_driver_RowsColumnTypeNullable is an interface wrapper for RowsColumnTypeNullable type type _database_sql_driver_RowsColumnTypeNullable struct { + Val interface{} WClose func() error WColumnTypeNullable func(index int) (nullable bool, ok bool) WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypeNullable) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypeNullable) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypeNullable) ColumnTypeNullable(index int) (nullable bool, ok bool) { return W.WColumnTypeNullable(index) @@ -286,12 +343,15 @@ func (W _database_sql_driver_RowsColumnTypeNullable) Next(dest []driver.Value) e // _database_sql_driver_RowsColumnTypePrecisionScale is an interface wrapper for RowsColumnTypePrecisionScale type type _database_sql_driver_RowsColumnTypePrecisionScale struct { + Val interface{} WClose func() error WColumnTypePrecisionScale func(index int) (precision int64, scale int64, ok bool) WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypePrecisionScale) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypePrecisionScale) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypePrecisionScale) ColumnTypePrecisionScale(index int) (precision int64, scale int64, ok bool) { return W.WColumnTypePrecisionScale(index) @@ -303,12 +363,15 @@ func (W _database_sql_driver_RowsColumnTypePrecisionScale) Next(dest []driver.Va // _database_sql_driver_RowsColumnTypeScanType is an interface wrapper for RowsColumnTypeScanType type type _database_sql_driver_RowsColumnTypeScanType struct { + Val interface{} WClose func() error WColumnTypeScanType func(index int) reflect.Type WColumns func() []string WNext func(dest []driver.Value) error } +func (W _database_sql_driver_RowsColumnTypeScanType) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsColumnTypeScanType) Close() error { return W.WClose() } func (W _database_sql_driver_RowsColumnTypeScanType) ColumnTypeScanType(index int) reflect.Type { return W.WColumnTypeScanType(index) @@ -320,6 +383,7 @@ func (W _database_sql_driver_RowsColumnTypeScanType) Next(dest []driver.Value) e // _database_sql_driver_RowsNextResultSet is an interface wrapper for RowsNextResultSet type type _database_sql_driver_RowsNextResultSet struct { + Val interface{} WClose func() error WColumns func() []string WHasNextResultSet func() bool @@ -327,6 +391,8 @@ type _database_sql_driver_RowsNextResultSet struct { WNextResultSet func() error } +func (W _database_sql_driver_RowsNextResultSet) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_RowsNextResultSet) Close() error { return W.WClose() } func (W _database_sql_driver_RowsNextResultSet) Columns() []string { return W.WColumns() } func (W _database_sql_driver_RowsNextResultSet) HasNextResultSet() bool { return W.WHasNextResultSet() } @@ -335,21 +401,27 @@ func (W _database_sql_driver_RowsNextResultSet) NextResultSet() error // _database_sql_driver_SessionResetter is an interface wrapper for SessionResetter type type _database_sql_driver_SessionResetter struct { + Val interface{} WResetSession func(ctx context.Context) error } +func (W _database_sql_driver_SessionResetter) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_SessionResetter) ResetSession(ctx context.Context) error { return W.WResetSession(ctx) } // _database_sql_driver_Stmt is an interface wrapper for Stmt type type _database_sql_driver_Stmt struct { + Val interface{} WClose func() error WExec func(args []driver.Value) (driver.Result, error) WNumInput func() int WQuery func(args []driver.Value) (driver.Rows, error) } +func (W _database_sql_driver_Stmt) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Stmt) Close() error { return W.WClose() } func (W _database_sql_driver_Stmt) Exec(args []driver.Value) (driver.Result, error) { return W.WExec(args) @@ -361,47 +433,65 @@ func (W _database_sql_driver_Stmt) Query(args []driver.Value) (driver.Rows, erro // _database_sql_driver_StmtExecContext is an interface wrapper for StmtExecContext type type _database_sql_driver_StmtExecContext struct { + Val interface{} WExecContext func(ctx context.Context, args []driver.NamedValue) (driver.Result, error) } +func (W _database_sql_driver_StmtExecContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_StmtExecContext) ExecContext(ctx context.Context, args []driver.NamedValue) (driver.Result, error) { return W.WExecContext(ctx, args) } // _database_sql_driver_StmtQueryContext is an interface wrapper for StmtQueryContext type type _database_sql_driver_StmtQueryContext struct { + Val interface{} WQueryContext func(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) } +func (W _database_sql_driver_StmtQueryContext) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_StmtQueryContext) QueryContext(ctx context.Context, args []driver.NamedValue) (driver.Rows, error) { return W.WQueryContext(ctx, args) } // _database_sql_driver_Tx is an interface wrapper for Tx type type _database_sql_driver_Tx struct { + Val interface{} WCommit func() error WRollback func() error } +func (W _database_sql_driver_Tx) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Tx) Commit() error { return W.WCommit() } func (W _database_sql_driver_Tx) Rollback() error { return W.WRollback() } // _database_sql_driver_Value is an interface wrapper for Value type type _database_sql_driver_Value struct { + Val interface{} } +func (W _database_sql_driver_Value) String() string { return fmt.Sprint(W.Val) } + // _database_sql_driver_ValueConverter is an interface wrapper for ValueConverter type type _database_sql_driver_ValueConverter struct { + Val interface{} WConvertValue func(v interface{}) (driver.Value, error) } +func (W _database_sql_driver_ValueConverter) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_ValueConverter) ConvertValue(v interface{}) (driver.Value, error) { return W.WConvertValue(v) } // _database_sql_driver_Valuer is an interface wrapper for Valuer type type _database_sql_driver_Valuer struct { + Val interface{} WValue func() (driver.Value, error) } +func (W _database_sql_driver_Valuer) String() string { return fmt.Sprint(W.Val) } + func (W _database_sql_driver_Valuer) Value() (driver.Value, error) { return W.WValue() } diff --git a/stdlib/go1_14_debug_dwarf.go b/stdlib/go1_14_debug_dwarf.go index 9147a84f..e6f5f025 100644 --- a/stdlib/go1_14_debug_dwarf.go +++ b/stdlib/go1_14_debug_dwarf.go @@ -271,6 +271,7 @@ func init() { // _debug_dwarf_Type is an interface wrapper for Type type type _debug_dwarf_Type struct { + Val interface{} WCommon func() *dwarf.CommonType WSize func() int64 WString func() string diff --git a/stdlib/go1_14_debug_macho.go b/stdlib/go1_14_debug_macho.go index 1547c06e..57f2378b 100644 --- a/stdlib/go1_14_debug_macho.go +++ b/stdlib/go1_14_debug_macho.go @@ -6,6 +6,7 @@ package stdlib import ( "debug/macho" + "fmt" "reflect" ) @@ -150,7 +151,10 @@ func init() { // _debug_macho_Load is an interface wrapper for Load type type _debug_macho_Load struct { + Val interface{} WRaw func() []byte } +func (W _debug_macho_Load) String() string { return fmt.Sprint(W.Val) } + func (W _debug_macho_Load) Raw() []byte { return W.WRaw() } diff --git a/stdlib/go1_14_encoding.go b/stdlib/go1_14_encoding.go index 3203348b..b85c4873 100644 --- a/stdlib/go1_14_encoding.go +++ b/stdlib/go1_14_encoding.go @@ -6,6 +6,7 @@ package stdlib import ( "encoding" + "fmt" "reflect" ) @@ -27,32 +28,44 @@ func init() { // _encoding_BinaryMarshaler is an interface wrapper for BinaryMarshaler type type _encoding_BinaryMarshaler struct { + Val interface{} WMarshalBinary func() (data []byte, err error) } +func (W _encoding_BinaryMarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_BinaryMarshaler) MarshalBinary() (data []byte, err error) { return W.WMarshalBinary() } // _encoding_BinaryUnmarshaler is an interface wrapper for BinaryUnmarshaler type type _encoding_BinaryUnmarshaler struct { + Val interface{} WUnmarshalBinary func(data []byte) error } +func (W _encoding_BinaryUnmarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_BinaryUnmarshaler) UnmarshalBinary(data []byte) error { return W.WUnmarshalBinary(data) } // _encoding_TextMarshaler is an interface wrapper for TextMarshaler type type _encoding_TextMarshaler struct { + Val interface{} WMarshalText func() (text []byte, err error) } +func (W _encoding_TextMarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_TextMarshaler) MarshalText() (text []byte, err error) { return W.WMarshalText() } // _encoding_TextUnmarshaler is an interface wrapper for TextUnmarshaler type type _encoding_TextUnmarshaler struct { + Val interface{} WUnmarshalText func(text []byte) error } +func (W _encoding_TextUnmarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_TextUnmarshaler) UnmarshalText(text []byte) error { return W.WUnmarshalText(text) } diff --git a/stdlib/go1_14_encoding_binary.go b/stdlib/go1_14_encoding_binary.go index 561f8404..7e1281aa 100644 --- a/stdlib/go1_14_encoding_binary.go +++ b/stdlib/go1_14_encoding_binary.go @@ -39,6 +39,7 @@ func init() { // _encoding_binary_ByteOrder is an interface wrapper for ByteOrder type type _encoding_binary_ByteOrder struct { + Val interface{} WPutUint16 func(a0 []byte, a1 uint16) WPutUint32 func(a0 []byte, a1 uint32) WPutUint64 func(a0 []byte, a1 uint64) diff --git a/stdlib/go1_14_encoding_gob.go b/stdlib/go1_14_encoding_gob.go index 19384055..7830df9f 100644 --- a/stdlib/go1_14_encoding_gob.go +++ b/stdlib/go1_14_encoding_gob.go @@ -6,6 +6,7 @@ package stdlib import ( "encoding/gob" + "fmt" "reflect" ) @@ -32,14 +33,20 @@ func init() { // _encoding_gob_GobDecoder is an interface wrapper for GobDecoder type type _encoding_gob_GobDecoder struct { + Val interface{} WGobDecode func(a0 []byte) error } +func (W _encoding_gob_GobDecoder) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_gob_GobDecoder) GobDecode(a0 []byte) error { return W.WGobDecode(a0) } // _encoding_gob_GobEncoder is an interface wrapper for GobEncoder type type _encoding_gob_GobEncoder struct { + Val interface{} WGobEncode func() ([]byte, error) } +func (W _encoding_gob_GobEncoder) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_gob_GobEncoder) GobEncode() ([]byte, error) { return W.WGobEncode() } diff --git a/stdlib/go1_14_encoding_json.go b/stdlib/go1_14_encoding_json.go index c54f8ec9..199bd2c6 100644 --- a/stdlib/go1_14_encoding_json.go +++ b/stdlib/go1_14_encoding_json.go @@ -6,6 +6,7 @@ package stdlib import ( "encoding/json" + "fmt" "reflect" ) @@ -49,18 +50,27 @@ func init() { // _encoding_json_Marshaler is an interface wrapper for Marshaler type type _encoding_json_Marshaler struct { + Val interface{} WMarshalJSON func() ([]byte, error) } +func (W _encoding_json_Marshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_json_Marshaler) MarshalJSON() ([]byte, error) { return W.WMarshalJSON() } // _encoding_json_Token is an interface wrapper for Token type type _encoding_json_Token struct { + Val interface{} } +func (W _encoding_json_Token) String() string { return fmt.Sprint(W.Val) } + // _encoding_json_Unmarshaler is an interface wrapper for Unmarshaler type type _encoding_json_Unmarshaler struct { + Val interface{} WUnmarshalJSON func(a0 []byte) error } +func (W _encoding_json_Unmarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_json_Unmarshaler) UnmarshalJSON(a0 []byte) error { return W.WUnmarshalJSON(a0) } diff --git a/stdlib/go1_14_encoding_xml.go b/stdlib/go1_14_encoding_xml.go index a6b01ee7..51ba5c40 100644 --- a/stdlib/go1_14_encoding_xml.go +++ b/stdlib/go1_14_encoding_xml.go @@ -6,6 +6,7 @@ package stdlib import ( "encoding/xml" + "fmt" "reflect" ) @@ -59,47 +60,65 @@ func init() { // _encoding_xml_Marshaler is an interface wrapper for Marshaler type type _encoding_xml_Marshaler struct { + Val interface{} WMarshalXML func(e *xml.Encoder, start xml.StartElement) error } +func (W _encoding_xml_Marshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_Marshaler) MarshalXML(e *xml.Encoder, start xml.StartElement) error { return W.WMarshalXML(e, start) } // _encoding_xml_MarshalerAttr is an interface wrapper for MarshalerAttr type type _encoding_xml_MarshalerAttr struct { + Val interface{} WMarshalXMLAttr func(name xml.Name) (xml.Attr, error) } +func (W _encoding_xml_MarshalerAttr) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_MarshalerAttr) MarshalXMLAttr(name xml.Name) (xml.Attr, error) { return W.WMarshalXMLAttr(name) } // _encoding_xml_Token is an interface wrapper for Token type type _encoding_xml_Token struct { + Val interface{} } +func (W _encoding_xml_Token) String() string { return fmt.Sprint(W.Val) } + // _encoding_xml_TokenReader is an interface wrapper for TokenReader type type _encoding_xml_TokenReader struct { + Val interface{} WToken func() (xml.Token, error) } +func (W _encoding_xml_TokenReader) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_TokenReader) Token() (xml.Token, error) { return W.WToken() } // _encoding_xml_Unmarshaler is an interface wrapper for Unmarshaler type type _encoding_xml_Unmarshaler struct { + Val interface{} WUnmarshalXML func(d *xml.Decoder, start xml.StartElement) error } +func (W _encoding_xml_Unmarshaler) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_Unmarshaler) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error { return W.WUnmarshalXML(d, start) } // _encoding_xml_UnmarshalerAttr is an interface wrapper for UnmarshalerAttr type type _encoding_xml_UnmarshalerAttr struct { + Val interface{} WUnmarshalXMLAttr func(attr xml.Attr) error } +func (W _encoding_xml_UnmarshalerAttr) String() string { return fmt.Sprint(W.Val) } + func (W _encoding_xml_UnmarshalerAttr) UnmarshalXMLAttr(attr xml.Attr) error { return W.WUnmarshalXMLAttr(attr) } diff --git a/stdlib/go1_14_expvar.go b/stdlib/go1_14_expvar.go index 12a362a9..d2b4c8c1 100644 --- a/stdlib/go1_14_expvar.go +++ b/stdlib/go1_14_expvar.go @@ -37,6 +37,7 @@ func init() { // _expvar_Var is an interface wrapper for Var type type _expvar_Var struct { + Val interface{} WString func() string } diff --git a/stdlib/go1_14_flag.go b/stdlib/go1_14_flag.go index c56aaada..fa224736 100644 --- a/stdlib/go1_14_flag.go +++ b/stdlib/go1_14_flag.go @@ -64,6 +64,7 @@ func init() { // _flag_Getter is an interface wrapper for Getter type type _flag_Getter struct { + Val interface{} WGet func() interface{} WSet func(a0 string) error WString func() string @@ -75,6 +76,7 @@ func (W _flag_Getter) String() string { return W.WString() } // _flag_Value is an interface wrapper for Value type type _flag_Value struct { + Val interface{} WSet func(a0 string) error WString func() string } diff --git a/stdlib/go1_14_fmt.go b/stdlib/go1_14_fmt.go index c10de002..9d25dd5c 100644 --- a/stdlib/go1_14_fmt.go +++ b/stdlib/go1_14_fmt.go @@ -52,20 +52,27 @@ func init() { // _fmt_Formatter is an interface wrapper for Formatter type type _fmt_Formatter struct { + Val interface{} WFormat func(f fmt.State, c rune) } +func (W _fmt_Formatter) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_Formatter) Format(f fmt.State, c rune) { W.WFormat(f, c) } // _fmt_GoStringer is an interface wrapper for GoStringer type type _fmt_GoStringer struct { + Val interface{} WGoString func() string } +func (W _fmt_GoStringer) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_GoStringer) GoString() string { return W.WGoString() } // _fmt_ScanState is an interface wrapper for ScanState type type _fmt_ScanState struct { + Val interface{} WRead func(buf []byte) (n int, err error) WReadRune func() (r rune, size int, err error) WSkipSpace func() @@ -74,6 +81,8 @@ type _fmt_ScanState struct { WWidth func() (wid int, ok bool) } +func (W _fmt_ScanState) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_ScanState) Read(buf []byte) (n int, err error) { return W.WRead(buf) } func (W _fmt_ScanState) ReadRune() (r rune, size int, err error) { return W.WReadRune() } func (W _fmt_ScanState) SkipSpace() { W.WSkipSpace() } @@ -85,19 +94,25 @@ func (W _fmt_ScanState) Width() (wid int, ok bool) { return W.WWidth() } // _fmt_Scanner is an interface wrapper for Scanner type type _fmt_Scanner struct { + Val interface{} WScan func(state fmt.ScanState, verb rune) error } +func (W _fmt_Scanner) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_Scanner) Scan(state fmt.ScanState, verb rune) error { return W.WScan(state, verb) } // _fmt_State is an interface wrapper for State type type _fmt_State struct { + Val interface{} WFlag func(c int) bool WPrecision func() (prec int, ok bool) WWidth func() (wid int, ok bool) WWrite func(b []byte) (n int, err error) } +func (W _fmt_State) String() string { return fmt.Sprint(W.Val) } + func (W _fmt_State) Flag(c int) bool { return W.WFlag(c) } func (W _fmt_State) Precision() (prec int, ok bool) { return W.WPrecision() } func (W _fmt_State) Width() (wid int, ok bool) { return W.WWidth() } @@ -105,6 +120,7 @@ func (W _fmt_State) Write(b []byte) (n int, err error) { return W.WWrite(b) } // _fmt_Stringer is an interface wrapper for Stringer type type _fmt_Stringer struct { + Val interface{} WString func() string } diff --git a/stdlib/go1_14_go_ast.go b/stdlib/go1_14_go_ast.go index 714c50b3..0cdce27e 100644 --- a/stdlib/go1_14_go_ast.go +++ b/stdlib/go1_14_go_ast.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/ast" "go/token" "reflect" @@ -128,52 +129,70 @@ func init() { // _go_ast_Decl is an interface wrapper for Decl type type _go_ast_Decl struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Decl) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Decl) End() token.Pos { return W.WEnd() } func (W _go_ast_Decl) Pos() token.Pos { return W.WPos() } // _go_ast_Expr is an interface wrapper for Expr type type _go_ast_Expr struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Expr) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Expr) End() token.Pos { return W.WEnd() } func (W _go_ast_Expr) Pos() token.Pos { return W.WPos() } // _go_ast_Node is an interface wrapper for Node type type _go_ast_Node struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Node) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Node) End() token.Pos { return W.WEnd() } func (W _go_ast_Node) Pos() token.Pos { return W.WPos() } // _go_ast_Spec is an interface wrapper for Spec type type _go_ast_Spec struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Spec) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Spec) End() token.Pos { return W.WEnd() } func (W _go_ast_Spec) Pos() token.Pos { return W.WPos() } // _go_ast_Stmt is an interface wrapper for Stmt type type _go_ast_Stmt struct { + Val interface{} WEnd func() token.Pos WPos func() token.Pos } +func (W _go_ast_Stmt) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Stmt) End() token.Pos { return W.WEnd() } func (W _go_ast_Stmt) Pos() token.Pos { return W.WPos() } // _go_ast_Visitor is an interface wrapper for Visitor type type _go_ast_Visitor struct { + Val interface{} WVisit func(node ast.Node) (w ast.Visitor) } +func (W _go_ast_Visitor) String() string { return fmt.Sprint(W.Val) } + func (W _go_ast_Visitor) Visit(node ast.Node) (w ast.Visitor) { return W.WVisit(node) } diff --git a/stdlib/go1_14_go_constant.go b/stdlib/go1_14_go_constant.go index 166261ab..0c64a30f 100644 --- a/stdlib/go1_14_go_constant.go +++ b/stdlib/go1_14_go_constant.go @@ -61,6 +61,7 @@ func init() { // _go_constant_Value is an interface wrapper for Value type type _go_constant_Value struct { + Val interface{} WExactString func() string WKind func() constant.Kind WString func() string diff --git a/stdlib/go1_14_go_types.go b/stdlib/go1_14_go_types.go index 4f0b8fb2..371f5263 100644 --- a/stdlib/go1_14_go_types.go +++ b/stdlib/go1_14_go_types.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/token" "go/types" "reflect" @@ -162,17 +163,23 @@ func init() { // _go_types_Importer is an interface wrapper for Importer type type _go_types_Importer struct { + Val interface{} WImport func(path string) (*types.Package, error) } +func (W _go_types_Importer) String() string { return fmt.Sprint(W.Val) } + func (W _go_types_Importer) Import(path string) (*types.Package, error) { return W.WImport(path) } // _go_types_ImporterFrom is an interface wrapper for ImporterFrom type type _go_types_ImporterFrom struct { + Val interface{} WImport func(path string) (*types.Package, error) WImportFrom func(path string, dir string, mode types.ImportMode) (*types.Package, error) } +func (W _go_types_ImporterFrom) String() string { return fmt.Sprint(W.Val) } + func (W _go_types_ImporterFrom) Import(path string) (*types.Package, error) { return W.WImport(path) } func (W _go_types_ImporterFrom) ImportFrom(path string, dir string, mode types.ImportMode) (*types.Package, error) { return W.WImportFrom(path, dir, mode) @@ -180,6 +187,7 @@ func (W _go_types_ImporterFrom) ImportFrom(path string, dir string, mode types.I // _go_types_Object is an interface wrapper for Object type type _go_types_Object struct { + Val interface{} WExported func() bool WId func() string WName func() string @@ -201,17 +209,21 @@ func (W _go_types_Object) Type() types.Type { return W.WType() } // _go_types_Sizes is an interface wrapper for Sizes type type _go_types_Sizes struct { + Val interface{} WAlignof func(T types.Type) int64 WOffsetsof func(fields []*types.Var) []int64 WSizeof func(T types.Type) int64 } +func (W _go_types_Sizes) String() string { return fmt.Sprint(W.Val) } + func (W _go_types_Sizes) Alignof(T types.Type) int64 { return W.WAlignof(T) } func (W _go_types_Sizes) Offsetsof(fields []*types.Var) []int64 { return W.WOffsetsof(fields) } func (W _go_types_Sizes) Sizeof(T types.Type) int64 { return W.WSizeof(T) } // _go_types_Type is an interface wrapper for Type type type _go_types_Type struct { + Val interface{} WString func() string WUnderlying func() types.Type } diff --git a/stdlib/go1_14_hash.go b/stdlib/go1_14_hash.go index a308a39e..f0c4149a 100644 --- a/stdlib/go1_14_hash.go +++ b/stdlib/go1_14_hash.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "hash" "reflect" ) @@ -25,6 +26,7 @@ func init() { // _hash_Hash is an interface wrapper for Hash type type _hash_Hash struct { + Val interface{} WBlockSize func() int WReset func() WSize func() int @@ -32,6 +34,8 @@ type _hash_Hash struct { WWrite func(p []byte) (n int, err error) } +func (W _hash_Hash) String() string { return fmt.Sprint(W.Val) } + func (W _hash_Hash) BlockSize() int { return W.WBlockSize() } func (W _hash_Hash) Reset() { W.WReset() } func (W _hash_Hash) Size() int { return W.WSize() } @@ -40,6 +44,7 @@ func (W _hash_Hash) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _hash_Hash32 is an interface wrapper for Hash32 type type _hash_Hash32 struct { + Val interface{} WBlockSize func() int WReset func() WSize func() int @@ -48,6 +53,8 @@ type _hash_Hash32 struct { WWrite func(p []byte) (n int, err error) } +func (W _hash_Hash32) String() string { return fmt.Sprint(W.Val) } + func (W _hash_Hash32) BlockSize() int { return W.WBlockSize() } func (W _hash_Hash32) Reset() { W.WReset() } func (W _hash_Hash32) Size() int { return W.WSize() } @@ -57,6 +64,7 @@ func (W _hash_Hash32) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _hash_Hash64 is an interface wrapper for Hash64 type type _hash_Hash64 struct { + Val interface{} WBlockSize func() int WReset func() WSize func() int @@ -65,6 +73,8 @@ type _hash_Hash64 struct { WWrite func(p []byte) (n int, err error) } +func (W _hash_Hash64) String() string { return fmt.Sprint(W.Val) } + func (W _hash_Hash64) BlockSize() int { return W.WBlockSize() } func (W _hash_Hash64) Reset() { W.WReset() } func (W _hash_Hash64) Size() int { return W.WSize() } diff --git a/stdlib/go1_14_image.go b/stdlib/go1_14_image.go index e5d27f66..3d5ab244 100644 --- a/stdlib/go1_14_image.go +++ b/stdlib/go1_14_image.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "image" "image/color" "reflect" @@ -74,23 +75,29 @@ func init() { // _image_Image is an interface wrapper for Image type type _image_Image struct { + Val interface{} WAt func(x int, y int) color.Color WBounds func() image.Rectangle WColorModel func() color.Model } +func (W _image_Image) String() string { return fmt.Sprint(W.Val) } + func (W _image_Image) At(x int, y int) color.Color { return W.WAt(x, y) } func (W _image_Image) Bounds() image.Rectangle { return W.WBounds() } func (W _image_Image) ColorModel() color.Model { return W.WColorModel() } // _image_PalettedImage is an interface wrapper for PalettedImage type type _image_PalettedImage struct { + Val interface{} WAt func(x int, y int) color.Color WBounds func() image.Rectangle WColorIndexAt func(x int, y int) uint8 WColorModel func() color.Model } +func (W _image_PalettedImage) String() string { return fmt.Sprint(W.Val) } + func (W _image_PalettedImage) At(x int, y int) color.Color { return W.WAt(x, y) } func (W _image_PalettedImage) Bounds() image.Rectangle { return W.WBounds() } func (W _image_PalettedImage) ColorIndexAt(x int, y int) uint8 { return W.WColorIndexAt(x, y) } diff --git a/stdlib/go1_14_image_color.go b/stdlib/go1_14_image_color.go index fbc0e555..2a973c3f 100644 --- a/stdlib/go1_14_image_color.go +++ b/stdlib/go1_14_image_color.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "image/color" "reflect" ) @@ -57,14 +58,20 @@ func init() { // _image_color_Color is an interface wrapper for Color type type _image_color_Color struct { + Val interface{} WRGBA func() (r uint32, g uint32, b uint32, a uint32) } +func (W _image_color_Color) String() string { return fmt.Sprint(W.Val) } + func (W _image_color_Color) RGBA() (r uint32, g uint32, b uint32, a uint32) { return W.WRGBA() } // _image_color_Model is an interface wrapper for Model type type _image_color_Model struct { + Val interface{} WConvert func(c color.Color) color.Color } +func (W _image_color_Model) String() string { return fmt.Sprint(W.Val) } + func (W _image_color_Model) Convert(c color.Color) color.Color { return W.WConvert(c) } diff --git a/stdlib/go1_14_image_draw.go b/stdlib/go1_14_image_draw.go index f41ce29b..1be22345 100644 --- a/stdlib/go1_14_image_draw.go +++ b/stdlib/go1_14_image_draw.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "image" "image/color" "image/draw" @@ -35,21 +36,27 @@ func init() { // _image_draw_Drawer is an interface wrapper for Drawer type type _image_draw_Drawer struct { + Val interface{} WDraw func(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) } +func (W _image_draw_Drawer) String() string { return fmt.Sprint(W.Val) } + func (W _image_draw_Drawer) Draw(dst draw.Image, r image.Rectangle, src image.Image, sp image.Point) { W.WDraw(dst, r, src, sp) } // _image_draw_Image is an interface wrapper for Image type type _image_draw_Image struct { + Val interface{} WAt func(x int, y int) color.Color WBounds func() image.Rectangle WColorModel func() color.Model WSet func(x int, y int, c color.Color) } +func (W _image_draw_Image) String() string { return fmt.Sprint(W.Val) } + func (W _image_draw_Image) At(x int, y int) color.Color { return W.WAt(x, y) } func (W _image_draw_Image) Bounds() image.Rectangle { return W.WBounds() } func (W _image_draw_Image) ColorModel() color.Model { return W.WColorModel() } @@ -57,9 +64,12 @@ func (W _image_draw_Image) Set(x int, y int, c color.Color) { W.WSet(x, y, c) } // _image_draw_Quantizer is an interface wrapper for Quantizer type type _image_draw_Quantizer struct { + Val interface{} WQuantize func(p color.Palette, m image.Image) color.Palette } +func (W _image_draw_Quantizer) String() string { return fmt.Sprint(W.Val) } + func (W _image_draw_Quantizer) Quantize(p color.Palette, m image.Image) color.Palette { return W.WQuantize(p, m) } diff --git a/stdlib/go1_14_image_jpeg.go b/stdlib/go1_14_image_jpeg.go index 75593495..b677abd3 100644 --- a/stdlib/go1_14_image_jpeg.go +++ b/stdlib/go1_14_image_jpeg.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/constant" "go/token" "image/jpeg" @@ -32,9 +33,12 @@ func init() { // _image_jpeg_Reader is an interface wrapper for Reader type type _image_jpeg_Reader struct { + Val interface{} WRead func(p []byte) (n int, err error) WReadByte func() (byte, error) } +func (W _image_jpeg_Reader) String() string { return fmt.Sprint(W.Val) } + func (W _image_jpeg_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _image_jpeg_Reader) ReadByte() (byte, error) { return W.WReadByte() } diff --git a/stdlib/go1_14_image_png.go b/stdlib/go1_14_image_png.go index 8db8c7ff..07ed6824 100644 --- a/stdlib/go1_14_image_png.go +++ b/stdlib/go1_14_image_png.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "image/png" "reflect" ) @@ -35,9 +36,12 @@ func init() { // _image_png_EncoderBufferPool is an interface wrapper for EncoderBufferPool type type _image_png_EncoderBufferPool struct { + Val interface{} WGet func() *png.EncoderBuffer WPut func(a0 *png.EncoderBuffer) } +func (W _image_png_EncoderBufferPool) String() string { return fmt.Sprint(W.Val) } + func (W _image_png_EncoderBufferPool) Get() *png.EncoderBuffer { return W.WGet() } func (W _image_png_EncoderBufferPool) Put(a0 *png.EncoderBuffer) { W.WPut(a0) } diff --git a/stdlib/go1_14_io.go b/stdlib/go1_14_io.go index bf20267e..ca0acb40 100644 --- a/stdlib/go1_14_io.go +++ b/stdlib/go1_14_io.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/constant" "go/token" "io" @@ -90,70 +91,94 @@ func init() { // _io_ByteReader is an interface wrapper for ByteReader type type _io_ByteReader struct { + Val interface{} WReadByte func() (byte, error) } +func (W _io_ByteReader) String() string { return fmt.Sprint(W.Val) } + func (W _io_ByteReader) ReadByte() (byte, error) { return W.WReadByte() } // _io_ByteScanner is an interface wrapper for ByteScanner type type _io_ByteScanner struct { + Val interface{} WReadByte func() (byte, error) WUnreadByte func() error } +func (W _io_ByteScanner) String() string { return fmt.Sprint(W.Val) } + func (W _io_ByteScanner) ReadByte() (byte, error) { return W.WReadByte() } func (W _io_ByteScanner) UnreadByte() error { return W.WUnreadByte() } // _io_ByteWriter is an interface wrapper for ByteWriter type type _io_ByteWriter struct { + Val interface{} WWriteByte func(c byte) error } +func (W _io_ByteWriter) String() string { return fmt.Sprint(W.Val) } + func (W _io_ByteWriter) WriteByte(c byte) error { return W.WWriteByte(c) } // _io_Closer is an interface wrapper for Closer type type _io_Closer struct { + Val interface{} WClose func() error } +func (W _io_Closer) String() string { return fmt.Sprint(W.Val) } + func (W _io_Closer) Close() error { return W.WClose() } // _io_ReadCloser is an interface wrapper for ReadCloser type type _io_ReadCloser struct { + Val interface{} WClose func() error WRead func(p []byte) (n int, err error) } +func (W _io_ReadCloser) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadCloser) Close() error { return W.WClose() } func (W _io_ReadCloser) Read(p []byte) (n int, err error) { return W.WRead(p) } // _io_ReadSeeker is an interface wrapper for ReadSeeker type type _io_ReadSeeker struct { + Val interface{} WRead func(p []byte) (n int, err error) WSeek func(offset int64, whence int) (int64, error) } +func (W _io_ReadSeeker) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadSeeker) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _io_ReadSeeker) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) } // _io_ReadWriteCloser is an interface wrapper for ReadWriteCloser type type _io_ReadWriteCloser struct { + Val interface{} WClose func() error WRead func(p []byte) (n int, err error) WWrite func(p []byte) (n int, err error) } +func (W _io_ReadWriteCloser) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadWriteCloser) Close() error { return W.WClose() } func (W _io_ReadWriteCloser) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _io_ReadWriteCloser) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _io_ReadWriteSeeker is an interface wrapper for ReadWriteSeeker type type _io_ReadWriteSeeker struct { + Val interface{} WRead func(p []byte) (n int, err error) WSeek func(offset int64, whence int) (int64, error) WWrite func(p []byte) (n int, err error) } +func (W _io_ReadWriteSeeker) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadWriteSeeker) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _io_ReadWriteSeeker) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) @@ -162,79 +187,109 @@ func (W _io_ReadWriteSeeker) Write(p []byte) (n int, err error) { return W.WWrit // _io_ReadWriter is an interface wrapper for ReadWriter type type _io_ReadWriter struct { + Val interface{} WRead func(p []byte) (n int, err error) WWrite func(p []byte) (n int, err error) } +func (W _io_ReadWriter) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReadWriter) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _io_ReadWriter) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _io_Reader is an interface wrapper for Reader type type _io_Reader struct { + Val interface{} WRead func(p []byte) (n int, err error) } +func (W _io_Reader) String() string { return fmt.Sprint(W.Val) } + func (W _io_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) } // _io_ReaderAt is an interface wrapper for ReaderAt type type _io_ReaderAt struct { + Val interface{} WReadAt func(p []byte, off int64) (n int, err error) } +func (W _io_ReaderAt) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReaderAt) ReadAt(p []byte, off int64) (n int, err error) { return W.WReadAt(p, off) } // _io_ReaderFrom is an interface wrapper for ReaderFrom type type _io_ReaderFrom struct { + Val interface{} WReadFrom func(r io.Reader) (n int64, err error) } +func (W _io_ReaderFrom) String() string { return fmt.Sprint(W.Val) } + func (W _io_ReaderFrom) ReadFrom(r io.Reader) (n int64, err error) { return W.WReadFrom(r) } // _io_RuneReader is an interface wrapper for RuneReader type type _io_RuneReader struct { + Val interface{} WReadRune func() (r rune, size int, err error) } +func (W _io_RuneReader) String() string { return fmt.Sprint(W.Val) } + func (W _io_RuneReader) ReadRune() (r rune, size int, err error) { return W.WReadRune() } // _io_RuneScanner is an interface wrapper for RuneScanner type type _io_RuneScanner struct { + Val interface{} WReadRune func() (r rune, size int, err error) WUnreadRune func() error } +func (W _io_RuneScanner) String() string { return fmt.Sprint(W.Val) } + func (W _io_RuneScanner) ReadRune() (r rune, size int, err error) { return W.WReadRune() } func (W _io_RuneScanner) UnreadRune() error { return W.WUnreadRune() } // _io_Seeker is an interface wrapper for Seeker type type _io_Seeker struct { + Val interface{} WSeek func(offset int64, whence int) (int64, error) } +func (W _io_Seeker) String() string { return fmt.Sprint(W.Val) } + func (W _io_Seeker) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) } // _io_StringWriter is an interface wrapper for StringWriter type type _io_StringWriter struct { + Val interface{} WWriteString func(s string) (n int, err error) } +func (W _io_StringWriter) String() string { return fmt.Sprint(W.Val) } + func (W _io_StringWriter) WriteString(s string) (n int, err error) { return W.WWriteString(s) } // _io_WriteCloser is an interface wrapper for WriteCloser type type _io_WriteCloser struct { + Val interface{} WClose func() error WWrite func(p []byte) (n int, err error) } +func (W _io_WriteCloser) String() string { return fmt.Sprint(W.Val) } + func (W _io_WriteCloser) Close() error { return W.WClose() } func (W _io_WriteCloser) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _io_WriteSeeker is an interface wrapper for WriteSeeker type type _io_WriteSeeker struct { + Val interface{} WSeek func(offset int64, whence int) (int64, error) WWrite func(p []byte) (n int, err error) } +func (W _io_WriteSeeker) String() string { return fmt.Sprint(W.Val) } + func (W _io_WriteSeeker) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) } @@ -242,21 +297,30 @@ func (W _io_WriteSeeker) Write(p []byte) (n int, err error) { return W.WWrite(p) // _io_Writer is an interface wrapper for Writer type type _io_Writer struct { + Val interface{} WWrite func(p []byte) (n int, err error) } +func (W _io_Writer) String() string { return fmt.Sprint(W.Val) } + func (W _io_Writer) Write(p []byte) (n int, err error) { return W.WWrite(p) } // _io_WriterAt is an interface wrapper for WriterAt type type _io_WriterAt struct { + Val interface{} WWriteAt func(p []byte, off int64) (n int, err error) } +func (W _io_WriterAt) String() string { return fmt.Sprint(W.Val) } + func (W _io_WriterAt) WriteAt(p []byte, off int64) (n int, err error) { return W.WWriteAt(p, off) } // _io_WriterTo is an interface wrapper for WriterTo type type _io_WriterTo struct { + Val interface{} WWriteTo func(w io.Writer) (n int64, err error) } +func (W _io_WriterTo) String() string { return fmt.Sprint(W.Val) } + func (W _io_WriterTo) WriteTo(w io.Writer) (n int64, err error) { return W.WWriteTo(w) } diff --git a/stdlib/go1_14_math_rand.go b/stdlib/go1_14_math_rand.go index bc4ea8ac..4313fa0d 100644 --- a/stdlib/go1_14_math_rand.go +++ b/stdlib/go1_14_math_rand.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "math/rand" "reflect" ) @@ -46,20 +47,26 @@ func init() { // _math_rand_Source is an interface wrapper for Source type type _math_rand_Source struct { + Val interface{} WInt63 func() int64 WSeed func(seed int64) } +func (W _math_rand_Source) String() string { return fmt.Sprint(W.Val) } + func (W _math_rand_Source) Int63() int64 { return W.WInt63() } func (W _math_rand_Source) Seed(seed int64) { W.WSeed(seed) } // _math_rand_Source64 is an interface wrapper for Source64 type type _math_rand_Source64 struct { + Val interface{} WInt63 func() int64 WSeed func(seed int64) WUint64 func() uint64 } +func (W _math_rand_Source64) String() string { return fmt.Sprint(W.Val) } + func (W _math_rand_Source64) Int63() int64 { return W.WInt63() } func (W _math_rand_Source64) Seed(seed int64) { W.WSeed(seed) } func (W _math_rand_Source64) Uint64() uint64 { return W.WUint64() } diff --git a/stdlib/go1_14_mime_multipart.go b/stdlib/go1_14_mime_multipart.go index 4930740e..7bfea8f6 100644 --- a/stdlib/go1_14_mime_multipart.go +++ b/stdlib/go1_14_mime_multipart.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "mime/multipart" "reflect" ) @@ -31,12 +32,15 @@ func init() { // _mime_multipart_File is an interface wrapper for File type type _mime_multipart_File struct { + Val interface{} WClose func() error WRead func(p []byte) (n int, err error) WReadAt func(p []byte, off int64) (n int, err error) WSeek func(offset int64, whence int) (int64, error) } +func (W _mime_multipart_File) String() string { return fmt.Sprint(W.Val) } + func (W _mime_multipart_File) Close() error { return W.WClose() } func (W _mime_multipart_File) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _mime_multipart_File) ReadAt(p []byte, off int64) (n int, err error) { diff --git a/stdlib/go1_14_net.go b/stdlib/go1_14_net.go index 0b393b07..1790b963 100644 --- a/stdlib/go1_14_net.go +++ b/stdlib/go1_14_net.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/constant" "go/token" "net" @@ -126,6 +127,7 @@ func init() { // _net_Addr is an interface wrapper for Addr type type _net_Addr struct { + Val interface{} WNetwork func() string WString func() string } @@ -135,6 +137,7 @@ func (W _net_Addr) String() string { return W.WString() } // _net_Conn is an interface wrapper for Conn type type _net_Conn struct { + Val interface{} WClose func() error WLocalAddr func() net.Addr WRead func(b []byte) (n int, err error) @@ -145,6 +148,8 @@ type _net_Conn struct { WWrite func(b []byte) (n int, err error) } +func (W _net_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _net_Conn) Close() error { return W.WClose() } func (W _net_Conn) LocalAddr() net.Addr { return W.WLocalAddr() } func (W _net_Conn) Read(b []byte) (n int, err error) { return W.WRead(b) } @@ -156,28 +161,35 @@ func (W _net_Conn) Write(b []byte) (n int, err error) { return W.WWrite(b) } // _net_Error is an interface wrapper for Error type type _net_Error struct { + Val interface{} WError func() string WTemporary func() bool WTimeout func() bool } +func (W _net_Error) String() string { return fmt.Sprint(W.Val) } + func (W _net_Error) Error() string { return W.WError() } func (W _net_Error) Temporary() bool { return W.WTemporary() } func (W _net_Error) Timeout() bool { return W.WTimeout() } // _net_Listener is an interface wrapper for Listener type type _net_Listener struct { + Val interface{} WAccept func() (net.Conn, error) WAddr func() net.Addr WClose func() error } +func (W _net_Listener) String() string { return fmt.Sprint(W.Val) } + func (W _net_Listener) Accept() (net.Conn, error) { return W.WAccept() } func (W _net_Listener) Addr() net.Addr { return W.WAddr() } func (W _net_Listener) Close() error { return W.WClose() } // _net_PacketConn is an interface wrapper for PacketConn type type _net_PacketConn struct { + Val interface{} WClose func() error WLocalAddr func() net.Addr WReadFrom func(p []byte) (n int, addr net.Addr, err error) @@ -187,6 +199,8 @@ type _net_PacketConn struct { WWriteTo func(p []byte, addr net.Addr) (n int, err error) } +func (W _net_PacketConn) String() string { return fmt.Sprint(W.Val) } + func (W _net_PacketConn) Close() error { return W.WClose() } func (W _net_PacketConn) LocalAddr() net.Addr { return W.WLocalAddr() } func (W _net_PacketConn) ReadFrom(p []byte) (n int, addr net.Addr, err error) { return W.WReadFrom(p) } diff --git a/stdlib/go1_14_net_http.go b/stdlib/go1_14_net_http.go index bb8ab0f2..844c1b17 100644 --- a/stdlib/go1_14_net_http.go +++ b/stdlib/go1_14_net_http.go @@ -6,6 +6,7 @@ package stdlib import ( "bufio" + "fmt" "go/constant" "go/token" "net" @@ -207,17 +208,23 @@ func init() { // _net_http_CloseNotifier is an interface wrapper for CloseNotifier type type _net_http_CloseNotifier struct { + Val interface{} WCloseNotify func() <-chan bool } +func (W _net_http_CloseNotifier) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_CloseNotifier) CloseNotify() <-chan bool { return W.WCloseNotify() } // _net_http_CookieJar is an interface wrapper for CookieJar type type _net_http_CookieJar struct { + Val interface{} WCookies func(u *url.URL) []*http.Cookie WSetCookies func(u *url.URL, cookies []*http.Cookie) } +func (W _net_http_CookieJar) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_CookieJar) Cookies(u *url.URL) []*http.Cookie { return W.WCookies(u) } func (W _net_http_CookieJar) SetCookies(u *url.URL, cookies []*http.Cookie) { W.WSetCookies(u, cookies) @@ -225,6 +232,7 @@ func (W _net_http_CookieJar) SetCookies(u *url.URL, cookies []*http.Cookie) { // _net_http_File is an interface wrapper for File type type _net_http_File struct { + Val interface{} WClose func() error WRead func(p []byte) (n int, err error) WReaddir func(count int) ([]os.FileInfo, error) @@ -232,6 +240,8 @@ type _net_http_File struct { WStat func() (os.FileInfo, error) } +func (W _net_http_File) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_File) Close() error { return W.WClose() } func (W _net_http_File) Read(p []byte) (n int, err error) { return W.WRead(p) } func (W _net_http_File) Readdir(count int) ([]os.FileInfo, error) { return W.WReaddir(count) } @@ -240,57 +250,78 @@ func (W _net_http_File) Stat() (os.FileInfo, error) { return W // _net_http_FileSystem is an interface wrapper for FileSystem type type _net_http_FileSystem struct { + Val interface{} WOpen func(name string) (http.File, error) } +func (W _net_http_FileSystem) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_FileSystem) Open(name string) (http.File, error) { return W.WOpen(name) } // _net_http_Flusher is an interface wrapper for Flusher type type _net_http_Flusher struct { + Val interface{} WFlush func() } +func (W _net_http_Flusher) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_Flusher) Flush() { W.WFlush() } // _net_http_Handler is an interface wrapper for Handler type type _net_http_Handler struct { + Val interface{} WServeHTTP func(a0 http.ResponseWriter, a1 *http.Request) } +func (W _net_http_Handler) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_Handler) ServeHTTP(a0 http.ResponseWriter, a1 *http.Request) { W.WServeHTTP(a0, a1) } // _net_http_Hijacker is an interface wrapper for Hijacker type type _net_http_Hijacker struct { + Val interface{} WHijack func() (net.Conn, *bufio.ReadWriter, error) } +func (W _net_http_Hijacker) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_Hijacker) Hijack() (net.Conn, *bufio.ReadWriter, error) { return W.WHijack() } // _net_http_Pusher is an interface wrapper for Pusher type type _net_http_Pusher struct { + Val interface{} WPush func(target string, opts *http.PushOptions) error } +func (W _net_http_Pusher) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_Pusher) Push(target string, opts *http.PushOptions) error { return W.WPush(target, opts) } // _net_http_ResponseWriter is an interface wrapper for ResponseWriter type type _net_http_ResponseWriter struct { + Val interface{} WHeader func() http.Header WWrite func(a0 []byte) (int, error) WWriteHeader func(statusCode int) } +func (W _net_http_ResponseWriter) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_ResponseWriter) Header() http.Header { return W.WHeader() } func (W _net_http_ResponseWriter) Write(a0 []byte) (int, error) { return W.WWrite(a0) } func (W _net_http_ResponseWriter) WriteHeader(statusCode int) { W.WWriteHeader(statusCode) } // _net_http_RoundTripper is an interface wrapper for RoundTripper type type _net_http_RoundTripper struct { + Val interface{} WRoundTrip func(a0 *http.Request) (*http.Response, error) } +func (W _net_http_RoundTripper) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_RoundTripper) RoundTrip(a0 *http.Request) (*http.Response, error) { return W.WRoundTrip(a0) } diff --git a/stdlib/go1_14_net_http_cookiejar.go b/stdlib/go1_14_net_http_cookiejar.go index 3e1d8969..9fbcd077 100644 --- a/stdlib/go1_14_net_http_cookiejar.go +++ b/stdlib/go1_14_net_http_cookiejar.go @@ -26,6 +26,7 @@ func init() { // _net_http_cookiejar_PublicSuffixList is an interface wrapper for PublicSuffixList type type _net_http_cookiejar_PublicSuffixList struct { + Val interface{} WPublicSuffix func(domain string) string WString func() string } diff --git a/stdlib/go1_14_net_http_httputil.go b/stdlib/go1_14_net_http_httputil.go index e33802d0..6fd3e808 100644 --- a/stdlib/go1_14_net_http_httputil.go +++ b/stdlib/go1_14_net_http_httputil.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "net/http/httputil" "reflect" ) @@ -39,9 +40,12 @@ func init() { // _net_http_httputil_BufferPool is an interface wrapper for BufferPool type type _net_http_httputil_BufferPool struct { + Val interface{} WGet func() []byte WPut func(a0 []byte) } +func (W _net_http_httputil_BufferPool) String() string { return fmt.Sprint(W.Val) } + func (W _net_http_httputil_BufferPool) Get() []byte { return W.WGet() } func (W _net_http_httputil_BufferPool) Put(a0 []byte) { W.WPut(a0) } diff --git a/stdlib/go1_14_net_rpc.go b/stdlib/go1_14_net_rpc.go index b6b04f48..d6e9cf3e 100644 --- a/stdlib/go1_14_net_rpc.go +++ b/stdlib/go1_14_net_rpc.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "net/rpc" "reflect" ) @@ -48,12 +49,15 @@ func init() { // _net_rpc_ClientCodec is an interface wrapper for ClientCodec type type _net_rpc_ClientCodec struct { + Val interface{} WClose func() error WReadResponseBody func(a0 interface{}) error WReadResponseHeader func(a0 *rpc.Response) error WWriteRequest func(a0 *rpc.Request, a1 interface{}) error } +func (W _net_rpc_ClientCodec) String() string { return fmt.Sprint(W.Val) } + func (W _net_rpc_ClientCodec) Close() error { return W.WClose() } func (W _net_rpc_ClientCodec) ReadResponseBody(a0 interface{}) error { return W.WReadResponseBody(a0) } func (W _net_rpc_ClientCodec) ReadResponseHeader(a0 *rpc.Response) error { @@ -65,12 +69,15 @@ func (W _net_rpc_ClientCodec) WriteRequest(a0 *rpc.Request, a1 interface{}) erro // _net_rpc_ServerCodec is an interface wrapper for ServerCodec type type _net_rpc_ServerCodec struct { + Val interface{} WClose func() error WReadRequestBody func(a0 interface{}) error WReadRequestHeader func(a0 *rpc.Request) error WWriteResponse func(a0 *rpc.Response, a1 interface{}) error } +func (W _net_rpc_ServerCodec) String() string { return fmt.Sprint(W.Val) } + func (W _net_rpc_ServerCodec) Close() error { return W.WClose() } func (W _net_rpc_ServerCodec) ReadRequestBody(a0 interface{}) error { return W.WReadRequestBody(a0) } func (W _net_rpc_ServerCodec) ReadRequestHeader(a0 *rpc.Request) error { diff --git a/stdlib/go1_14_net_smtp.go b/stdlib/go1_14_net_smtp.go index cf6dc565..dd707ce2 100644 --- a/stdlib/go1_14_net_smtp.go +++ b/stdlib/go1_14_net_smtp.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "net/smtp" "reflect" ) @@ -30,10 +31,13 @@ func init() { // _net_smtp_Auth is an interface wrapper for Auth type type _net_smtp_Auth struct { + Val interface{} WNext func(fromServer []byte, more bool) (toServer []byte, err error) WStart func(server *smtp.ServerInfo) (proto string, toServer []byte, err error) } +func (W _net_smtp_Auth) String() string { return fmt.Sprint(W.Val) } + func (W _net_smtp_Auth) Next(fromServer []byte, more bool) (toServer []byte, err error) { return W.WNext(fromServer, more) } diff --git a/stdlib/go1_14_os.go b/stdlib/go1_14_os.go index f1a75a69..11ed4e21 100644 --- a/stdlib/go1_14_os.go +++ b/stdlib/go1_14_os.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "go/constant" "go/token" "os" @@ -131,6 +132,7 @@ func init() { // _os_FileInfo is an interface wrapper for FileInfo type type _os_FileInfo struct { + Val interface{} WIsDir func() bool WModTime func() time.Time WMode func() os.FileMode @@ -139,6 +141,8 @@ type _os_FileInfo struct { WSys func() interface{} } +func (W _os_FileInfo) String() string { return fmt.Sprint(W.Val) } + func (W _os_FileInfo) IsDir() bool { return W.WIsDir() } func (W _os_FileInfo) ModTime() time.Time { return W.WModTime() } func (W _os_FileInfo) Mode() os.FileMode { return W.WMode() } @@ -148,6 +152,7 @@ func (W _os_FileInfo) Sys() interface{} { return W.WSys() } // _os_Signal is an interface wrapper for Signal type type _os_Signal struct { + Val interface{} WSignal func() WString func() string } diff --git a/stdlib/go1_14_reflect.go b/stdlib/go1_14_reflect.go index 2d03d584..b52ac22e 100644 --- a/stdlib/go1_14_reflect.go +++ b/stdlib/go1_14_reflect.go @@ -91,6 +91,7 @@ func init() { // _reflect_Type is an interface wrapper for Type type type _reflect_Type struct { + Val interface{} WAlign func() int WAssignableTo func(u reflect.Type) bool WBits func() int diff --git a/stdlib/go1_14_runtime.go b/stdlib/go1_14_runtime.go index 4651813a..35c09121 100644 --- a/stdlib/go1_14_runtime.go +++ b/stdlib/go1_14_runtime.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "reflect" "runtime" ) @@ -68,9 +69,12 @@ func init() { // _runtime_Error is an interface wrapper for Error type type _runtime_Error struct { + Val interface{} WError func() string WRuntimeError func() } +func (W _runtime_Error) String() string { return fmt.Sprint(W.Val) } + func (W _runtime_Error) Error() string { return W.WError() } func (W _runtime_Error) RuntimeError() { W.WRuntimeError() } diff --git a/stdlib/go1_14_sort.go b/stdlib/go1_14_sort.go index 1c5a08de..a8829d7e 100644 --- a/stdlib/go1_14_sort.go +++ b/stdlib/go1_14_sort.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "reflect" "sort" ) @@ -43,11 +44,14 @@ func init() { // _sort_Interface is an interface wrapper for Interface type type _sort_Interface struct { + Val interface{} WLen func() int WLess func(i int, j int) bool WSwap func(i int, j int) } +func (W _sort_Interface) String() string { return fmt.Sprint(W.Val) } + func (W _sort_Interface) Len() int { return W.WLen() } func (W _sort_Interface) Less(i int, j int) bool { return W.WLess(i, j) } func (W _sort_Interface) Swap(i int, j int) { W.WSwap(i, j) } diff --git a/stdlib/go1_14_sync.go b/stdlib/go1_14_sync.go index 05d73dcf..c1e4336e 100644 --- a/stdlib/go1_14_sync.go +++ b/stdlib/go1_14_sync.go @@ -5,6 +5,7 @@ package stdlib import ( + "fmt" "reflect" "sync" ) @@ -31,9 +32,12 @@ func init() { // _sync_Locker is an interface wrapper for Locker type type _sync_Locker struct { + Val interface{} WLock func() WUnlock func() } +func (W _sync_Locker) String() string { return fmt.Sprint(W.Val) } + func (W _sync_Locker) Lock() { W.WLock() } func (W _sync_Locker) Unlock() { W.WUnlock() } diff --git a/stdlib/go1_14_text_template_parse.go b/stdlib/go1_14_text_template_parse.go index 962c601b..30dd972d 100644 --- a/stdlib/go1_14_text_template_parse.go +++ b/stdlib/go1_14_text_template_parse.go @@ -67,6 +67,7 @@ func init() { // _text_template_parse_Node is an interface wrapper for Node type type _text_template_parse_Node struct { + Val interface{} WCopy func() parse.Node WPosition func() parse.Pos WString func() string diff --git a/stdlib/syscall/go1_13_syscall_aix_ppc64.go b/stdlib/syscall/go1_13_syscall_aix_ppc64.go index 9a32657f..f58b8a00 100644 --- a/stdlib/syscall/go1_13_syscall_aix_ppc64.go +++ b/stdlib/syscall/go1_13_syscall_aix_ppc64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1370,22 +1371,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_android_386.go b/stdlib/syscall/go1_13_syscall_android_386.go index 254b309a..ac1d0725 100644 --- a/stdlib/syscall/go1_13_syscall_android_386.go +++ b/stdlib/syscall/go1_13_syscall_android_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2237,22 +2238,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_android_amd64.go b/stdlib/syscall/go1_13_syscall_android_amd64.go index f421cb87..ebed3c5f 100644 --- a/stdlib/syscall/go1_13_syscall_android_amd64.go +++ b/stdlib/syscall/go1_13_syscall_android_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2203,22 +2204,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_android_arm.go b/stdlib/syscall/go1_13_syscall_android_arm.go index 75762da2..7dec1012 100644 --- a/stdlib/syscall/go1_13_syscall_android_arm.go +++ b/stdlib/syscall/go1_13_syscall_android_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2256,22 +2257,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_android_arm64.go b/stdlib/syscall/go1_13_syscall_android_arm64.go index dbd0a8b3..526fdadb 100644 --- a/stdlib/syscall/go1_13_syscall_android_arm64.go +++ b/stdlib/syscall/go1_13_syscall_android_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2358,22 +2359,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_darwin_386.go b/stdlib/syscall/go1_13_syscall_darwin_386.go index 3a3b207b..17a00714 100644 --- a/stdlib/syscall/go1_13_syscall_darwin_386.go +++ b/stdlib/syscall/go1_13_syscall_darwin_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1926,26 +1927,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_darwin_amd64.go b/stdlib/syscall/go1_13_syscall_darwin_amd64.go index 7358a416..96833f01 100644 --- a/stdlib/syscall/go1_13_syscall_darwin_amd64.go +++ b/stdlib/syscall/go1_13_syscall_darwin_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1926,26 +1927,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_darwin_arm.go b/stdlib/syscall/go1_13_syscall_darwin_arm.go index c835ccf5..e6ffb1cd 100644 --- a/stdlib/syscall/go1_13_syscall_darwin_arm.go +++ b/stdlib/syscall/go1_13_syscall_darwin_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1841,26 +1842,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_darwin_arm64.go b/stdlib/syscall/go1_13_syscall_darwin_arm64.go index 6cca82bf..0e93bbcc 100644 --- a/stdlib/syscall/go1_13_syscall_darwin_arm64.go +++ b/stdlib/syscall/go1_13_syscall_darwin_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1934,26 +1935,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_dragonfly_amd64.go b/stdlib/syscall/go1_13_syscall_dragonfly_amd64.go index ce47c6bb..dbc175f5 100644 --- a/stdlib/syscall/go1_13_syscall_dragonfly_amd64.go +++ b/stdlib/syscall/go1_13_syscall_dragonfly_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1981,26 +1982,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_freebsd_386.go b/stdlib/syscall/go1_13_syscall_freebsd_386.go index b37649b0..f20774a4 100644 --- a/stdlib/syscall/go1_13_syscall_freebsd_386.go +++ b/stdlib/syscall/go1_13_syscall_freebsd_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2228,26 +2229,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_freebsd_amd64.go b/stdlib/syscall/go1_13_syscall_freebsd_amd64.go index 181ad120..d1d03a3c 100644 --- a/stdlib/syscall/go1_13_syscall_freebsd_amd64.go +++ b/stdlib/syscall/go1_13_syscall_freebsd_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2229,26 +2230,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_freebsd_arm.go b/stdlib/syscall/go1_13_syscall_freebsd_arm.go index 52ced35f..1cc78db2 100644 --- a/stdlib/syscall/go1_13_syscall_freebsd_arm.go +++ b/stdlib/syscall/go1_13_syscall_freebsd_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2228,26 +2229,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_illumos_amd64.go b/stdlib/syscall/go1_13_syscall_illumos_amd64.go index 001bf2c1..ca6d5057 100644 --- a/stdlib/syscall/go1_13_syscall_illumos_amd64.go +++ b/stdlib/syscall/go1_13_syscall_illumos_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1478,22 +1479,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_js_wasm.go b/stdlib/syscall/go1_13_syscall_js_wasm.go index 893f8158..a0f84793 100644 --- a/stdlib/syscall/go1_13_syscall_js_wasm.go +++ b/stdlib/syscall/go1_13_syscall_js_wasm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -343,22 +344,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_386.go b/stdlib/syscall/go1_13_syscall_linux_386.go index 254b309a..ac1d0725 100644 --- a/stdlib/syscall/go1_13_syscall_linux_386.go +++ b/stdlib/syscall/go1_13_syscall_linux_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2237,22 +2238,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_amd64.go b/stdlib/syscall/go1_13_syscall_linux_amd64.go index f421cb87..ebed3c5f 100644 --- a/stdlib/syscall/go1_13_syscall_linux_amd64.go +++ b/stdlib/syscall/go1_13_syscall_linux_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2203,22 +2204,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_arm.go b/stdlib/syscall/go1_13_syscall_linux_arm.go index 75762da2..7dec1012 100644 --- a/stdlib/syscall/go1_13_syscall_linux_arm.go +++ b/stdlib/syscall/go1_13_syscall_linux_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2256,22 +2257,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_arm64.go b/stdlib/syscall/go1_13_syscall_linux_arm64.go index dbd0a8b3..526fdadb 100644 --- a/stdlib/syscall/go1_13_syscall_linux_arm64.go +++ b/stdlib/syscall/go1_13_syscall_linux_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2358,22 +2359,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_mips.go b/stdlib/syscall/go1_13_syscall_linux_mips.go index 557afa49..0a0e5807 100644 --- a/stdlib/syscall/go1_13_syscall_linux_mips.go +++ b/stdlib/syscall/go1_13_syscall_linux_mips.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2442,22 +2443,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_mips64.go b/stdlib/syscall/go1_13_syscall_linux_mips64.go index 86ea2f4d..7a3408d1 100644 --- a/stdlib/syscall/go1_13_syscall_linux_mips64.go +++ b/stdlib/syscall/go1_13_syscall_linux_mips64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2390,22 +2391,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_mips64le.go b/stdlib/syscall/go1_13_syscall_linux_mips64le.go index 86ea2f4d..7a3408d1 100644 --- a/stdlib/syscall/go1_13_syscall_linux_mips64le.go +++ b/stdlib/syscall/go1_13_syscall_linux_mips64le.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2390,22 +2391,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_mipsle.go b/stdlib/syscall/go1_13_syscall_linux_mipsle.go index 557afa49..0a0e5807 100644 --- a/stdlib/syscall/go1_13_syscall_linux_mipsle.go +++ b/stdlib/syscall/go1_13_syscall_linux_mipsle.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2442,22 +2443,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_ppc64.go b/stdlib/syscall/go1_13_syscall_linux_ppc64.go index 52d2a722..a27556ee 100644 --- a/stdlib/syscall/go1_13_syscall_linux_ppc64.go +++ b/stdlib/syscall/go1_13_syscall_linux_ppc64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2481,22 +2482,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_ppc64le.go b/stdlib/syscall/go1_13_syscall_linux_ppc64le.go index a68fb16e..e3439d80 100644 --- a/stdlib/syscall/go1_13_syscall_linux_ppc64le.go +++ b/stdlib/syscall/go1_13_syscall_linux_ppc64le.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2505,22 +2506,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_linux_s390x.go b/stdlib/syscall/go1_13_syscall_linux_s390x.go index 2cc97ba4..47d80248 100644 --- a/stdlib/syscall/go1_13_syscall_linux_s390x.go +++ b/stdlib/syscall/go1_13_syscall_linux_s390x.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2520,22 +2521,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_nacl_386.go b/stdlib/syscall/go1_13_syscall_nacl_386.go index 6dbb1b0c..9dd37a18 100644 --- a/stdlib/syscall/go1_13_syscall_nacl_386.go +++ b/stdlib/syscall/go1_13_syscall_nacl_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -407,26 +408,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_nacl_amd64p32.go b/stdlib/syscall/go1_13_syscall_nacl_amd64p32.go index 6dbb1b0c..9dd37a18 100644 --- a/stdlib/syscall/go1_13_syscall_nacl_amd64p32.go +++ b/stdlib/syscall/go1_13_syscall_nacl_amd64p32.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -407,26 +408,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_nacl_arm.go b/stdlib/syscall/go1_13_syscall_nacl_arm.go index 6dbb1b0c..9dd37a18 100644 --- a/stdlib/syscall/go1_13_syscall_nacl_arm.go +++ b/stdlib/syscall/go1_13_syscall_nacl_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -407,26 +408,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_netbsd_386.go b/stdlib/syscall/go1_13_syscall_netbsd_386.go index e7cad189..3b04d20b 100644 --- a/stdlib/syscall/go1_13_syscall_netbsd_386.go +++ b/stdlib/syscall/go1_13_syscall_netbsd_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2114,26 +2115,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_netbsd_amd64.go b/stdlib/syscall/go1_13_syscall_netbsd_amd64.go index 34e95ffe..7b6542bf 100644 --- a/stdlib/syscall/go1_13_syscall_netbsd_amd64.go +++ b/stdlib/syscall/go1_13_syscall_netbsd_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2104,26 +2105,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_netbsd_arm.go b/stdlib/syscall/go1_13_syscall_netbsd_arm.go index c7cd99e8..05b24d46 100644 --- a/stdlib/syscall/go1_13_syscall_netbsd_arm.go +++ b/stdlib/syscall/go1_13_syscall_netbsd_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2090,26 +2091,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_netbsd_arm64.go b/stdlib/syscall/go1_13_syscall_netbsd_arm64.go index 34e95ffe..7b6542bf 100644 --- a/stdlib/syscall/go1_13_syscall_netbsd_arm64.go +++ b/stdlib/syscall/go1_13_syscall_netbsd_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2104,26 +2105,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_openbsd_386.go b/stdlib/syscall/go1_13_syscall_openbsd_386.go index 0a1af892..f3299545 100644 --- a/stdlib/syscall/go1_13_syscall_openbsd_386.go +++ b/stdlib/syscall/go1_13_syscall_openbsd_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1948,26 +1949,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_openbsd_amd64.go b/stdlib/syscall/go1_13_syscall_openbsd_amd64.go index 62cd6480..183402f8 100644 --- a/stdlib/syscall/go1_13_syscall_openbsd_amd64.go +++ b/stdlib/syscall/go1_13_syscall_openbsd_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1947,26 +1948,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_openbsd_arm.go b/stdlib/syscall/go1_13_syscall_openbsd_arm.go index a20adacc..ca3f67d9 100644 --- a/stdlib/syscall/go1_13_syscall_openbsd_arm.go +++ b/stdlib/syscall/go1_13_syscall_openbsd_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1952,26 +1953,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_openbsd_arm64.go b/stdlib/syscall/go1_13_syscall_openbsd_arm64.go index d749bb80..c4f5e890 100644 --- a/stdlib/syscall/go1_13_syscall_openbsd_arm64.go +++ b/stdlib/syscall/go1_13_syscall_openbsd_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2047,26 +2048,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_plan9_386.go b/stdlib/syscall/go1_13_syscall_plan9_386.go index 2e27440a..522a4033 100644 --- a/stdlib/syscall/go1_13_syscall_plan9_386.go +++ b/stdlib/syscall/go1_13_syscall_plan9_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -224,18 +225,24 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } diff --git a/stdlib/syscall/go1_13_syscall_plan9_amd64.go b/stdlib/syscall/go1_13_syscall_plan9_amd64.go index 2e27440a..522a4033 100644 --- a/stdlib/syscall/go1_13_syscall_plan9_amd64.go +++ b/stdlib/syscall/go1_13_syscall_plan9_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -224,18 +225,24 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } diff --git a/stdlib/syscall/go1_13_syscall_plan9_arm.go b/stdlib/syscall/go1_13_syscall_plan9_arm.go index 2e27440a..522a4033 100644 --- a/stdlib/syscall/go1_13_syscall_plan9_arm.go +++ b/stdlib/syscall/go1_13_syscall_plan9_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -224,18 +225,24 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } diff --git a/stdlib/syscall/go1_13_syscall_solaris_amd64.go b/stdlib/syscall/go1_13_syscall_solaris_amd64.go index 001bf2c1..ca6d5057 100644 --- a/stdlib/syscall/go1_13_syscall_solaris_amd64.go +++ b/stdlib/syscall/go1_13_syscall_solaris_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1478,22 +1479,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_windows_386.go b/stdlib/syscall/go1_13_syscall_windows_386.go index 12ca9e65..7c512cbb 100644 --- a/stdlib/syscall/go1_13_syscall_windows_386.go +++ b/stdlib/syscall/go1_13_syscall_windows_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1013,22 +1014,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_windows_amd64.go b/stdlib/syscall/go1_13_syscall_windows_amd64.go index 12ca9e65..7c512cbb 100644 --- a/stdlib/syscall/go1_13_syscall_windows_amd64.go +++ b/stdlib/syscall/go1_13_syscall_windows_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1013,22 +1014,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_13_syscall_windows_arm.go b/stdlib/syscall/go1_13_syscall_windows_arm.go index 12ca9e65..7c512cbb 100644 --- a/stdlib/syscall/go1_13_syscall_windows_arm.go +++ b/stdlib/syscall/go1_13_syscall_windows_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1013,22 +1014,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_aix_ppc64.go b/stdlib/syscall/go1_14_syscall_aix_ppc64.go index 2ae71e19..5c58702d 100644 --- a/stdlib/syscall/go1_14_syscall_aix_ppc64.go +++ b/stdlib/syscall/go1_14_syscall_aix_ppc64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1370,22 +1371,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_android_386.go b/stdlib/syscall/go1_14_syscall_android_386.go index 8ed68840..8a5f36cf 100644 --- a/stdlib/syscall/go1_14_syscall_android_386.go +++ b/stdlib/syscall/go1_14_syscall_android_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2237,22 +2238,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_android_amd64.go b/stdlib/syscall/go1_14_syscall_android_amd64.go index 02ad2191..c25dee26 100644 --- a/stdlib/syscall/go1_14_syscall_android_amd64.go +++ b/stdlib/syscall/go1_14_syscall_android_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2203,22 +2204,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_android_arm.go b/stdlib/syscall/go1_14_syscall_android_arm.go index 00dd794f..bad353b4 100644 --- a/stdlib/syscall/go1_14_syscall_android_arm.go +++ b/stdlib/syscall/go1_14_syscall_android_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2256,22 +2257,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_android_arm64.go b/stdlib/syscall/go1_14_syscall_android_arm64.go index 24e494c5..4f902a1d 100644 --- a/stdlib/syscall/go1_14_syscall_android_arm64.go +++ b/stdlib/syscall/go1_14_syscall_android_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2347,22 +2348,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_darwin_386.go b/stdlib/syscall/go1_14_syscall_darwin_386.go index 3b26b305..5cfe9dd5 100644 --- a/stdlib/syscall/go1_14_syscall_darwin_386.go +++ b/stdlib/syscall/go1_14_syscall_darwin_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1926,26 +1927,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_darwin_amd64.go b/stdlib/syscall/go1_14_syscall_darwin_amd64.go index f784af13..1c823441 100644 --- a/stdlib/syscall/go1_14_syscall_darwin_amd64.go +++ b/stdlib/syscall/go1_14_syscall_darwin_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1926,26 +1927,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_darwin_arm.go b/stdlib/syscall/go1_14_syscall_darwin_arm.go index c7290902..dc1d3263 100644 --- a/stdlib/syscall/go1_14_syscall_darwin_arm.go +++ b/stdlib/syscall/go1_14_syscall_darwin_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1841,26 +1842,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_darwin_arm64.go b/stdlib/syscall/go1_14_syscall_darwin_arm64.go index 73a55ce1..3b3a50e2 100644 --- a/stdlib/syscall/go1_14_syscall_darwin_arm64.go +++ b/stdlib/syscall/go1_14_syscall_darwin_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1934,26 +1935,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_dragonfly_amd64.go b/stdlib/syscall/go1_14_syscall_dragonfly_amd64.go index 82f2d1d8..b7eebeea 100644 --- a/stdlib/syscall/go1_14_syscall_dragonfly_amd64.go +++ b/stdlib/syscall/go1_14_syscall_dragonfly_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1981,26 +1982,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_freebsd_386.go b/stdlib/syscall/go1_14_syscall_freebsd_386.go index 00cdf2b1..ccee67eb 100644 --- a/stdlib/syscall/go1_14_syscall_freebsd_386.go +++ b/stdlib/syscall/go1_14_syscall_freebsd_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2228,26 +2229,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_freebsd_amd64.go b/stdlib/syscall/go1_14_syscall_freebsd_amd64.go index 4c3a7d75..32a81059 100644 --- a/stdlib/syscall/go1_14_syscall_freebsd_amd64.go +++ b/stdlib/syscall/go1_14_syscall_freebsd_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2229,26 +2230,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_freebsd_arm.go b/stdlib/syscall/go1_14_syscall_freebsd_arm.go index 72c7c9d3..6a4e1793 100644 --- a/stdlib/syscall/go1_14_syscall_freebsd_arm.go +++ b/stdlib/syscall/go1_14_syscall_freebsd_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2228,26 +2229,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_freebsd_arm64.go b/stdlib/syscall/go1_14_syscall_freebsd_arm64.go index fecb5d39..74acb475 100644 --- a/stdlib/syscall/go1_14_syscall_freebsd_arm64.go +++ b/stdlib/syscall/go1_14_syscall_freebsd_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2274,26 +2275,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_illumos_amd64.go b/stdlib/syscall/go1_14_syscall_illumos_amd64.go index 9756bbab..9499bd15 100644 --- a/stdlib/syscall/go1_14_syscall_illumos_amd64.go +++ b/stdlib/syscall/go1_14_syscall_illumos_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1478,22 +1479,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_js_wasm.go b/stdlib/syscall/go1_14_syscall_js_wasm.go index 1b99023b..d00aa302 100644 --- a/stdlib/syscall/go1_14_syscall_js_wasm.go +++ b/stdlib/syscall/go1_14_syscall_js_wasm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -343,22 +344,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_386.go b/stdlib/syscall/go1_14_syscall_linux_386.go index 8ed68840..8a5f36cf 100644 --- a/stdlib/syscall/go1_14_syscall_linux_386.go +++ b/stdlib/syscall/go1_14_syscall_linux_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2237,22 +2238,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_amd64.go b/stdlib/syscall/go1_14_syscall_linux_amd64.go index 02ad2191..c25dee26 100644 --- a/stdlib/syscall/go1_14_syscall_linux_amd64.go +++ b/stdlib/syscall/go1_14_syscall_linux_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2203,22 +2204,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_arm.go b/stdlib/syscall/go1_14_syscall_linux_arm.go index 00dd794f..bad353b4 100644 --- a/stdlib/syscall/go1_14_syscall_linux_arm.go +++ b/stdlib/syscall/go1_14_syscall_linux_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2256,22 +2257,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_arm64.go b/stdlib/syscall/go1_14_syscall_linux_arm64.go index 24e494c5..4f902a1d 100644 --- a/stdlib/syscall/go1_14_syscall_linux_arm64.go +++ b/stdlib/syscall/go1_14_syscall_linux_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2347,22 +2348,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_mips.go b/stdlib/syscall/go1_14_syscall_linux_mips.go index 5b393d5a..75bd171c 100644 --- a/stdlib/syscall/go1_14_syscall_linux_mips.go +++ b/stdlib/syscall/go1_14_syscall_linux_mips.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2442,22 +2443,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_mips64.go b/stdlib/syscall/go1_14_syscall_linux_mips64.go index d6ceea51..50fe1138 100644 --- a/stdlib/syscall/go1_14_syscall_linux_mips64.go +++ b/stdlib/syscall/go1_14_syscall_linux_mips64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2390,22 +2391,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_mips64le.go b/stdlib/syscall/go1_14_syscall_linux_mips64le.go index d6ceea51..50fe1138 100644 --- a/stdlib/syscall/go1_14_syscall_linux_mips64le.go +++ b/stdlib/syscall/go1_14_syscall_linux_mips64le.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2390,22 +2391,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_mipsle.go b/stdlib/syscall/go1_14_syscall_linux_mipsle.go index 5b393d5a..75bd171c 100644 --- a/stdlib/syscall/go1_14_syscall_linux_mipsle.go +++ b/stdlib/syscall/go1_14_syscall_linux_mipsle.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2442,22 +2443,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_ppc64.go b/stdlib/syscall/go1_14_syscall_linux_ppc64.go index 2bde0247..15cc8bab 100644 --- a/stdlib/syscall/go1_14_syscall_linux_ppc64.go +++ b/stdlib/syscall/go1_14_syscall_linux_ppc64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2481,22 +2482,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_ppc64le.go b/stdlib/syscall/go1_14_syscall_linux_ppc64le.go index 1eb61a01..e4c055aa 100644 --- a/stdlib/syscall/go1_14_syscall_linux_ppc64le.go +++ b/stdlib/syscall/go1_14_syscall_linux_ppc64le.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2505,22 +2506,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_riscv64.go b/stdlib/syscall/go1_14_syscall_linux_riscv64.go index a3980802..3506daf9 100644 --- a/stdlib/syscall/go1_14_syscall_linux_riscv64.go +++ b/stdlib/syscall/go1_14_syscall_linux_riscv64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2401,22 +2402,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_linux_s390x.go b/stdlib/syscall/go1_14_syscall_linux_s390x.go index 3e117009..e47bca8b 100644 --- a/stdlib/syscall/go1_14_syscall_linux_s390x.go +++ b/stdlib/syscall/go1_14_syscall_linux_s390x.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2520,22 +2521,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_netbsd_386.go b/stdlib/syscall/go1_14_syscall_netbsd_386.go index 2c227879..4d0f607d 100644 --- a/stdlib/syscall/go1_14_syscall_netbsd_386.go +++ b/stdlib/syscall/go1_14_syscall_netbsd_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2114,26 +2115,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_netbsd_amd64.go b/stdlib/syscall/go1_14_syscall_netbsd_amd64.go index f3d3ed36..03411fc0 100644 --- a/stdlib/syscall/go1_14_syscall_netbsd_amd64.go +++ b/stdlib/syscall/go1_14_syscall_netbsd_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2104,26 +2105,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_netbsd_arm.go b/stdlib/syscall/go1_14_syscall_netbsd_arm.go index c7b38f47..54ec8ccf 100644 --- a/stdlib/syscall/go1_14_syscall_netbsd_arm.go +++ b/stdlib/syscall/go1_14_syscall_netbsd_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2090,26 +2091,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_netbsd_arm64.go b/stdlib/syscall/go1_14_syscall_netbsd_arm64.go index f3d3ed36..03411fc0 100644 --- a/stdlib/syscall/go1_14_syscall_netbsd_arm64.go +++ b/stdlib/syscall/go1_14_syscall_netbsd_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2104,26 +2105,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_openbsd_386.go b/stdlib/syscall/go1_14_syscall_openbsd_386.go index f62d0832..eb322abd 100644 --- a/stdlib/syscall/go1_14_syscall_openbsd_386.go +++ b/stdlib/syscall/go1_14_syscall_openbsd_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1948,26 +1949,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_openbsd_amd64.go b/stdlib/syscall/go1_14_syscall_openbsd_amd64.go index 0d099a35..c1c01cd5 100644 --- a/stdlib/syscall/go1_14_syscall_openbsd_amd64.go +++ b/stdlib/syscall/go1_14_syscall_openbsd_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1947,26 +1948,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_openbsd_arm.go b/stdlib/syscall/go1_14_syscall_openbsd_arm.go index 8ad92f7f..adddd36a 100644 --- a/stdlib/syscall/go1_14_syscall_openbsd_arm.go +++ b/stdlib/syscall/go1_14_syscall_openbsd_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1952,26 +1953,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_openbsd_arm64.go b/stdlib/syscall/go1_14_syscall_openbsd_arm64.go index ccbca5bc..2c515b0e 100644 --- a/stdlib/syscall/go1_14_syscall_openbsd_arm64.go +++ b/stdlib/syscall/go1_14_syscall_openbsd_arm64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -2047,26 +2048,38 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_RoutingMessage is an interface wrapper for RoutingMessage type type _syscall_RoutingMessage struct { + Val interface{} } +func (W _syscall_RoutingMessage) String() string { return fmt.Sprint(W.Val) } + // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_plan9_386.go b/stdlib/syscall/go1_14_syscall_plan9_386.go index 7fa2b9c8..54ccc729 100644 --- a/stdlib/syscall/go1_14_syscall_plan9_386.go +++ b/stdlib/syscall/go1_14_syscall_plan9_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -224,18 +225,24 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } diff --git a/stdlib/syscall/go1_14_syscall_plan9_amd64.go b/stdlib/syscall/go1_14_syscall_plan9_amd64.go index 7fa2b9c8..54ccc729 100644 --- a/stdlib/syscall/go1_14_syscall_plan9_amd64.go +++ b/stdlib/syscall/go1_14_syscall_plan9_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -224,18 +225,24 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } diff --git a/stdlib/syscall/go1_14_syscall_plan9_arm.go b/stdlib/syscall/go1_14_syscall_plan9_arm.go index 7fa2b9c8..54ccc729 100644 --- a/stdlib/syscall/go1_14_syscall_plan9_arm.go +++ b/stdlib/syscall/go1_14_syscall_plan9_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -224,18 +225,24 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } diff --git a/stdlib/syscall/go1_14_syscall_solaris_amd64.go b/stdlib/syscall/go1_14_syscall_solaris_amd64.go index 9756bbab..9499bd15 100644 --- a/stdlib/syscall/go1_14_syscall_solaris_amd64.go +++ b/stdlib/syscall/go1_14_syscall_solaris_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1478,22 +1479,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_windows_386.go b/stdlib/syscall/go1_14_syscall_windows_386.go index 9f041e33..d453c2d6 100644 --- a/stdlib/syscall/go1_14_syscall_windows_386.go +++ b/stdlib/syscall/go1_14_syscall_windows_386.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1016,22 +1017,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_windows_amd64.go b/stdlib/syscall/go1_14_syscall_windows_amd64.go index 9f041e33..d453c2d6 100644 --- a/stdlib/syscall/go1_14_syscall_windows_amd64.go +++ b/stdlib/syscall/go1_14_syscall_windows_amd64.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1016,22 +1017,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) } diff --git a/stdlib/syscall/go1_14_syscall_windows_arm.go b/stdlib/syscall/go1_14_syscall_windows_arm.go index 9f041e33..d453c2d6 100644 --- a/stdlib/syscall/go1_14_syscall_windows_arm.go +++ b/stdlib/syscall/go1_14_syscall_windows_arm.go @@ -5,6 +5,7 @@ package syscall import ( + "fmt" "go/constant" "go/token" "reflect" @@ -1016,22 +1017,31 @@ func init() { // _syscall_Conn is an interface wrapper for Conn type type _syscall_Conn struct { + Val interface{} WSyscallConn func() (syscall.RawConn, error) } +func (W _syscall_Conn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_Conn) SyscallConn() (syscall.RawConn, error) { return W.WSyscallConn() } // _syscall_RawConn is an interface wrapper for RawConn type type _syscall_RawConn struct { + Val interface{} WControl func(f func(fd uintptr)) error WRead func(f func(fd uintptr) (done bool)) error WWrite func(f func(fd uintptr) (done bool)) error } +func (W _syscall_RawConn) String() string { return fmt.Sprint(W.Val) } + func (W _syscall_RawConn) Control(f func(fd uintptr)) error { return W.WControl(f) } func (W _syscall_RawConn) Read(f func(fd uintptr) (done bool)) error { return W.WRead(f) } func (W _syscall_RawConn) Write(f func(fd uintptr) (done bool)) error { return W.WWrite(f) } // _syscall_Sockaddr is an interface wrapper for Sockaddr type type _syscall_Sockaddr struct { + Val interface{} } + +func (W _syscall_Sockaddr) String() string { return fmt.Sprint(W.Val) }