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