github.com/goplus/igop@v0.25.0/pkg/image/png/go117_export.go (about) 1 // export by github.com/goplus/igop/cmd/qexp 2 3 //go:build go1.17 && !go1.18 4 // +build go1.17,!go1.18 5 6 package png 7 8 import ( 9 q "image/png" 10 11 "go/constant" 12 "reflect" 13 14 "github.com/goplus/igop" 15 ) 16 17 func init() { 18 igop.RegisterPackage(&igop.Package{ 19 Name: "png", 20 Path: "image/png", 21 Deps: map[string]string{ 22 "bufio": "bufio", 23 "compress/zlib": "zlib", 24 "encoding/binary": "binary", 25 "fmt": "fmt", 26 "hash": "hash", 27 "hash/crc32": "crc32", 28 "image": "image", 29 "image/color": "color", 30 "io": "io", 31 "strconv": "strconv", 32 }, 33 Interfaces: map[string]reflect.Type{ 34 "EncoderBufferPool": reflect.TypeOf((*q.EncoderBufferPool)(nil)).Elem(), 35 }, 36 NamedTypes: map[string]reflect.Type{ 37 "CompressionLevel": reflect.TypeOf((*q.CompressionLevel)(nil)).Elem(), 38 "Encoder": reflect.TypeOf((*q.Encoder)(nil)).Elem(), 39 "EncoderBuffer": reflect.TypeOf((*q.EncoderBuffer)(nil)).Elem(), 40 "FormatError": reflect.TypeOf((*q.FormatError)(nil)).Elem(), 41 "UnsupportedError": reflect.TypeOf((*q.UnsupportedError)(nil)).Elem(), 42 }, 43 AliasTypes: map[string]reflect.Type{}, 44 Vars: map[string]reflect.Value{}, 45 Funcs: map[string]reflect.Value{ 46 "Decode": reflect.ValueOf(q.Decode), 47 "DecodeConfig": reflect.ValueOf(q.DecodeConfig), 48 "Encode": reflect.ValueOf(q.Encode), 49 }, 50 TypedConsts: map[string]igop.TypedConst{ 51 "BestCompression": {reflect.TypeOf(q.BestCompression), constant.MakeInt64(int64(q.BestCompression))}, 52 "BestSpeed": {reflect.TypeOf(q.BestSpeed), constant.MakeInt64(int64(q.BestSpeed))}, 53 "DefaultCompression": {reflect.TypeOf(q.DefaultCompression), constant.MakeInt64(int64(q.DefaultCompression))}, 54 "NoCompression": {reflect.TypeOf(q.NoCompression), constant.MakeInt64(int64(q.NoCompression))}, 55 }, 56 UntypedConsts: map[string]igop.UntypedConst{}, 57 }) 58 }