├── .gitignore
├── vendor
├── gopkg.in
│ └── yaml.v3
│ │ ├── go.mod
│ │ └── NOTICE
├── github.com
│ ├── traefik
│ │ └── yaegi
│ │ │ ├── stdlib
│ │ │ ├── stdlib_go1.16.go
│ │ │ ├── go1_16_embed.go
│ │ │ ├── go1_16_crypto_hmac.go
│ │ │ ├── go1_16_go_format.go
│ │ │ ├── go1_15_crypto_hmac.go
│ │ │ ├── go1_16_html.go
│ │ │ ├── go1_15_go_format.go
│ │ │ ├── go1_15_html.go
│ │ │ ├── go1_16_container_ring.go
│ │ │ ├── go1_15_container_ring.go
│ │ │ ├── go1_16_image_color_palette.go
│ │ │ ├── go1_15_image_color_palette.go
│ │ │ ├── go1_16_errors.go
│ │ │ ├── go1_15_errors.go
│ │ │ ├── go1_16_compress_bzip2.go
│ │ │ ├── go1_16_index_suffixarray.go
│ │ │ ├── go1_15_index_suffixarray.go
│ │ │ ├── go1_15_compress_bzip2.go
│ │ │ ├── go1_16_crypto_rand.go
│ │ │ ├── go1_15_crypto_rand.go
│ │ │ ├── go1_16_container_list.go
│ │ │ ├── go1_15_container_list.go
│ │ │ ├── go1_16_crypto_rc4.go
│ │ │ ├── go1_16_hash_maphash.go
│ │ │ ├── go1_15_hash_maphash.go
│ │ │ ├── go1_15_crypto_rc4.go
│ │ │ ├── go1_16_testing_fstest.go
│ │ │ ├── go1_16_hash_adler32.go
│ │ │ ├── go1_15_hash_adler32.go
│ │ │ ├── go1_15_os_signal.go
│ │ │ ├── go1_16_encoding_pem.go
│ │ │ ├── go1_15_encoding_pem.go
│ │ │ ├── go1_16_crypto_aes.go
│ │ │ ├── go1_16_net_http_cgi.go
│ │ │ ├── go1_15_net_http_cgi.go
│ │ │ ├── go1_16_go_importer.go
│ │ │ ├── go1_16_hash_fnv.go
│ │ │ ├── go1_15_crypto_aes.go
│ │ │ ├── go1_15_go_importer.go
│ │ │ ├── go1_15_hash_fnv.go
│ │ │ ├── go1_16_net_http_fcgi.go
│ │ │ ├── go1_15_net_http_fcgi.go
│ │ │ ├── go1_16_compress_lzw.go
│ │ │ ├── go1_16_crypto_md5.go
│ │ │ ├── go1_16_unicode_utf16.go
│ │ │ ├── go1_15_compress_lzw.go
│ │ │ ├── go1_15_unicode_utf16.go
│ │ │ ├── go1_15_crypto_md5.go
│ │ │ ├── go1_16_crypto_sha1.go
│ │ │ ├── go1_15_crypto_sha1.go
│ │ │ ├── go1_16_net_http_pprof.go
│ │ │ ├── go1_15_net_http_pprof.go
│ │ │ ├── go1_16_net_rpc_jsonrpc.go
│ │ │ ├── go1_16_os_signal.go
│ │ │ ├── go1_15_net_rpc_jsonrpc.go
│ │ │ ├── go1_16_mime_quotedprintable.go
│ │ │ ├── go1_15_mime_quotedprintable.go
│ │ │ ├── go1_16_crypto_des.go
│ │ │ ├── go1_15_crypto_des.go
│ │ │ ├── go1_16_encoding_ascii85.go
│ │ │ ├── go1_16_io_ioutil.go
│ │ │ ├── go1_15_io_ioutil.go
│ │ │ ├── go1_16_crypto_ecdsa.go
│ │ │ ├── go1_15_encoding_ascii85.go
│ │ │ ├── go1_15_crypto_ecdsa.go
│ │ │ ├── go1_16_crypto_subtle.go
│ │ │ ├── go1_16_path.go
│ │ │ ├── go1_15_crypto_subtle.go
│ │ │ ├── go1_15_path.go
│ │ │ ├── go1_16_go_scanner.go
│ │ │ ├── go1_15_go_scanner.go
│ │ │ ├── go1_16_crypto_sha256.go
│ │ │ ├── go1_15_crypto_sha256.go
│ │ │ ├── go1_16_go_printer.go
│ │ │ ├── go1_15_go_printer.go
│ │ │ ├── go1_15_testing_iotest.go
│ │ │ ├── go1_16_regexp.go
│ │ │ ├── go1_16_runtime_trace.go
│ │ │ ├── go1_15_regexp.go
│ │ │ ├── go1_15_runtime_trace.go
│ │ │ ├── go1_16_net_http_httptrace.go
│ │ │ ├── go1_15_net_http_httptrace.go
│ │ │ ├── go1_16_hash_crc64.go
│ │ │ ├── go1_16_encoding_csv.go
│ │ │ ├── go1_15_encoding_csv.go
│ │ │ ├── go1_15_hash_crc64.go
│ │ │ ├── go1_16_encoding_base32.go
│ │ │ ├── go1_16_net_mail.go
│ │ │ ├── go1_15_net_mail.go
│ │ │ ├── go1_15_encoding_base32.go
│ │ │ ├── go1_16_testing_iotest.go
│ │ │ ├── go1_16_net_http_httptest.go
│ │ │ ├── go1_16_debug_gosym.go
│ │ │ ├── go1_15_net_http_httptest.go
│ │ │ ├── go1_15_debug_gosym.go
│ │ │ ├── go1_16_text_tabwriter.go
│ │ │ ├── go1_15_text_tabwriter.go
│ │ │ ├── go1_16_mime.go
│ │ │ ├── go1_15_mime.go
│ │ │ ├── go1_16_encoding_hex.go
│ │ │ ├── go1_16_image_gif.go
│ │ │ ├── go1_15_encoding_hex.go
│ │ │ ├── go1_15_image_gif.go
│ │ │ ├── go1_16_os_user.go
│ │ │ ├── go1_15_os_user.go
│ │ │ ├── go1_16_encoding_base64.go
│ │ │ ├── go1_15_encoding_base64.go
│ │ │ ├── go1_16_go_parser.go
│ │ │ ├── go1_15_go_parser.go
│ │ │ ├── go1_16_crypto_ed25519.go
│ │ │ ├── go1_15_crypto_ed25519.go
│ │ │ ├── go1_16_crypto_x509_pkix.go
│ │ │ ├── go1_16_crypto_dsa.go
│ │ │ ├── go1_15_crypto_x509_pkix.go
│ │ │ ├── go1_16_debug_plan9obj.go
│ │ │ ├── go1_15_crypto_dsa.go
│ │ │ ├── go1_15_debug_plan9obj.go
│ │ │ ├── go1_16_hash_crc32.go
│ │ │ ├── go1_15_hash_crc32.go
│ │ │ ├── go1_16_sync.go
│ │ │ ├── go1_15_sync.go
│ │ │ ├── go1_16_crypto_sha512.go
│ │ │ ├── go1_16_runtime_debug.go
│ │ │ ├── go1_15_crypto_sha512.go
│ │ │ ├── go1_15_runtime_debug.go
│ │ │ ├── go1_16_runtime_pprof.go
│ │ │ ├── go1_15_runtime_pprof.go
│ │ │ ├── go1_16_net_url.go
│ │ │ ├── go1_15_net_url.go
│ │ │ ├── go1_16_net_http_cookiejar.go
│ │ │ ├── go1_15_net_http_cookiejar.go
│ │ │ ├── go1_16_go_build.go
│ │ │ ├── go1_15_go_build.go
│ │ │ ├── go1_15_text_template.go
│ │ │ ├── go1_16_net_textproto.go
│ │ │ ├── go1_16_compress_gzip.go
│ │ │ ├── go1_15_compress_gzip.go
│ │ │ ├── go1_15_net_textproto.go
│ │ │ ├── go1_16_testing_quick.go
│ │ │ ├── go1_15_testing_quick.go
│ │ │ ├── go1_16_text_template.go
│ │ │ ├── go1_16_go_doc.go
│ │ │ ├── go1_15_go_doc.go
│ │ │ ├── go1_16_image_jpeg.go
│ │ │ ├── go1_15_image_jpeg.go
│ │ │ ├── go1_16_expvar.go
│ │ │ ├── go1_16_net_smtp.go
│ │ │ ├── go1_15_expvar.go
│ │ │ ├── go1_15_net_smtp.go
│ │ │ ├── go1_16_container_heap.go
│ │ │ ├── go1_15_container_heap.go
│ │ │ ├── go1_16_archive_zip.go
│ │ │ ├── go1_16_math_cmplx.go
│ │ │ ├── go1_15_archive_zip.go
│ │ │ ├── go1_15_math_cmplx.go
│ │ │ ├── go1_16_encoding_gob.go
│ │ │ ├── go1_15_encoding_gob.go
│ │ │ ├── go1_16_unicode_utf8.go
│ │ │ ├── go1_15_unicode_utf8.go
│ │ │ ├── go1_16_image_png.go
│ │ │ └── go1_15_image_png.go
│ │ │ └── interp
│ │ │ ├── hooks.go
│ │ │ └── doc.go
│ ├── pkg
│ │ └── errors
│ │ │ ├── .travis.yml
│ │ │ ├── .gitignore
│ │ │ ├── appveyor.yml
│ │ │ ├── Makefile
│ │ │ ├── LICENSE
│ │ │ └── go113.go
│ ├── stretchr
│ │ └── testify
│ │ │ ├── require
│ │ │ ├── require_forward.go.tmpl
│ │ │ ├── require.go.tmpl
│ │ │ ├── forward_requirements.go
│ │ │ ├── doc.go
│ │ │ └── requirements.go
│ │ │ ├── assert
│ │ │ ├── assertion_format.go.tmpl
│ │ │ ├── assertion_forward.go.tmpl
│ │ │ ├── errors.go
│ │ │ ├── assertion_compare_legacy.go
│ │ │ ├── assertion_compare_can_convert.go
│ │ │ ├── forward_assertions.go
│ │ │ └── doc.go
│ │ │ └── LICENSE
│ ├── davecgh
│ │ └── go-spew
│ │ │ └── LICENSE
│ └── pmezard
│ │ └── go-difflib
│ │ └── LICENSE
├── go.uber.org
│ └── atomic
│ │ ├── go.mod
│ │ ├── .gitignore
│ │ ├── go.sum
│ │ ├── .codecov.yml
│ │ ├── LICENSE.txt
│ │ ├── doc.go
│ │ ├── value.go
│ │ ├── nocmp.go
│ │ ├── time_ext.go
│ │ ├── gen.go
│ │ └── error_ext.go
└── modules.txt
├── examples
├── render_readme
│ ├── README.md.tmpl
│ ├── README.md
│ └── main.go
├── evaluate_readme
│ ├── README.md
│ └── main.go
└── simple
│ └── simple.go
├── go.mod
├── .github
├── PULL_REQUEST_TEMPLATE.md
├── workflows
│ └── release-drafter.yml
├── dependabot.yml
├── FUNDING.yml
└── release-drafter.yml
├── codebuffer
├── cache_iterator.go
└── cache_iterator_test.go
├── LICENSE
├── output_buffer.go
└── import_symbol.go
/.gitignore:
--------------------------------------------------------------------------------
1 | /.idea
2 | /.vscode
3 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v3/go.mod:
--------------------------------------------------------------------------------
1 | module "gopkg.in/yaml.v3"
2 |
3 | require (
4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405
5 | )
6 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/stdlib_go1.16.go:
--------------------------------------------------------------------------------
1 | // +build go1.16
2 |
3 | package stdlib
4 |
5 | //go:generate ../internal/cmd/extract/extract embed testing/fstest
6 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/go.mod:
--------------------------------------------------------------------------------
1 | module go.uber.org/atomic
2 |
3 | require (
4 | github.com/davecgh/go-spew v1.1.1 // indirect
5 | github.com/stretchr/testify v1.3.0
6 | )
7 |
8 | go 1.13
9 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/.travis.yml:
--------------------------------------------------------------------------------
1 | language: go
2 | go_import_path: github.com/pkg/errors
3 | go:
4 | - 1.11.x
5 | - 1.12.x
6 | - 1.13.x
7 | - tip
8 |
9 | script:
10 | - make check
11 |
--------------------------------------------------------------------------------
/examples/render_readme/README.md.tmpl:
--------------------------------------------------------------------------------
1 | This example will render this readme file with the current time.
2 | See also the [README.md.tmpl](README.md.tmpl) file.
3 |
4 | Generated on <$ import "time" $><$ fmt.Print(time.Now()) $>.
--------------------------------------------------------------------------------
/examples/render_readme/README.md:
--------------------------------------------------------------------------------
1 | This example will render this readme file with the current time.
2 | See also the [README.md.tmpl](README.md.tmpl) file.
3 |
4 | Generated on 2020-10-02 12:17:20.561932639 +0200 CEST m=+0.006886883.
--------------------------------------------------------------------------------
/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/Eun/yaegi-template
2 |
3 | go 1.15
4 |
5 | require (
6 | github.com/pkg/errors v0.9.1
7 | github.com/stretchr/testify v1.8.2
8 | github.com/traefik/yaegi v0.9.21
9 | go.uber.org/atomic v1.9.0
10 | )
11 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/.gitignore:
--------------------------------------------------------------------------------
1 | /bin
2 | .DS_Store
3 | /vendor
4 | cover.html
5 | cover.out
6 | lint.log
7 |
8 | # Binaries
9 | *.test
10 |
11 | # Profiling output
12 | *.prof
13 |
14 | # Output of fossa analyzer
15 | /fossa
16 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/require_forward.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentWithoutT "a"}}
2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) {
3 | if h, ok := a.t.(tHelper); ok { h.Helper() }
4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentFormat}}
2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool {
3 | if h, ok := t.(tHelper); ok { h.Helper() }
4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.CommentWithoutT "a"}}
2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool {
3 | if h, ok := a.t.(tHelper); ok { h.Helper() }
4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}})
5 | }
6 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/require.go.tmpl:
--------------------------------------------------------------------------------
1 | {{.Comment}}
2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) {
3 | if h, ok := t.(tHelper); ok { h.Helper() }
4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return }
5 | t.FailNow()
6 | }
7 |
--------------------------------------------------------------------------------
/examples/evaluate_readme/README.md:
--------------------------------------------------------------------------------
1 | This example will find all golang code in this README.md file and run it.
2 | This can be useful to test if your examples in your readme actually work.
3 |
4 |
5 | ```go
6 | package main
7 |
8 | import "fmt"
9 |
10 | func main() {
11 | fmt.Println("Hello World")
12 | }
13 | ```
14 |
15 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_embed.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract embed'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "embed"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["embed/embed"] = map[string]reflect.Value{
14 | // type definitions
15 | "FS": reflect.ValueOf((*embed.FS)(nil)),
16 | }
17 | }
18 |
--------------------------------------------------------------------------------
/.github/PULL_REQUEST_TEMPLATE.md:
--------------------------------------------------------------------------------
1 | ## Description
2 |
3 | ## Problem
4 | A short description of the problem this PR is addressing.
5 |
6 | ## Solution
7 | A short description of the chosen method to resolve the problem
8 | with an overview of the logic and implementation details when needed.
9 |
10 | ## Notes
11 | Other notes that you want to share but do not fit into _Problem_ or _Solution_.
12 |
13 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/.gitignore:
--------------------------------------------------------------------------------
1 | # Compiled Object files, Static and Dynamic libs (Shared Objects)
2 | *.o
3 | *.a
4 | *.so
5 |
6 | # Folders
7 | _obj
8 | _test
9 |
10 | # Architecture specific extensions/prefixes
11 | *.[568vq]
12 | [568vq].out
13 |
14 | *.cgo1.go
15 | *.cgo2.c
16 | _cgo_defun.c
17 | _cgo_gotypes.go
18 | _cgo_export.*
19 |
20 | _testmain.go
21 |
22 | *.exe
23 | *.test
24 | *.prof
25 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/errors.go:
--------------------------------------------------------------------------------
1 | package assert
2 |
3 | import (
4 | "errors"
5 | )
6 |
7 | // AnError is an error instance useful for testing. If the code does not care
8 | // about error specifics, and only needs to return the error for example, this
9 | // error should be used to make the test code more readable.
10 | var AnError = errors.New("assert.AnError general error for testing")
11 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_hmac.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/hmac'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/hmac"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/hmac/hmac"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Equal": reflect.ValueOf(hmac.Equal),
16 | "New": reflect.ValueOf(hmac.New),
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_format.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/format'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/format"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/format/format"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Node": reflect.ValueOf(format.Node),
16 | "Source": reflect.ValueOf(format.Source),
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_hmac.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/hmac'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/hmac"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/hmac/hmac"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Equal": reflect.ValueOf(hmac.Equal),
16 | "New": reflect.ValueOf(hmac.New),
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_html.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract html'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "html"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["html/html"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "EscapeString": reflect.ValueOf(html.EscapeString),
16 | "UnescapeString": reflect.ValueOf(html.UnescapeString),
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_format.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/format'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/format"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/format/format"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Node": reflect.ValueOf(format.Node),
16 | "Source": reflect.ValueOf(format.Source),
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_html.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract html'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "html"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["html/html"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "EscapeString": reflect.ValueOf(html.EscapeString),
16 | "UnescapeString": reflect.ValueOf(html.UnescapeString),
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_ring.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract container/ring'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "container/ring"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["container/ring/ring"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New": reflect.ValueOf(ring.New),
16 |
17 | // type definitions
18 | "Ring": reflect.ValueOf((*ring.Ring)(nil)),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_ring.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract container/ring'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "container/ring"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["container/ring/ring"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New": reflect.ValueOf(ring.New),
16 |
17 | // type definitions
18 | "Ring": reflect.ValueOf((*ring.Ring)(nil)),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go:
--------------------------------------------------------------------------------
1 | //go:build !go1.17
2 | // +build !go1.17
3 |
4 | // TODO: once support for Go 1.16 is dropped, this file can be
5 | // merged/removed with assertion_compare_go1.17_test.go and
6 | // assertion_compare_can_convert.go
7 |
8 | package assert
9 |
10 | import "reflect"
11 |
12 | // Older versions of Go does not have the reflect.Value.CanConvert
13 | // method.
14 | func canConvert(value reflect.Value, to reflect.Type) bool {
15 | return false
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/assertion_compare_can_convert.go:
--------------------------------------------------------------------------------
1 | //go:build go1.17
2 | // +build go1.17
3 |
4 | // TODO: once support for Go 1.16 is dropped, this file can be
5 | // merged/removed with assertion_compare_go1.17_test.go and
6 | // assertion_compare_legacy.go
7 |
8 | package assert
9 |
10 | import "reflect"
11 |
12 | // Wrapper around reflect.Value.CanConvert, for compatibility
13 | // reasons.
14 | func canConvert(value reflect.Value, to reflect.Type) bool {
15 | return value.CanConvert(to)
16 | }
17 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_color_palette.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract image/color/palette'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "image/color/palette"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["image/color/palette/palette"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Plan9": reflect.ValueOf(&palette.Plan9).Elem(),
16 | "WebSafe": reflect.ValueOf(&palette.WebSafe).Elem(),
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color_palette.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract image/color/palette'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "image/color/palette"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["image/color/palette/palette"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Plan9": reflect.ValueOf(&palette.Plan9).Elem(),
16 | "WebSafe": reflect.ValueOf(&palette.WebSafe).Elem(),
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/.github/workflows/release-drafter.yml:
--------------------------------------------------------------------------------
1 | name: Release Drafter
2 | on:
3 | push:
4 | # branches to consider in the event; optional, defaults to all
5 | branches:
6 | - master
7 | jobs:
8 | update_release_draft:
9 | runs-on: ubuntu-latest
10 | steps:
11 | # Drafts your next Release notes as Pull Requests are merged into "master"
12 | - uses: release-drafter/release-drafter@v5
13 | with:
14 | config-name: release-drafter.yml
15 | env:
16 | GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/forward_assertions.go:
--------------------------------------------------------------------------------
1 | package assert
2 |
3 | // Assertions provides assertion methods around the
4 | // TestingT interface.
5 | type Assertions struct {
6 | t TestingT
7 | }
8 |
9 | // New makes a new Assertions object for the specified TestingT.
10 | func New(t TestingT) *Assertions {
11 | return &Assertions{
12 | t: t,
13 | }
14 | }
15 |
16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs"
17 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_errors.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract errors'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "errors"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["errors/errors"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "As": reflect.ValueOf(errors.As),
16 | "Is": reflect.ValueOf(errors.Is),
17 | "New": reflect.ValueOf(errors.New),
18 | "Unwrap": reflect.ValueOf(errors.Unwrap),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/forward_requirements.go:
--------------------------------------------------------------------------------
1 | package require
2 |
3 | // Assertions provides assertion methods around the
4 | // TestingT interface.
5 | type Assertions struct {
6 | t TestingT
7 | }
8 |
9 | // New makes a new Assertions object for the specified TestingT.
10 | func New(t TestingT) *Assertions {
11 | return &Assertions{
12 | t: t,
13 | }
14 | }
15 |
16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs"
17 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_errors.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract errors'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "errors"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["errors/errors"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "As": reflect.ValueOf(errors.As),
16 | "Is": reflect.ValueOf(errors.Is),
17 | "New": reflect.ValueOf(errors.New),
18 | "Unwrap": reflect.ValueOf(errors.Unwrap),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_bzip2.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract compress/bzip2'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "compress/bzip2"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["compress/bzip2/bzip2"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewReader": reflect.ValueOf(bzip2.NewReader),
16 |
17 | // type definitions
18 | "StructuralError": reflect.ValueOf((*bzip2.StructuralError)(nil)),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_index_suffixarray.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract index/suffixarray'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "index/suffixarray"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["index/suffixarray/suffixarray"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New": reflect.ValueOf(suffixarray.New),
16 |
17 | // type definitions
18 | "Index": reflect.ValueOf((*suffixarray.Index)(nil)),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_index_suffixarray.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract index/suffixarray'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "index/suffixarray"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["index/suffixarray/suffixarray"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New": reflect.ValueOf(suffixarray.New),
16 |
17 | // type definitions
18 | "Index": reflect.ValueOf((*suffixarray.Index)(nil)),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_bzip2.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract compress/bzip2'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "compress/bzip2"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["compress/bzip2/bzip2"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewReader": reflect.ValueOf(bzip2.NewReader),
16 |
17 | // type definitions
18 | "StructuralError": reflect.ValueOf((*bzip2.StructuralError)(nil)),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rand.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/rand"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/rand/rand"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Int": reflect.ValueOf(rand.Int),
16 | "Prime": reflect.ValueOf(rand.Prime),
17 | "Read": reflect.ValueOf(rand.Read),
18 | "Reader": reflect.ValueOf(&rand.Reader).Elem(),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rand.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/rand"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/rand/rand"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Int": reflect.ValueOf(rand.Int),
16 | "Prime": reflect.ValueOf(rand.Prime),
17 | "Read": reflect.ValueOf(rand.Read),
18 | "Reader": reflect.ValueOf(&rand.Reader).Elem(),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract container/list'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "container/list"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["container/list/list"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New": reflect.ValueOf(list.New),
16 |
17 | // type definitions
18 | "Element": reflect.ValueOf((*list.Element)(nil)),
19 | "List": reflect.ValueOf((*list.List)(nil)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_list.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract container/list'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "container/list"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["container/list/list"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New": reflect.ValueOf(list.New),
16 |
17 | // type definitions
18 | "Element": reflect.ValueOf((*list.Element)(nil)),
19 | "List": reflect.ValueOf((*list.List)(nil)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rc4.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/rc4'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/rc4"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/rc4/rc4"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewCipher": reflect.ValueOf(rc4.NewCipher),
16 |
17 | // type definitions
18 | "Cipher": reflect.ValueOf((*rc4.Cipher)(nil)),
19 | "KeySizeError": reflect.ValueOf((*rc4.KeySizeError)(nil)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_maphash.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/maphash'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "hash/maphash"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["hash/maphash/maphash"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "MakeSeed": reflect.ValueOf(maphash.MakeSeed),
16 |
17 | // type definitions
18 | "Hash": reflect.ValueOf((*maphash.Hash)(nil)),
19 | "Seed": reflect.ValueOf((*maphash.Seed)(nil)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_maphash.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/maphash'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "hash/maphash"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["hash/maphash/maphash"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "MakeSeed": reflect.ValueOf(maphash.MakeSeed),
16 |
17 | // type definitions
18 | "Hash": reflect.ValueOf((*maphash.Hash)(nil)),
19 | "Seed": reflect.ValueOf((*maphash.Seed)(nil)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rc4.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/rc4'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/rc4"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/rc4/rc4"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewCipher": reflect.ValueOf(rc4.NewCipher),
16 |
17 | // type definitions
18 | "Cipher": reflect.ValueOf((*rc4.Cipher)(nil)),
19 | "KeySizeError": reflect.ValueOf((*rc4.KeySizeError)(nil)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_fstest.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract testing/fstest'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "testing/fstest"
10 | )
11 |
12 | func init() {
13 | Symbols["testing/fstest/fstest"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "TestFS": reflect.ValueOf(fstest.TestFS),
16 |
17 | // type definitions
18 | "MapFS": reflect.ValueOf((*fstest.MapFS)(nil)),
19 | "MapFile": reflect.ValueOf((*fstest.MapFile)(nil)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_adler32.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/adler32'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "hash/adler32"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["hash/adler32/adler32"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Checksum": reflect.ValueOf(adler32.Checksum),
18 | "New": reflect.ValueOf(adler32.New),
19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_adler32.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/adler32'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "hash/adler32"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["hash/adler32/adler32"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Checksum": reflect.ValueOf(adler32.Checksum),
18 | "New": reflect.ValueOf(adler32.New),
19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_signal.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract os/signal'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "os/signal"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["os/signal/signal"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Ignore": reflect.ValueOf(signal.Ignore),
16 | "Ignored": reflect.ValueOf(signal.Ignored),
17 | "Notify": reflect.ValueOf(signal.Notify),
18 | "Reset": reflect.ValueOf(signal.Reset),
19 | "Stop": reflect.ValueOf(signal.Stop),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/gopkg.in/yaml.v3/NOTICE:
--------------------------------------------------------------------------------
1 | Copyright 2011-2016 Canonical Ltd.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License");
4 | you may not use this file except in compliance with the License.
5 | You may obtain a copy of the License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software
10 | distributed under the License is distributed on an "AS IS" BASIS,
11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 | See the License for the specific language governing permissions and
13 | limitations under the License.
14 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_pem.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/pem'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/pem"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/pem/pem"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Decode": reflect.ValueOf(pem.Decode),
16 | "Encode": reflect.ValueOf(pem.Encode),
17 | "EncodeToMemory": reflect.ValueOf(pem.EncodeToMemory),
18 |
19 | // type definitions
20 | "Block": reflect.ValueOf((*pem.Block)(nil)),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/modules.txt:
--------------------------------------------------------------------------------
1 | # github.com/davecgh/go-spew v1.1.1
2 | github.com/davecgh/go-spew/spew
3 | # github.com/pkg/errors v0.9.1
4 | ## explicit
5 | github.com/pkg/errors
6 | # github.com/pmezard/go-difflib v1.0.0
7 | github.com/pmezard/go-difflib/difflib
8 | # github.com/stretchr/testify v1.8.2
9 | ## explicit
10 | github.com/stretchr/testify/assert
11 | github.com/stretchr/testify/require
12 | # github.com/traefik/yaegi v0.9.21
13 | ## explicit
14 | github.com/traefik/yaegi/interp
15 | github.com/traefik/yaegi/stdlib
16 | # go.uber.org/atomic v1.9.0
17 | ## explicit
18 | go.uber.org/atomic
19 | # gopkg.in/yaml.v3 v3.0.1
20 | gopkg.in/yaml.v3
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_pem.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/pem'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/pem"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/pem/pem"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Decode": reflect.ValueOf(pem.Decode),
16 | "Encode": reflect.ValueOf(pem.Encode),
17 | "EncodeToMemory": reflect.ValueOf(pem.EncodeToMemory),
18 |
19 | // type definitions
20 | "Block": reflect.ValueOf((*pem.Block)(nil)),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_aes.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/aes'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/aes"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/aes/aes"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)),
18 | "NewCipher": reflect.ValueOf(aes.NewCipher),
19 |
20 | // type definitions
21 | "KeySizeError": reflect.ValueOf((*aes.KeySizeError)(nil)),
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cgi.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/cgi'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/cgi"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/cgi/cgi"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Request": reflect.ValueOf(cgi.Request),
16 | "RequestFromMap": reflect.ValueOf(cgi.RequestFromMap),
17 | "Serve": reflect.ValueOf(cgi.Serve),
18 |
19 | // type definitions
20 | "Handler": reflect.ValueOf((*cgi.Handler)(nil)),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cgi.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/cgi'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/cgi"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/cgi/cgi"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Request": reflect.ValueOf(cgi.Request),
16 | "RequestFromMap": reflect.ValueOf(cgi.RequestFromMap),
17 | "Serve": reflect.ValueOf(cgi.Serve),
18 |
19 | // type definitions
20 | "Handler": reflect.ValueOf((*cgi.Handler)(nil)),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_importer.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/importer'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/importer"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/importer/importer"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Default": reflect.ValueOf(importer.Default),
16 | "For": reflect.ValueOf(importer.For),
17 | "ForCompiler": reflect.ValueOf(importer.ForCompiler),
18 |
19 | // type definitions
20 | "Lookup": reflect.ValueOf((*importer.Lookup)(nil)),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_fnv.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/fnv'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "hash/fnv"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["hash/fnv/fnv"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New128": reflect.ValueOf(fnv.New128),
16 | "New128a": reflect.ValueOf(fnv.New128a),
17 | "New32": reflect.ValueOf(fnv.New32),
18 | "New32a": reflect.ValueOf(fnv.New32a),
19 | "New64": reflect.ValueOf(fnv.New64),
20 | "New64a": reflect.ValueOf(fnv.New64a),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_aes.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/aes'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/aes"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/aes/aes"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)),
18 | "NewCipher": reflect.ValueOf(aes.NewCipher),
19 |
20 | // type definitions
21 | "KeySizeError": reflect.ValueOf((*aes.KeySizeError)(nil)),
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_importer.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/importer'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/importer"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/importer/importer"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Default": reflect.ValueOf(importer.Default),
16 | "For": reflect.ValueOf(importer.For),
17 | "ForCompiler": reflect.ValueOf(importer.ForCompiler),
18 |
19 | // type definitions
20 | "Lookup": reflect.ValueOf((*importer.Lookup)(nil)),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_fnv.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/fnv'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "hash/fnv"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["hash/fnv/fnv"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New128": reflect.ValueOf(fnv.New128),
16 | "New128a": reflect.ValueOf(fnv.New128a),
17 | "New32": reflect.ValueOf(fnv.New32),
18 | "New32a": reflect.ValueOf(fnv.New32a),
19 | "New64": reflect.ValueOf(fnv.New64),
20 | "New64a": reflect.ValueOf(fnv.New64a),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_fcgi.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/fcgi'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/fcgi"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/fcgi/fcgi"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ErrConnClosed": reflect.ValueOf(&fcgi.ErrConnClosed).Elem(),
16 | "ErrRequestAborted": reflect.ValueOf(&fcgi.ErrRequestAborted).Elem(),
17 | "ProcessEnv": reflect.ValueOf(fcgi.ProcessEnv),
18 | "Serve": reflect.ValueOf(fcgi.Serve),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_fcgi.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/fcgi'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/fcgi"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/fcgi/fcgi"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ErrConnClosed": reflect.ValueOf(&fcgi.ErrConnClosed).Elem(),
16 | "ErrRequestAborted": reflect.ValueOf(&fcgi.ErrRequestAborted).Elem(),
17 | "ProcessEnv": reflect.ValueOf(fcgi.ProcessEnv),
18 | "Serve": reflect.ValueOf(fcgi.Serve),
19 | }
20 | }
21 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_lzw.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract compress/lzw'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "compress/lzw"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["compress/lzw/lzw"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "LSB": reflect.ValueOf(lzw.LSB),
16 | "MSB": reflect.ValueOf(lzw.MSB),
17 | "NewReader": reflect.ValueOf(lzw.NewReader),
18 | "NewWriter": reflect.ValueOf(lzw.NewWriter),
19 |
20 | // type definitions
21 | "Order": reflect.ValueOf((*lzw.Order)(nil)),
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_md5.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/md5'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/md5"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/md5/md5"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
18 | "New": reflect.ValueOf(md5.New),
19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)),
20 | "Sum": reflect.ValueOf(md5.Sum),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf16.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract unicode/utf16'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "unicode/utf16"
10 | )
11 |
12 | func init() {
13 | Symbols["unicode/utf16/utf16"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Decode": reflect.ValueOf(utf16.Decode),
16 | "DecodeRune": reflect.ValueOf(utf16.DecodeRune),
17 | "Encode": reflect.ValueOf(utf16.Encode),
18 | "EncodeRune": reflect.ValueOf(utf16.EncodeRune),
19 | "IsSurrogate": reflect.ValueOf(utf16.IsSurrogate),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/.github/dependabot.yml:
--------------------------------------------------------------------------------
1 | version: 2
2 | updates:
3 | - package-ecosystem: "gomod"
4 | open-pull-requests-limit: 10
5 | directory: "/"
6 | schedule:
7 | interval: daily
8 | time: "04:00"
9 | commit-message:
10 | prefix: "chore"
11 | labels:
12 | - "dependencies"
13 | - "go"
14 | - "chore"
15 |
16 | - package-ecosystem: "github-actions"
17 | open-pull-requests-limit: 10
18 | directory: "/"
19 | schedule:
20 | interval: "daily"
21 | time: "04:00"
22 | commit-message:
23 | prefix: "chore"
24 | labels:
25 | - "dependencies"
26 | - "github_actions"
27 | - "chore"
28 |
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_lzw.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract compress/lzw'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "compress/lzw"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["compress/lzw/lzw"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "LSB": reflect.ValueOf(lzw.LSB),
16 | "MSB": reflect.ValueOf(lzw.MSB),
17 | "NewReader": reflect.ValueOf(lzw.NewReader),
18 | "NewWriter": reflect.ValueOf(lzw.NewWriter),
19 |
20 | // type definitions
21 | "Order": reflect.ValueOf((*lzw.Order)(nil)),
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf16.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract unicode/utf16'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "unicode/utf16"
10 | )
11 |
12 | func init() {
13 | Symbols["unicode/utf16/utf16"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Decode": reflect.ValueOf(utf16.Decode),
16 | "DecodeRune": reflect.ValueOf(utf16.DecodeRune),
17 | "Encode": reflect.ValueOf(utf16.Encode),
18 | "EncodeRune": reflect.ValueOf(utf16.EncodeRune),
19 | "IsSurrogate": reflect.ValueOf(utf16.IsSurrogate),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_md5.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/md5'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/md5"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/md5/md5"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
18 | "New": reflect.ValueOf(md5.New),
19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)),
20 | "Sum": reflect.ValueOf(md5.Sum),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha1.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/sha1"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/sha1/sha1"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
18 | "New": reflect.ValueOf(sha1.New),
19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("20", token.INT, 0)),
20 | "Sum": reflect.ValueOf(sha1.Sum),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha1.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/sha1"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/sha1/sha1"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
18 | "New": reflect.ValueOf(sha1.New),
19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("20", token.INT, 0)),
20 | "Sum": reflect.ValueOf(sha1.Sum),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_pprof.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/pprof'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/pprof"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/pprof/pprof"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Cmdline": reflect.ValueOf(pprof.Cmdline),
16 | "Handler": reflect.ValueOf(pprof.Handler),
17 | "Index": reflect.ValueOf(pprof.Index),
18 | "Profile": reflect.ValueOf(pprof.Profile),
19 | "Symbol": reflect.ValueOf(pprof.Symbol),
20 | "Trace": reflect.ValueOf(pprof.Trace),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/examples/render_readme/main.go:
--------------------------------------------------------------------------------
1 | // read README.md.tmpl and find all ```go ``` snippets and run them
2 | package main
3 |
4 | import (
5 | "os"
6 |
7 | yaegi_template "github.com/Eun/yaegi-template"
8 | "github.com/traefik/yaegi/interp"
9 | "github.com/traefik/yaegi/stdlib"
10 | )
11 |
12 | func main() {
13 | template := yaegi_template.MustNew(interp.Options{}, stdlib.Symbols)
14 |
15 | in, err := os.Open("README.md.tmpl")
16 | if err != nil {
17 | panic(err)
18 | }
19 | defer in.Close()
20 |
21 | out, err := os.Create("README.md")
22 | if err != nil {
23 | panic(err)
24 | }
25 | defer out.Close()
26 |
27 | template.MustParse(in)
28 | template.MustExec(out, nil)
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_pprof.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/pprof'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/pprof"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/pprof/pprof"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Cmdline": reflect.ValueOf(pprof.Cmdline),
16 | "Handler": reflect.ValueOf(pprof.Handler),
17 | "Index": reflect.ValueOf(pprof.Index),
18 | "Profile": reflect.ValueOf(pprof.Profile),
19 | "Symbol": reflect.ValueOf(pprof.Symbol),
20 | "Trace": reflect.ValueOf(pprof.Trace),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_rpc_jsonrpc.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/rpc/jsonrpc'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/rpc/jsonrpc"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/rpc/jsonrpc/jsonrpc"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Dial": reflect.ValueOf(jsonrpc.Dial),
16 | "NewClient": reflect.ValueOf(jsonrpc.NewClient),
17 | "NewClientCodec": reflect.ValueOf(jsonrpc.NewClientCodec),
18 | "NewServerCodec": reflect.ValueOf(jsonrpc.NewServerCodec),
19 | "ServeConn": reflect.ValueOf(jsonrpc.ServeConn),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_os_signal.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract os/signal'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "os/signal"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["os/signal/signal"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Ignore": reflect.ValueOf(signal.Ignore),
16 | "Ignored": reflect.ValueOf(signal.Ignored),
17 | "Notify": reflect.ValueOf(signal.Notify),
18 | "NotifyContext": reflect.ValueOf(signal.NotifyContext),
19 | "Reset": reflect.ValueOf(signal.Reset),
20 | "Stop": reflect.ValueOf(signal.Stop),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc_jsonrpc.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/rpc/jsonrpc'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/rpc/jsonrpc"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/rpc/jsonrpc/jsonrpc"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Dial": reflect.ValueOf(jsonrpc.Dial),
16 | "NewClient": reflect.ValueOf(jsonrpc.NewClient),
17 | "NewClientCodec": reflect.ValueOf(jsonrpc.NewClientCodec),
18 | "NewServerCodec": reflect.ValueOf(jsonrpc.NewServerCodec),
19 | "ServeConn": reflect.ValueOf(jsonrpc.ServeConn),
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_mime_quotedprintable.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract mime/quotedprintable'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "mime/quotedprintable"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["mime/quotedprintable/quotedprintable"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewReader": reflect.ValueOf(quotedprintable.NewReader),
16 | "NewWriter": reflect.ValueOf(quotedprintable.NewWriter),
17 |
18 | // type definitions
19 | "Reader": reflect.ValueOf((*quotedprintable.Reader)(nil)),
20 | "Writer": reflect.ValueOf((*quotedprintable.Writer)(nil)),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/codebuffer/cache_iterator.go:
--------------------------------------------------------------------------------
1 | package codebuffer
2 |
3 | type cacheIterator struct {
4 | parts []*Part
5 | size int
6 | currentIndex int
7 | }
8 |
9 | func newCacheIterator(parts []*Part) (Iterator, error) {
10 | return &cacheIterator{
11 | parts: parts,
12 | size: len(parts),
13 | currentIndex: -1,
14 | }, nil
15 | }
16 |
17 | func (i *cacheIterator) Next() bool {
18 | i.currentIndex++
19 | return i.currentIndex < i.size
20 | }
21 |
22 | func (i *cacheIterator) Value() *Part {
23 | if i.currentIndex < 0 || i.currentIndex >= i.size {
24 | return nil
25 | }
26 | return i.parts[i.currentIndex]
27 | }
28 |
29 | func (i *cacheIterator) Error() error {
30 | return nil
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_quotedprintable.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract mime/quotedprintable'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "mime/quotedprintable"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["mime/quotedprintable/quotedprintable"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewReader": reflect.ValueOf(quotedprintable.NewReader),
16 | "NewWriter": reflect.ValueOf(quotedprintable.NewWriter),
17 |
18 | // type definitions
19 | "Reader": reflect.ValueOf((*quotedprintable.Reader)(nil)),
20 | "Writer": reflect.ValueOf((*quotedprintable.Writer)(nil)),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_des.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/des'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/des"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/des/des"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)),
18 | "NewCipher": reflect.ValueOf(des.NewCipher),
19 | "NewTripleDESCipher": reflect.ValueOf(des.NewTripleDESCipher),
20 |
21 | // type definitions
22 | "KeySizeError": reflect.ValueOf((*des.KeySizeError)(nil)),
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_des.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/des'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/des"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/des/des"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)),
18 | "NewCipher": reflect.ValueOf(des.NewCipher),
19 | "NewTripleDESCipher": reflect.ValueOf(des.NewTripleDESCipher),
20 |
21 | // type definitions
22 | "KeySizeError": reflect.ValueOf((*des.KeySizeError)(nil)),
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/go.sum:
--------------------------------------------------------------------------------
1 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
2 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
3 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
4 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
5 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
6 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
7 | github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
8 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
9 |
--------------------------------------------------------------------------------
/examples/evaluate_readme/main.go:
--------------------------------------------------------------------------------
1 | // read README.md and find all ```go ``` snippets and run them
2 | package main
3 |
4 | import (
5 | "io/ioutil"
6 |
7 | "os"
8 |
9 | yaegi_template "github.com/Eun/yaegi-template"
10 | "github.com/traefik/yaegi/interp"
11 | "github.com/traefik/yaegi/stdlib"
12 | )
13 |
14 | func main() {
15 | template := yaegi_template.MustNew(interp.Options{}, stdlib.Symbols)
16 | template.StartTokens = []rune("```go")
17 | template.EndTokens = []rune("```")
18 |
19 | f, err := os.Open("README.md")
20 | if err != nil {
21 | panic(err)
22 | }
23 | defer f.Close()
24 | template.MustParse(f)
25 | // since we only care for errors throw throw the output away
26 | template.MustExec(ioutil.Discard, nil)
27 | }
28 |
--------------------------------------------------------------------------------
/.github/FUNDING.yml:
--------------------------------------------------------------------------------
1 | # These are supported funding model platforms
2 |
3 | github: [Eun] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4 | patreon: # Replace with a single Patreon username
5 | open_collective: # Replace with a single Open Collective username
6 | ko_fi: # Replace with a single Ko-fi username
7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9 | liberapay: # Replace with a single Liberapay username
10 | issuehunt: eun # Replace with a single IssueHunt username
11 | otechie: # Replace with a single Otechie username
12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
13 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/interp/hooks.go:
--------------------------------------------------------------------------------
1 | package interp
2 |
3 | import "reflect"
4 |
5 | // convertFn is the signature of a symbol converter.
6 | type convertFn func(from, to reflect.Type) func(src, dest reflect.Value)
7 |
8 | // hooks are external symbol bindings.
9 | type hooks struct {
10 | convert []convertFn
11 | }
12 |
13 | func (h *hooks) Parse(m map[string]reflect.Value) {
14 | if con, ok := getConvertFn(m["convert"]); ok {
15 | h.convert = append(h.convert, con)
16 | }
17 | }
18 |
19 | func getConvertFn(v reflect.Value) (convertFn, bool) {
20 | if !v.IsValid() {
21 | return nil, false
22 | }
23 | fn, ok := v.Interface().(func(from, to reflect.Type) func(src, dest reflect.Value))
24 | if !ok {
25 | return nil, false
26 | }
27 | return fn, true
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_ascii85.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/ascii85'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/ascii85"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/ascii85/ascii85"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Decode": reflect.ValueOf(ascii85.Decode),
16 | "Encode": reflect.ValueOf(ascii85.Encode),
17 | "MaxEncodedLen": reflect.ValueOf(ascii85.MaxEncodedLen),
18 | "NewDecoder": reflect.ValueOf(ascii85.NewDecoder),
19 | "NewEncoder": reflect.ValueOf(ascii85.NewEncoder),
20 |
21 | // type definitions
22 | "CorruptInputError": reflect.ValueOf((*ascii85.CorruptInputError)(nil)),
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_io_ioutil.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract io/ioutil'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "io/ioutil"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["io/ioutil/ioutil"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Discard": reflect.ValueOf(&ioutil.Discard).Elem(),
16 | "NopCloser": reflect.ValueOf(ioutil.NopCloser),
17 | "ReadAll": reflect.ValueOf(ioutil.ReadAll),
18 | "ReadDir": reflect.ValueOf(ioutil.ReadDir),
19 | "ReadFile": reflect.ValueOf(ioutil.ReadFile),
20 | "TempDir": reflect.ValueOf(ioutil.TempDir),
21 | "TempFile": reflect.ValueOf(ioutil.TempFile),
22 | "WriteFile": reflect.ValueOf(ioutil.WriteFile),
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/appveyor.yml:
--------------------------------------------------------------------------------
1 | version: build-{build}.{branch}
2 |
3 | clone_folder: C:\gopath\src\github.com\pkg\errors
4 | shallow_clone: true # for startup speed
5 |
6 | environment:
7 | GOPATH: C:\gopath
8 |
9 | platform:
10 | - x64
11 |
12 | # http://www.appveyor.com/docs/installed-software
13 | install:
14 | # some helpful output for debugging builds
15 | - go version
16 | - go env
17 | # pre-installed MinGW at C:\MinGW is 32bit only
18 | # but MSYS2 at C:\msys64 has mingw64
19 | - set PATH=C:\msys64\mingw64\bin;%PATH%
20 | - gcc --version
21 | - g++ --version
22 |
23 | build_script:
24 | - go install -v ./...
25 |
26 | test_script:
27 | - set PATH=C:\gopath\bin;%PATH%
28 | - go test -v ./...
29 |
30 | #artifacts:
31 | # - path: '%GOPATH%\bin\*.exe'
32 | deploy: off
33 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_io_ioutil.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract io/ioutil'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "io/ioutil"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["io/ioutil/ioutil"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Discard": reflect.ValueOf(&ioutil.Discard).Elem(),
16 | "NopCloser": reflect.ValueOf(ioutil.NopCloser),
17 | "ReadAll": reflect.ValueOf(ioutil.ReadAll),
18 | "ReadDir": reflect.ValueOf(ioutil.ReadDir),
19 | "ReadFile": reflect.ValueOf(ioutil.ReadFile),
20 | "TempDir": reflect.ValueOf(ioutil.TempDir),
21 | "TempFile": reflect.ValueOf(ioutil.TempFile),
22 | "WriteFile": reflect.ValueOf(ioutil.WriteFile),
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ecdsa.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/ecdsa'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/ecdsa"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/ecdsa/ecdsa"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "GenerateKey": reflect.ValueOf(ecdsa.GenerateKey),
16 | "Sign": reflect.ValueOf(ecdsa.Sign),
17 | "SignASN1": reflect.ValueOf(ecdsa.SignASN1),
18 | "Verify": reflect.ValueOf(ecdsa.Verify),
19 | "VerifyASN1": reflect.ValueOf(ecdsa.VerifyASN1),
20 |
21 | // type definitions
22 | "PrivateKey": reflect.ValueOf((*ecdsa.PrivateKey)(nil)),
23 | "PublicKey": reflect.ValueOf((*ecdsa.PublicKey)(nil)),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_ascii85.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/ascii85'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/ascii85"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/ascii85/ascii85"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Decode": reflect.ValueOf(ascii85.Decode),
16 | "Encode": reflect.ValueOf(ascii85.Encode),
17 | "MaxEncodedLen": reflect.ValueOf(ascii85.MaxEncodedLen),
18 | "NewDecoder": reflect.ValueOf(ascii85.NewDecoder),
19 | "NewEncoder": reflect.ValueOf(ascii85.NewEncoder),
20 |
21 | // type definitions
22 | "CorruptInputError": reflect.ValueOf((*ascii85.CorruptInputError)(nil)),
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ecdsa.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/ecdsa'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/ecdsa"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/ecdsa/ecdsa"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "GenerateKey": reflect.ValueOf(ecdsa.GenerateKey),
16 | "Sign": reflect.ValueOf(ecdsa.Sign),
17 | "SignASN1": reflect.ValueOf(ecdsa.SignASN1),
18 | "Verify": reflect.ValueOf(ecdsa.Verify),
19 | "VerifyASN1": reflect.ValueOf(ecdsa.VerifyASN1),
20 |
21 | // type definitions
22 | "PrivateKey": reflect.ValueOf((*ecdsa.PrivateKey)(nil)),
23 | "PublicKey": reflect.ValueOf((*ecdsa.PublicKey)(nil)),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/examples/simple/simple.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "os"
5 |
6 | yaegi_template "github.com/Eun/yaegi-template"
7 | "github.com/traefik/yaegi/interp"
8 | "github.com/traefik/yaegi/stdlib"
9 | )
10 |
11 | func main() {
12 | template := yaegi_template.MustNew(interp.Options{}, stdlib.Symbols)
13 | template.MustParseString(`
14 |
15 | <$
16 | import "time"
17 | func GreetUser(name string) {
18 | fmt.Printf("Hello %s, it is %s", name, time.Now().Format(time.Kitchen))
19 | }
20 | $>
21 |
22 |
23 | <$
24 | if context.LoggedIn {
25 | GreetUser(context.UserName)
26 | }
27 | $>
28 |
29 |
30 | `)
31 |
32 | type Context struct {
33 | LoggedIn bool
34 | UserName string
35 | }
36 |
37 | template.MustExec(os.Stdout, &Context{
38 | LoggedIn: true,
39 | UserName: "Joe Doe",
40 | })
41 | }
42 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_subtle.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/subtle'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/subtle"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/subtle/subtle"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ConstantTimeByteEq": reflect.ValueOf(subtle.ConstantTimeByteEq),
16 | "ConstantTimeCompare": reflect.ValueOf(subtle.ConstantTimeCompare),
17 | "ConstantTimeCopy": reflect.ValueOf(subtle.ConstantTimeCopy),
18 | "ConstantTimeEq": reflect.ValueOf(subtle.ConstantTimeEq),
19 | "ConstantTimeLessOrEq": reflect.ValueOf(subtle.ConstantTimeLessOrEq),
20 | "ConstantTimeSelect": reflect.ValueOf(subtle.ConstantTimeSelect),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_path.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract path'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "path"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["path/path"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Base": reflect.ValueOf(path.Base),
16 | "Clean": reflect.ValueOf(path.Clean),
17 | "Dir": reflect.ValueOf(path.Dir),
18 | "ErrBadPattern": reflect.ValueOf(&path.ErrBadPattern).Elem(),
19 | "Ext": reflect.ValueOf(path.Ext),
20 | "IsAbs": reflect.ValueOf(path.IsAbs),
21 | "Join": reflect.ValueOf(path.Join),
22 | "Match": reflect.ValueOf(path.Match),
23 | "Split": reflect.ValueOf(path.Split),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_subtle.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/subtle'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/subtle"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/subtle/subtle"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ConstantTimeByteEq": reflect.ValueOf(subtle.ConstantTimeByteEq),
16 | "ConstantTimeCompare": reflect.ValueOf(subtle.ConstantTimeCompare),
17 | "ConstantTimeCopy": reflect.ValueOf(subtle.ConstantTimeCopy),
18 | "ConstantTimeEq": reflect.ValueOf(subtle.ConstantTimeEq),
19 | "ConstantTimeLessOrEq": reflect.ValueOf(subtle.ConstantTimeLessOrEq),
20 | "ConstantTimeSelect": reflect.ValueOf(subtle.ConstantTimeSelect),
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_path.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract path'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "path"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["path/path"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Base": reflect.ValueOf(path.Base),
16 | "Clean": reflect.ValueOf(path.Clean),
17 | "Dir": reflect.ValueOf(path.Dir),
18 | "ErrBadPattern": reflect.ValueOf(&path.ErrBadPattern).Elem(),
19 | "Ext": reflect.ValueOf(path.Ext),
20 | "IsAbs": reflect.ValueOf(path.IsAbs),
21 | "Join": reflect.ValueOf(path.Join),
22 | "Match": reflect.ValueOf(path.Match),
23 | "Split": reflect.ValueOf(path.Split),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/davecgh/go-spew/LICENSE:
--------------------------------------------------------------------------------
1 | ISC License
2 |
3 | Copyright (c) 2012-2016 Dave Collins
4 |
5 | Permission to use, copy, modify, and/or distribute this software for any
6 | purpose with or without fee is hereby granted, provided that the above
7 | copyright notice and this permission notice appear in all copies.
8 |
9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_scanner.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/scanner'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/scanner"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/scanner/scanner"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "PrintError": reflect.ValueOf(scanner.PrintError),
16 | "ScanComments": reflect.ValueOf(scanner.ScanComments),
17 |
18 | // type definitions
19 | "Error": reflect.ValueOf((*scanner.Error)(nil)),
20 | "ErrorHandler": reflect.ValueOf((*scanner.ErrorHandler)(nil)),
21 | "ErrorList": reflect.ValueOf((*scanner.ErrorList)(nil)),
22 | "Mode": reflect.ValueOf((*scanner.Mode)(nil)),
23 | "Scanner": reflect.ValueOf((*scanner.Scanner)(nil)),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_scanner.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/scanner'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/scanner"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/scanner/scanner"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "PrintError": reflect.ValueOf(scanner.PrintError),
16 | "ScanComments": reflect.ValueOf(scanner.ScanComments),
17 |
18 | // type definitions
19 | "Error": reflect.ValueOf((*scanner.Error)(nil)),
20 | "ErrorHandler": reflect.ValueOf((*scanner.ErrorHandler)(nil)),
21 | "ErrorList": reflect.ValueOf((*scanner.ErrorList)(nil)),
22 | "Mode": reflect.ValueOf((*scanner.Mode)(nil)),
23 | "Scanner": reflect.ValueOf((*scanner.Scanner)(nil)),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha256.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/sha256"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/sha256/sha256"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
18 | "New": reflect.ValueOf(sha256.New),
19 | "New224": reflect.ValueOf(sha256.New224),
20 | "Size": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
21 | "Size224": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)),
22 | "Sum224": reflect.ValueOf(sha256.Sum224),
23 | "Sum256": reflect.ValueOf(sha256.Sum256),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha256.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/sha256"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/sha256/sha256"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
18 | "New": reflect.ValueOf(sha256.New),
19 | "New224": reflect.ValueOf(sha256.New224),
20 | "Size": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
21 | "Size224": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)),
22 | "Sum224": reflect.ValueOf(sha256.Sum224),
23 | "Sum256": reflect.ValueOf(sha256.Sum256),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_printer.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/printer'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/printer"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/printer/printer"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Fprint": reflect.ValueOf(printer.Fprint),
16 | "RawFormat": reflect.ValueOf(printer.RawFormat),
17 | "SourcePos": reflect.ValueOf(printer.SourcePos),
18 | "TabIndent": reflect.ValueOf(printer.TabIndent),
19 | "UseSpaces": reflect.ValueOf(printer.UseSpaces),
20 |
21 | // type definitions
22 | "CommentedNode": reflect.ValueOf((*printer.CommentedNode)(nil)),
23 | "Config": reflect.ValueOf((*printer.Config)(nil)),
24 | "Mode": reflect.ValueOf((*printer.Mode)(nil)),
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_printer.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/printer'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/printer"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/printer/printer"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Fprint": reflect.ValueOf(printer.Fprint),
16 | "RawFormat": reflect.ValueOf(printer.RawFormat),
17 | "SourcePos": reflect.ValueOf(printer.SourcePos),
18 | "TabIndent": reflect.ValueOf(printer.TabIndent),
19 | "UseSpaces": reflect.ValueOf(printer.UseSpaces),
20 |
21 | // type definitions
22 | "CommentedNode": reflect.ValueOf((*printer.CommentedNode)(nil)),
23 | "Config": reflect.ValueOf((*printer.Config)(nil)),
24 | "Mode": reflect.ValueOf((*printer.Mode)(nil)),
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_iotest.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract testing/iotest'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "testing/iotest"
10 | )
11 |
12 | func init() {
13 | Symbols["testing/iotest/iotest"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "DataErrReader": reflect.ValueOf(iotest.DataErrReader),
16 | "ErrTimeout": reflect.ValueOf(&iotest.ErrTimeout).Elem(),
17 | "HalfReader": reflect.ValueOf(iotest.HalfReader),
18 | "NewReadLogger": reflect.ValueOf(iotest.NewReadLogger),
19 | "NewWriteLogger": reflect.ValueOf(iotest.NewWriteLogger),
20 | "OneByteReader": reflect.ValueOf(iotest.OneByteReader),
21 | "TimeoutReader": reflect.ValueOf(iotest.TimeoutReader),
22 | "TruncateWriter": reflect.ValueOf(iotest.TruncateWriter),
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/.github/release-drafter.yml:
--------------------------------------------------------------------------------
1 | name-template: 'v$RESOLVED_VERSION'
2 | tag-template: 'v$RESOLVED_VERSION'
3 | categories:
4 | - title: '🚀 Features'
5 | label: 'feature'
6 | - title: '🐛 Bug Fixes'
7 | label: 'fix'
8 | - title: '🧰 Maintenance'
9 | label: 'chore'
10 | change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
11 | change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
12 | version-resolver:
13 | major:
14 | labels:
15 | - 'major'
16 | minor:
17 | labels:
18 | - 'minor'
19 | patch:
20 | labels:
21 | - 'patch'
22 | default: patch
23 | autolabeler:
24 | - label: 'feature'
25 | title:
26 | - '/^feat/i'
27 | - '/^feature/i'
28 | - label: 'fix'
29 | title:
30 | - '/^fix/i'
31 | - label: 'chore'
32 | title:
33 | - '/^chore/i'
34 | template: |
35 | ## Changes
36 |
37 | $CHANGES
38 |
39 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_regexp.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract regexp'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "regexp"
10 | )
11 |
12 | func init() {
13 | Symbols["regexp/regexp"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Compile": reflect.ValueOf(regexp.Compile),
16 | "CompilePOSIX": reflect.ValueOf(regexp.CompilePOSIX),
17 | "Match": reflect.ValueOf(regexp.Match),
18 | "MatchReader": reflect.ValueOf(regexp.MatchReader),
19 | "MatchString": reflect.ValueOf(regexp.MatchString),
20 | "MustCompile": reflect.ValueOf(regexp.MustCompile),
21 | "MustCompilePOSIX": reflect.ValueOf(regexp.MustCompilePOSIX),
22 | "QuoteMeta": reflect.ValueOf(regexp.QuoteMeta),
23 |
24 | // type definitions
25 | "Regexp": reflect.ValueOf((*regexp.Regexp)(nil)),
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_trace.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "runtime/trace"
10 | )
11 |
12 | func init() {
13 | Symbols["runtime/trace/trace"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "IsEnabled": reflect.ValueOf(trace.IsEnabled),
16 | "Log": reflect.ValueOf(trace.Log),
17 | "Logf": reflect.ValueOf(trace.Logf),
18 | "NewTask": reflect.ValueOf(trace.NewTask),
19 | "Start": reflect.ValueOf(trace.Start),
20 | "StartRegion": reflect.ValueOf(trace.StartRegion),
21 | "Stop": reflect.ValueOf(trace.Stop),
22 | "WithRegion": reflect.ValueOf(trace.WithRegion),
23 |
24 | // type definitions
25 | "Region": reflect.ValueOf((*trace.Region)(nil)),
26 | "Task": reflect.ValueOf((*trace.Task)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract regexp'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "regexp"
10 | )
11 |
12 | func init() {
13 | Symbols["regexp/regexp"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Compile": reflect.ValueOf(regexp.Compile),
16 | "CompilePOSIX": reflect.ValueOf(regexp.CompilePOSIX),
17 | "Match": reflect.ValueOf(regexp.Match),
18 | "MatchReader": reflect.ValueOf(regexp.MatchReader),
19 | "MatchString": reflect.ValueOf(regexp.MatchString),
20 | "MustCompile": reflect.ValueOf(regexp.MustCompile),
21 | "MustCompilePOSIX": reflect.ValueOf(regexp.MustCompilePOSIX),
22 | "QuoteMeta": reflect.ValueOf(regexp.QuoteMeta),
23 |
24 | // type definitions
25 | "Regexp": reflect.ValueOf((*regexp.Regexp)(nil)),
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_trace.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "runtime/trace"
10 | )
11 |
12 | func init() {
13 | Symbols["runtime/trace/trace"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "IsEnabled": reflect.ValueOf(trace.IsEnabled),
16 | "Log": reflect.ValueOf(trace.Log),
17 | "Logf": reflect.ValueOf(trace.Logf),
18 | "NewTask": reflect.ValueOf(trace.NewTask),
19 | "Start": reflect.ValueOf(trace.Start),
20 | "StartRegion": reflect.ValueOf(trace.StartRegion),
21 | "Stop": reflect.ValueOf(trace.Stop),
22 | "WithRegion": reflect.ValueOf(trace.WithRegion),
23 |
24 | // type definitions
25 | "Region": reflect.ValueOf((*trace.Region)(nil)),
26 | "Task": reflect.ValueOf((*trace.Task)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptrace.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/httptrace'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/httptrace"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/httptrace/httptrace"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ContextClientTrace": reflect.ValueOf(httptrace.ContextClientTrace),
16 | "WithClientTrace": reflect.ValueOf(httptrace.WithClientTrace),
17 |
18 | // type definitions
19 | "ClientTrace": reflect.ValueOf((*httptrace.ClientTrace)(nil)),
20 | "DNSDoneInfo": reflect.ValueOf((*httptrace.DNSDoneInfo)(nil)),
21 | "DNSStartInfo": reflect.ValueOf((*httptrace.DNSStartInfo)(nil)),
22 | "GotConnInfo": reflect.ValueOf((*httptrace.GotConnInfo)(nil)),
23 | "WroteRequestInfo": reflect.ValueOf((*httptrace.WroteRequestInfo)(nil)),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptrace.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/httptrace'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/httptrace"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/httptrace/httptrace"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ContextClientTrace": reflect.ValueOf(httptrace.ContextClientTrace),
16 | "WithClientTrace": reflect.ValueOf(httptrace.WithClientTrace),
17 |
18 | // type definitions
19 | "ClientTrace": reflect.ValueOf((*httptrace.ClientTrace)(nil)),
20 | "DNSDoneInfo": reflect.ValueOf((*httptrace.DNSDoneInfo)(nil)),
21 | "DNSStartInfo": reflect.ValueOf((*httptrace.DNSStartInfo)(nil)),
22 | "GotConnInfo": reflect.ValueOf((*httptrace.GotConnInfo)(nil)),
23 | "WroteRequestInfo": reflect.ValueOf((*httptrace.WroteRequestInfo)(nil)),
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc64.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "hash/crc64"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["hash/crc64/crc64"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Checksum": reflect.ValueOf(crc64.Checksum),
18 | "ECMA": reflect.ValueOf(constant.MakeFromLiteral("14514072000185962306", token.INT, 0)),
19 | "ISO": reflect.ValueOf(constant.MakeFromLiteral("15564440312192434176", token.INT, 0)),
20 | "MakeTable": reflect.ValueOf(crc64.MakeTable),
21 | "New": reflect.ValueOf(crc64.New),
22 | "Size": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)),
23 | "Update": reflect.ValueOf(crc64.Update),
24 |
25 | // type definitions
26 | "Table": reflect.ValueOf((*crc64.Table)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_csv.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/csv'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/csv"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/csv/csv"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ErrBareQuote": reflect.ValueOf(&csv.ErrBareQuote).Elem(),
16 | "ErrFieldCount": reflect.ValueOf(&csv.ErrFieldCount).Elem(),
17 | "ErrQuote": reflect.ValueOf(&csv.ErrQuote).Elem(),
18 | "ErrTrailingComma": reflect.ValueOf(&csv.ErrTrailingComma).Elem(),
19 | "NewReader": reflect.ValueOf(csv.NewReader),
20 | "NewWriter": reflect.ValueOf(csv.NewWriter),
21 |
22 | // type definitions
23 | "ParseError": reflect.ValueOf((*csv.ParseError)(nil)),
24 | "Reader": reflect.ValueOf((*csv.Reader)(nil)),
25 | "Writer": reflect.ValueOf((*csv.Writer)(nil)),
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/.codecov.yml:
--------------------------------------------------------------------------------
1 | coverage:
2 | range: 80..100
3 | round: down
4 | precision: 2
5 |
6 | status:
7 | project: # measuring the overall project coverage
8 | default: # context, you can create multiple ones with custom titles
9 | enabled: yes # must be yes|true to enable this status
10 | target: 100 # specify the target coverage for each commit status
11 | # option: "auto" (must increase from parent commit or pull request base)
12 | # option: "X%" a static target percentage to hit
13 | if_not_found: success # if parent is not found report status as success, error, or failure
14 | if_ci_failed: error # if ci fails report status as success, error, or failure
15 |
16 | # Also update COVER_IGNORE_PKGS in the Makefile.
17 | ignore:
18 | - /internal/gen-atomicint/
19 | - /internal/gen-valuewrapper/
20 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_csv.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/csv'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/csv"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/csv/csv"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ErrBareQuote": reflect.ValueOf(&csv.ErrBareQuote).Elem(),
16 | "ErrFieldCount": reflect.ValueOf(&csv.ErrFieldCount).Elem(),
17 | "ErrQuote": reflect.ValueOf(&csv.ErrQuote).Elem(),
18 | "ErrTrailingComma": reflect.ValueOf(&csv.ErrTrailingComma).Elem(),
19 | "NewReader": reflect.ValueOf(csv.NewReader),
20 | "NewWriter": reflect.ValueOf(csv.NewWriter),
21 |
22 | // type definitions
23 | "ParseError": reflect.ValueOf((*csv.ParseError)(nil)),
24 | "Reader": reflect.ValueOf((*csv.Reader)(nil)),
25 | "Writer": reflect.ValueOf((*csv.Writer)(nil)),
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc64.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "hash/crc64"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["hash/crc64/crc64"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Checksum": reflect.ValueOf(crc64.Checksum),
18 | "ECMA": reflect.ValueOf(constant.MakeFromLiteral("14514072000185962306", token.INT, 0)),
19 | "ISO": reflect.ValueOf(constant.MakeFromLiteral("15564440312192434176", token.INT, 0)),
20 | "MakeTable": reflect.ValueOf(crc64.MakeTable),
21 | "New": reflect.ValueOf(crc64.New),
22 | "Size": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)),
23 | "Update": reflect.ValueOf(crc64.Update),
24 |
25 | // type definitions
26 | "Table": reflect.ValueOf((*crc64.Table)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base32.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/base32'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/base32"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/base32/base32"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "HexEncoding": reflect.ValueOf(&base32.HexEncoding).Elem(),
16 | "NewDecoder": reflect.ValueOf(base32.NewDecoder),
17 | "NewEncoder": reflect.ValueOf(base32.NewEncoder),
18 | "NewEncoding": reflect.ValueOf(base32.NewEncoding),
19 | "NoPadding": reflect.ValueOf(base32.NoPadding),
20 | "StdEncoding": reflect.ValueOf(&base32.StdEncoding).Elem(),
21 | "StdPadding": reflect.ValueOf(base32.StdPadding),
22 |
23 | // type definitions
24 | "CorruptInputError": reflect.ValueOf((*base32.CorruptInputError)(nil)),
25 | "Encoding": reflect.ValueOf((*base32.Encoding)(nil)),
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_mail.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/mail'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/mail"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/mail/mail"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ErrHeaderNotPresent": reflect.ValueOf(&mail.ErrHeaderNotPresent).Elem(),
16 | "ParseAddress": reflect.ValueOf(mail.ParseAddress),
17 | "ParseAddressList": reflect.ValueOf(mail.ParseAddressList),
18 | "ParseDate": reflect.ValueOf(mail.ParseDate),
19 | "ReadMessage": reflect.ValueOf(mail.ReadMessage),
20 |
21 | // type definitions
22 | "Address": reflect.ValueOf((*mail.Address)(nil)),
23 | "AddressParser": reflect.ValueOf((*mail.AddressParser)(nil)),
24 | "Header": reflect.ValueOf((*mail.Header)(nil)),
25 | "Message": reflect.ValueOf((*mail.Message)(nil)),
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_mail.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/mail'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/mail"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/mail/mail"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ErrHeaderNotPresent": reflect.ValueOf(&mail.ErrHeaderNotPresent).Elem(),
16 | "ParseAddress": reflect.ValueOf(mail.ParseAddress),
17 | "ParseAddressList": reflect.ValueOf(mail.ParseAddressList),
18 | "ParseDate": reflect.ValueOf(mail.ParseDate),
19 | "ReadMessage": reflect.ValueOf(mail.ReadMessage),
20 |
21 | // type definitions
22 | "Address": reflect.ValueOf((*mail.Address)(nil)),
23 | "AddressParser": reflect.ValueOf((*mail.AddressParser)(nil)),
24 | "Header": reflect.ValueOf((*mail.Header)(nil)),
25 | "Message": reflect.ValueOf((*mail.Message)(nil)),
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base32.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/base32'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/base32"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/base32/base32"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "HexEncoding": reflect.ValueOf(&base32.HexEncoding).Elem(),
16 | "NewDecoder": reflect.ValueOf(base32.NewDecoder),
17 | "NewEncoder": reflect.ValueOf(base32.NewEncoder),
18 | "NewEncoding": reflect.ValueOf(base32.NewEncoding),
19 | "NoPadding": reflect.ValueOf(base32.NoPadding),
20 | "StdEncoding": reflect.ValueOf(&base32.StdEncoding).Elem(),
21 | "StdPadding": reflect.ValueOf(base32.StdPadding),
22 |
23 | // type definitions
24 | "CorruptInputError": reflect.ValueOf((*base32.CorruptInputError)(nil)),
25 | "Encoding": reflect.ValueOf((*base32.Encoding)(nil)),
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_iotest.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract testing/iotest'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "testing/iotest"
10 | )
11 |
12 | func init() {
13 | Symbols["testing/iotest/iotest"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "DataErrReader": reflect.ValueOf(iotest.DataErrReader),
16 | "ErrReader": reflect.ValueOf(iotest.ErrReader),
17 | "ErrTimeout": reflect.ValueOf(&iotest.ErrTimeout).Elem(),
18 | "HalfReader": reflect.ValueOf(iotest.HalfReader),
19 | "NewReadLogger": reflect.ValueOf(iotest.NewReadLogger),
20 | "NewWriteLogger": reflect.ValueOf(iotest.NewWriteLogger),
21 | "OneByteReader": reflect.ValueOf(iotest.OneByteReader),
22 | "TestReader": reflect.ValueOf(iotest.TestReader),
23 | "TimeoutReader": reflect.ValueOf(iotest.TimeoutReader),
24 | "TruncateWriter": reflect.ValueOf(iotest.TruncateWriter),
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/doc.go:
--------------------------------------------------------------------------------
1 | // Package require implements the same assertions as the `assert` package but
2 | // stops test execution when a test fails.
3 | //
4 | // Example Usage
5 | //
6 | // The following is a complete example using require in a standard test function:
7 | // import (
8 | // "testing"
9 | // "github.com/stretchr/testify/require"
10 | // )
11 | //
12 | // func TestSomething(t *testing.T) {
13 | //
14 | // var a string = "Hello"
15 | // var b string = "Hello"
16 | //
17 | // require.Equal(t, a, b, "The two words should be the same.")
18 | //
19 | // }
20 | //
21 | // Assertions
22 | //
23 | // The `require` package have same global functions as in the `assert` package,
24 | // but instead of returning a boolean result they call `t.FailNow()`.
25 | //
26 | // Every assertion function also takes an optional string message as the final argument,
27 | // allowing custom error messages to be appended to the message the assertion method outputs.
28 | package require
29 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2020 Tobias Salzmann
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/output_buffer.go:
--------------------------------------------------------------------------------
1 | package yaegi_template
2 |
3 | import (
4 | "bytes"
5 |
6 | "go.uber.org/atomic"
7 | )
8 |
9 | type outputBuffer struct {
10 | buf *bytes.Buffer
11 | discardWrites *atomic.Bool
12 | size uint64
13 | }
14 |
15 | func newOutputBuffer(discardWrites bool) *outputBuffer {
16 | return &outputBuffer{
17 | buf: bytes.NewBuffer(nil),
18 | discardWrites: atomic.NewBool(discardWrites),
19 | size: 0,
20 | }
21 | }
22 |
23 | func (ob *outputBuffer) Write(p []byte) (int, error) {
24 | if ob.discardWrites.Load() {
25 | return len(p), nil
26 | }
27 | n, err := ob.buf.Write(p)
28 | if n > 0 {
29 | ob.size += uint64(n)
30 | }
31 | return n, err
32 | }
33 |
34 | func (ob *outputBuffer) Reset() {
35 | ob.buf.Reset()
36 | ob.size = 0
37 | }
38 |
39 | func (ob *outputBuffer) Bytes() []byte {
40 | return ob.buf.Bytes()
41 | }
42 |
43 | func (ob *outputBuffer) DiscardWrites(v bool) {
44 | ob.discardWrites.Store(v)
45 | }
46 |
47 | func (ob *outputBuffer) Length() uint64 {
48 | return ob.size
49 | }
50 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptest.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/httptest'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "net/http/httptest"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["net/http/httptest/httptest"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "DefaultRemoteAddr": reflect.ValueOf(constant.MakeFromLiteral("\"1.2.3.4\"", token.STRING, 0)),
18 | "NewRecorder": reflect.ValueOf(httptest.NewRecorder),
19 | "NewRequest": reflect.ValueOf(httptest.NewRequest),
20 | "NewServer": reflect.ValueOf(httptest.NewServer),
21 | "NewTLSServer": reflect.ValueOf(httptest.NewTLSServer),
22 | "NewUnstartedServer": reflect.ValueOf(httptest.NewUnstartedServer),
23 |
24 | // type definitions
25 | "ResponseRecorder": reflect.ValueOf((*httptest.ResponseRecorder)(nil)),
26 | "Server": reflect.ValueOf((*httptest.Server)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_gosym.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract debug/gosym'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "debug/gosym"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["debug/gosym/gosym"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewLineTable": reflect.ValueOf(gosym.NewLineTable),
16 | "NewTable": reflect.ValueOf(gosym.NewTable),
17 |
18 | // type definitions
19 | "DecodingError": reflect.ValueOf((*gosym.DecodingError)(nil)),
20 | "Func": reflect.ValueOf((*gosym.Func)(nil)),
21 | "LineTable": reflect.ValueOf((*gosym.LineTable)(nil)),
22 | "Obj": reflect.ValueOf((*gosym.Obj)(nil)),
23 | "Sym": reflect.ValueOf((*gosym.Sym)(nil)),
24 | "Table": reflect.ValueOf((*gosym.Table)(nil)),
25 | "UnknownFileError": reflect.ValueOf((*gosym.UnknownFileError)(nil)),
26 | "UnknownLineError": reflect.ValueOf((*gosym.UnknownLineError)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptest.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/httptest'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "net/http/httptest"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["net/http/httptest/httptest"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "DefaultRemoteAddr": reflect.ValueOf(constant.MakeFromLiteral("\"1.2.3.4\"", token.STRING, 0)),
18 | "NewRecorder": reflect.ValueOf(httptest.NewRecorder),
19 | "NewRequest": reflect.ValueOf(httptest.NewRequest),
20 | "NewServer": reflect.ValueOf(httptest.NewServer),
21 | "NewTLSServer": reflect.ValueOf(httptest.NewTLSServer),
22 | "NewUnstartedServer": reflect.ValueOf(httptest.NewUnstartedServer),
23 |
24 | // type definitions
25 | "ResponseRecorder": reflect.ValueOf((*httptest.ResponseRecorder)(nil)),
26 | "Server": reflect.ValueOf((*httptest.Server)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_gosym.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract debug/gosym'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "debug/gosym"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["debug/gosym/gosym"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewLineTable": reflect.ValueOf(gosym.NewLineTable),
16 | "NewTable": reflect.ValueOf(gosym.NewTable),
17 |
18 | // type definitions
19 | "DecodingError": reflect.ValueOf((*gosym.DecodingError)(nil)),
20 | "Func": reflect.ValueOf((*gosym.Func)(nil)),
21 | "LineTable": reflect.ValueOf((*gosym.LineTable)(nil)),
22 | "Obj": reflect.ValueOf((*gosym.Obj)(nil)),
23 | "Sym": reflect.ValueOf((*gosym.Sym)(nil)),
24 | "Table": reflect.ValueOf((*gosym.Table)(nil)),
25 | "UnknownFileError": reflect.ValueOf((*gosym.UnknownFileError)(nil)),
26 | "UnknownLineError": reflect.ValueOf((*gosym.UnknownLineError)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/Makefile:
--------------------------------------------------------------------------------
1 | PKGS := github.com/pkg/errors
2 | SRCDIRS := $(shell go list -f '{{.Dir}}' $(PKGS))
3 | GO := go
4 |
5 | check: test vet gofmt misspell unconvert staticcheck ineffassign unparam
6 |
7 | test:
8 | $(GO) test $(PKGS)
9 |
10 | vet: | test
11 | $(GO) vet $(PKGS)
12 |
13 | staticcheck:
14 | $(GO) get honnef.co/go/tools/cmd/staticcheck
15 | staticcheck -checks all $(PKGS)
16 |
17 | misspell:
18 | $(GO) get github.com/client9/misspell/cmd/misspell
19 | misspell \
20 | -locale GB \
21 | -error \
22 | *.md *.go
23 |
24 | unconvert:
25 | $(GO) get github.com/mdempsky/unconvert
26 | unconvert -v $(PKGS)
27 |
28 | ineffassign:
29 | $(GO) get github.com/gordonklaus/ineffassign
30 | find $(SRCDIRS) -name '*.go' | xargs ineffassign
31 |
32 | pedantic: check errcheck
33 |
34 | unparam:
35 | $(GO) get mvdan.cc/unparam
36 | unparam ./...
37 |
38 | errcheck:
39 | $(GO) get github.com/kisielk/errcheck
40 | errcheck $(PKGS)
41 |
42 | gofmt:
43 | @echo Checking code is gofmted
44 | @test -z "$(shell gofmt -s -l -d -e $(SRCDIRS) | tee /dev/stderr)"
45 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_tabwriter.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract text/tabwriter'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "reflect"
11 | "text/tabwriter"
12 | )
13 |
14 | func init() {
15 | Symbols["text/tabwriter/tabwriter"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "AlignRight": reflect.ValueOf(tabwriter.AlignRight),
18 | "Debug": reflect.ValueOf(tabwriter.Debug),
19 | "DiscardEmptyColumns": reflect.ValueOf(tabwriter.DiscardEmptyColumns),
20 | "Escape": reflect.ValueOf(constant.MakeFromLiteral("255", token.INT, 0)),
21 | "FilterHTML": reflect.ValueOf(tabwriter.FilterHTML),
22 | "NewWriter": reflect.ValueOf(tabwriter.NewWriter),
23 | "StripEscape": reflect.ValueOf(tabwriter.StripEscape),
24 | "TabIndent": reflect.ValueOf(tabwriter.TabIndent),
25 |
26 | // type definitions
27 | "Writer": reflect.ValueOf((*tabwriter.Writer)(nil)),
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_tabwriter.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract text/tabwriter'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "reflect"
11 | "text/tabwriter"
12 | )
13 |
14 | func init() {
15 | Symbols["text/tabwriter/tabwriter"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "AlignRight": reflect.ValueOf(tabwriter.AlignRight),
18 | "Debug": reflect.ValueOf(tabwriter.Debug),
19 | "DiscardEmptyColumns": reflect.ValueOf(tabwriter.DiscardEmptyColumns),
20 | "Escape": reflect.ValueOf(constant.MakeFromLiteral("255", token.INT, 0)),
21 | "FilterHTML": reflect.ValueOf(tabwriter.FilterHTML),
22 | "NewWriter": reflect.ValueOf(tabwriter.NewWriter),
23 | "StripEscape": reflect.ValueOf(tabwriter.StripEscape),
24 | "TabIndent": reflect.ValueOf(tabwriter.TabIndent),
25 |
26 | // type definitions
27 | "Writer": reflect.ValueOf((*tabwriter.Writer)(nil)),
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_mime.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract mime'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "mime"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["mime/mime"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "AddExtensionType": reflect.ValueOf(mime.AddExtensionType),
16 | "BEncoding": reflect.ValueOf(mime.BEncoding),
17 | "ErrInvalidMediaParameter": reflect.ValueOf(&mime.ErrInvalidMediaParameter).Elem(),
18 | "ExtensionsByType": reflect.ValueOf(mime.ExtensionsByType),
19 | "FormatMediaType": reflect.ValueOf(mime.FormatMediaType),
20 | "ParseMediaType": reflect.ValueOf(mime.ParseMediaType),
21 | "QEncoding": reflect.ValueOf(mime.QEncoding),
22 | "TypeByExtension": reflect.ValueOf(mime.TypeByExtension),
23 |
24 | // type definitions
25 | "WordDecoder": reflect.ValueOf((*mime.WordDecoder)(nil)),
26 | "WordEncoder": reflect.ValueOf((*mime.WordEncoder)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract mime'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "mime"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["mime/mime"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "AddExtensionType": reflect.ValueOf(mime.AddExtensionType),
16 | "BEncoding": reflect.ValueOf(mime.BEncoding),
17 | "ErrInvalidMediaParameter": reflect.ValueOf(&mime.ErrInvalidMediaParameter).Elem(),
18 | "ExtensionsByType": reflect.ValueOf(mime.ExtensionsByType),
19 | "FormatMediaType": reflect.ValueOf(mime.FormatMediaType),
20 | "ParseMediaType": reflect.ValueOf(mime.ParseMediaType),
21 | "QEncoding": reflect.ValueOf(mime.QEncoding),
22 | "TypeByExtension": reflect.ValueOf(mime.TypeByExtension),
23 |
24 | // type definitions
25 | "WordDecoder": reflect.ValueOf((*mime.WordDecoder)(nil)),
26 | "WordEncoder": reflect.ValueOf((*mime.WordEncoder)(nil)),
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_hex.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/hex'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/hex"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/hex/hex"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Decode": reflect.ValueOf(hex.Decode),
16 | "DecodeString": reflect.ValueOf(hex.DecodeString),
17 | "DecodedLen": reflect.ValueOf(hex.DecodedLen),
18 | "Dump": reflect.ValueOf(hex.Dump),
19 | "Dumper": reflect.ValueOf(hex.Dumper),
20 | "Encode": reflect.ValueOf(hex.Encode),
21 | "EncodeToString": reflect.ValueOf(hex.EncodeToString),
22 | "EncodedLen": reflect.ValueOf(hex.EncodedLen),
23 | "ErrLength": reflect.ValueOf(&hex.ErrLength).Elem(),
24 | "NewDecoder": reflect.ValueOf(hex.NewDecoder),
25 | "NewEncoder": reflect.ValueOf(hex.NewEncoder),
26 |
27 | // type definitions
28 | "InvalidByteError": reflect.ValueOf((*hex.InvalidByteError)(nil)),
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_gif.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract image/gif'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "image/gif"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["image/gif/gif"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Decode": reflect.ValueOf(gif.Decode),
18 | "DecodeAll": reflect.ValueOf(gif.DecodeAll),
19 | "DecodeConfig": reflect.ValueOf(gif.DecodeConfig),
20 | "DisposalBackground": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)),
21 | "DisposalNone": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)),
22 | "DisposalPrevious": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)),
23 | "Encode": reflect.ValueOf(gif.Encode),
24 | "EncodeAll": reflect.ValueOf(gif.EncodeAll),
25 |
26 | // type definitions
27 | "GIF": reflect.ValueOf((*gif.GIF)(nil)),
28 | "Options": reflect.ValueOf((*gif.Options)(nil)),
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_hex.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/hex'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/hex"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/hex/hex"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Decode": reflect.ValueOf(hex.Decode),
16 | "DecodeString": reflect.ValueOf(hex.DecodeString),
17 | "DecodedLen": reflect.ValueOf(hex.DecodedLen),
18 | "Dump": reflect.ValueOf(hex.Dump),
19 | "Dumper": reflect.ValueOf(hex.Dumper),
20 | "Encode": reflect.ValueOf(hex.Encode),
21 | "EncodeToString": reflect.ValueOf(hex.EncodeToString),
22 | "EncodedLen": reflect.ValueOf(hex.EncodedLen),
23 | "ErrLength": reflect.ValueOf(&hex.ErrLength).Elem(),
24 | "NewDecoder": reflect.ValueOf(hex.NewDecoder),
25 | "NewEncoder": reflect.ValueOf(hex.NewEncoder),
26 |
27 | // type definitions
28 | "InvalidByteError": reflect.ValueOf((*hex.InvalidByteError)(nil)),
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_gif.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract image/gif'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "image/gif"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["image/gif/gif"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Decode": reflect.ValueOf(gif.Decode),
18 | "DecodeAll": reflect.ValueOf(gif.DecodeAll),
19 | "DecodeConfig": reflect.ValueOf(gif.DecodeConfig),
20 | "DisposalBackground": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)),
21 | "DisposalNone": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)),
22 | "DisposalPrevious": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)),
23 | "Encode": reflect.ValueOf(gif.Encode),
24 | "EncodeAll": reflect.ValueOf(gif.EncodeAll),
25 |
26 | // type definitions
27 | "GIF": reflect.ValueOf((*gif.GIF)(nil)),
28 | "Options": reflect.ValueOf((*gif.Options)(nil)),
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_os_user.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract os/user'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "os/user"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["os/user/user"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Current": reflect.ValueOf(user.Current),
16 | "Lookup": reflect.ValueOf(user.Lookup),
17 | "LookupGroup": reflect.ValueOf(user.LookupGroup),
18 | "LookupGroupId": reflect.ValueOf(user.LookupGroupId),
19 | "LookupId": reflect.ValueOf(user.LookupId),
20 |
21 | // type definitions
22 | "Group": reflect.ValueOf((*user.Group)(nil)),
23 | "UnknownGroupError": reflect.ValueOf((*user.UnknownGroupError)(nil)),
24 | "UnknownGroupIdError": reflect.ValueOf((*user.UnknownGroupIdError)(nil)),
25 | "UnknownUserError": reflect.ValueOf((*user.UnknownUserError)(nil)),
26 | "UnknownUserIdError": reflect.ValueOf((*user.UnknownUserIdError)(nil)),
27 | "User": reflect.ValueOf((*user.User)(nil)),
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_user.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract os/user'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "os/user"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["os/user/user"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Current": reflect.ValueOf(user.Current),
16 | "Lookup": reflect.ValueOf(user.Lookup),
17 | "LookupGroup": reflect.ValueOf(user.LookupGroup),
18 | "LookupGroupId": reflect.ValueOf(user.LookupGroupId),
19 | "LookupId": reflect.ValueOf(user.LookupId),
20 |
21 | // type definitions
22 | "Group": reflect.ValueOf((*user.Group)(nil)),
23 | "UnknownGroupError": reflect.ValueOf((*user.UnknownGroupError)(nil)),
24 | "UnknownGroupIdError": reflect.ValueOf((*user.UnknownGroupIdError)(nil)),
25 | "UnknownUserError": reflect.ValueOf((*user.UnknownUserError)(nil)),
26 | "UnknownUserIdError": reflect.ValueOf((*user.UnknownUserIdError)(nil)),
27 | "User": reflect.ValueOf((*user.User)(nil)),
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base64.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/base64'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/base64"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/base64/base64"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewDecoder": reflect.ValueOf(base64.NewDecoder),
16 | "NewEncoder": reflect.ValueOf(base64.NewEncoder),
17 | "NewEncoding": reflect.ValueOf(base64.NewEncoding),
18 | "NoPadding": reflect.ValueOf(base64.NoPadding),
19 | "RawStdEncoding": reflect.ValueOf(&base64.RawStdEncoding).Elem(),
20 | "RawURLEncoding": reflect.ValueOf(&base64.RawURLEncoding).Elem(),
21 | "StdEncoding": reflect.ValueOf(&base64.StdEncoding).Elem(),
22 | "StdPadding": reflect.ValueOf(base64.StdPadding),
23 | "URLEncoding": reflect.ValueOf(&base64.URLEncoding).Elem(),
24 |
25 | // type definitions
26 | "CorruptInputError": reflect.ValueOf((*base64.CorruptInputError)(nil)),
27 | "Encoding": reflect.ValueOf((*base64.Encoding)(nil)),
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base64.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/base64'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/base64"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/base64/base64"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewDecoder": reflect.ValueOf(base64.NewDecoder),
16 | "NewEncoder": reflect.ValueOf(base64.NewEncoder),
17 | "NewEncoding": reflect.ValueOf(base64.NewEncoding),
18 | "NoPadding": reflect.ValueOf(base64.NoPadding),
19 | "RawStdEncoding": reflect.ValueOf(&base64.RawStdEncoding).Elem(),
20 | "RawURLEncoding": reflect.ValueOf(&base64.RawURLEncoding).Elem(),
21 | "StdEncoding": reflect.ValueOf(&base64.StdEncoding).Elem(),
22 | "StdPadding": reflect.ValueOf(base64.StdPadding),
23 | "URLEncoding": reflect.ValueOf(&base64.URLEncoding).Elem(),
24 |
25 | // type definitions
26 | "CorruptInputError": reflect.ValueOf((*base64.CorruptInputError)(nil)),
27 | "Encoding": reflect.ValueOf((*base64.Encoding)(nil)),
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_parser.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/parser'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/parser"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/parser/parser"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "AllErrors": reflect.ValueOf(parser.AllErrors),
16 | "DeclarationErrors": reflect.ValueOf(parser.DeclarationErrors),
17 | "ImportsOnly": reflect.ValueOf(parser.ImportsOnly),
18 | "PackageClauseOnly": reflect.ValueOf(parser.PackageClauseOnly),
19 | "ParseComments": reflect.ValueOf(parser.ParseComments),
20 | "ParseDir": reflect.ValueOf(parser.ParseDir),
21 | "ParseExpr": reflect.ValueOf(parser.ParseExpr),
22 | "ParseExprFrom": reflect.ValueOf(parser.ParseExprFrom),
23 | "ParseFile": reflect.ValueOf(parser.ParseFile),
24 | "SpuriousErrors": reflect.ValueOf(parser.SpuriousErrors),
25 | "Trace": reflect.ValueOf(parser.Trace),
26 |
27 | // type definitions
28 | "Mode": reflect.ValueOf((*parser.Mode)(nil)),
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) 2016 Uber Technologies, Inc.
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy
4 | of this software and associated documentation files (the "Software"), to deal
5 | in the Software without restriction, including without limitation the rights
6 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | copies of the Software, and to permit persons to whom the Software is
8 | furnished to do so, subject to the following conditions:
9 |
10 | The above copyright notice and this permission notice shall be included in
11 | all copies or substantial portions of the Software.
12 |
13 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | THE SOFTWARE.
20 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_parser.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/parser'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/parser"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/parser/parser"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "AllErrors": reflect.ValueOf(parser.AllErrors),
16 | "DeclarationErrors": reflect.ValueOf(parser.DeclarationErrors),
17 | "ImportsOnly": reflect.ValueOf(parser.ImportsOnly),
18 | "PackageClauseOnly": reflect.ValueOf(parser.PackageClauseOnly),
19 | "ParseComments": reflect.ValueOf(parser.ParseComments),
20 | "ParseDir": reflect.ValueOf(parser.ParseDir),
21 | "ParseExpr": reflect.ValueOf(parser.ParseExpr),
22 | "ParseExprFrom": reflect.ValueOf(parser.ParseExprFrom),
23 | "ParseFile": reflect.ValueOf(parser.ParseFile),
24 | "SpuriousErrors": reflect.ValueOf(parser.SpuriousErrors),
25 | "Trace": reflect.ValueOf(parser.Trace),
26 |
27 | // type definitions
28 | "Mode": reflect.ValueOf((*parser.Mode)(nil)),
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ed25519.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/ed25519"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/ed25519/ed25519"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "GenerateKey": reflect.ValueOf(ed25519.GenerateKey),
18 | "NewKeyFromSeed": reflect.ValueOf(ed25519.NewKeyFromSeed),
19 | "PrivateKeySize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
20 | "PublicKeySize": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
21 | "SeedSize": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
22 | "Sign": reflect.ValueOf(ed25519.Sign),
23 | "SignatureSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
24 | "Verify": reflect.ValueOf(ed25519.Verify),
25 |
26 | // type definitions
27 | "PrivateKey": reflect.ValueOf((*ed25519.PrivateKey)(nil)),
28 | "PublicKey": reflect.ValueOf((*ed25519.PublicKey)(nil)),
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ed25519.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/ed25519"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/ed25519/ed25519"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "GenerateKey": reflect.ValueOf(ed25519.GenerateKey),
18 | "NewKeyFromSeed": reflect.ValueOf(ed25519.NewKeyFromSeed),
19 | "PrivateKeySize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
20 | "PublicKeySize": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
21 | "SeedSize": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
22 | "Sign": reflect.ValueOf(ed25519.Sign),
23 | "SignatureSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
24 | "Verify": reflect.ValueOf(ed25519.Verify),
25 |
26 | // type definitions
27 | "PrivateKey": reflect.ValueOf((*ed25519.PrivateKey)(nil)),
28 | "PublicKey": reflect.ValueOf((*ed25519.PublicKey)(nil)),
29 | }
30 | }
31 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2012-2020 Mat Ryer, Tyler Bunnell and contributors.
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_x509_pkix.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/x509/pkix'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/x509/pkix"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/x509/pkix/pkix"] = map[string]reflect.Value{
14 | // type definitions
15 | "AlgorithmIdentifier": reflect.ValueOf((*pkix.AlgorithmIdentifier)(nil)),
16 | "AttributeTypeAndValue": reflect.ValueOf((*pkix.AttributeTypeAndValue)(nil)),
17 | "AttributeTypeAndValueSET": reflect.ValueOf((*pkix.AttributeTypeAndValueSET)(nil)),
18 | "CertificateList": reflect.ValueOf((*pkix.CertificateList)(nil)),
19 | "Extension": reflect.ValueOf((*pkix.Extension)(nil)),
20 | "Name": reflect.ValueOf((*pkix.Name)(nil)),
21 | "RDNSequence": reflect.ValueOf((*pkix.RDNSequence)(nil)),
22 | "RelativeDistinguishedNameSET": reflect.ValueOf((*pkix.RelativeDistinguishedNameSET)(nil)),
23 | "RevokedCertificate": reflect.ValueOf((*pkix.RevokedCertificate)(nil)),
24 | "TBSCertificateList": reflect.ValueOf((*pkix.TBSCertificateList)(nil)),
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/codebuffer/cache_iterator_test.go:
--------------------------------------------------------------------------------
1 | package codebuffer
2 |
3 | import (
4 | "testing"
5 |
6 | "github.com/stretchr/testify/require"
7 | )
8 |
9 | func TestCacheIterator(t *testing.T) {
10 | tests := []struct {
11 | Name string
12 | Parts []*Part
13 | }{
14 | {
15 | "0 Parts",
16 | nil,
17 | },
18 | {
19 | "1 Part",
20 | []*Part{
21 | {
22 | Type: CodePartType,
23 | Content: []byte("Foo"),
24 | },
25 | },
26 | },
27 | {
28 | "2 Parts",
29 | []*Part{
30 | {
31 | Type: CodePartType,
32 | Content: []byte("Foo"),
33 | },
34 | {
35 | Type: CodePartType,
36 | Content: []byte("Bar"),
37 | },
38 | },
39 | },
40 | }
41 |
42 | for _, test := range tests {
43 | t.Run(test.Name, func(t *testing.T) {
44 | it, err := newCacheIterator(test.Parts)
45 | require.NoError(t, err)
46 | require.Nil(t, it.Value())
47 | require.NoError(t, it.Error())
48 |
49 | for i := 0; i < len(test.Parts); i++ {
50 | require.True(t, it.Next(), i)
51 | require.Equal(t, test.Parts[i], it.Value(), i)
52 | }
53 |
54 | require.False(t, it.Next())
55 | require.Nil(t, it.Value())
56 | require.NoError(t, it.Error())
57 | })
58 | }
59 | }
60 |
--------------------------------------------------------------------------------
/import_symbol.go:
--------------------------------------------------------------------------------
1 | package yaegi_template
2 |
3 | import (
4 | "fmt"
5 | "strings"
6 | )
7 |
8 | type importSymbols []Import
9 |
10 | func (is importSymbols) Contains(symbol Import) bool {
11 | for _, s := range is {
12 | if s.Equals(symbol) {
13 | return true
14 | }
15 | }
16 | return false
17 | }
18 |
19 | func (is importSymbols) ImportBlock() string {
20 | switch len(is) {
21 | case 0:
22 | return ""
23 | case 1:
24 | return "import " + is[0].importLine()
25 | default:
26 | var sb strings.Builder
27 | sb.WriteString("import (\n")
28 | for _, symbol := range is {
29 | sb.WriteString(symbol.importLine())
30 | sb.WriteRune('\n')
31 | }
32 | sb.WriteString(")")
33 | return sb.String()
34 | }
35 | }
36 |
37 | // Import represents an import that should be evaluated.
38 | type Import struct {
39 | Name string
40 | Path string
41 | }
42 |
43 | // Equals returns true if the specified import is equal to this import.
44 | func (v Import) Equals(i Import) bool {
45 | return v.Name == i.Name && strings.EqualFold(v.Path, i.Path)
46 | }
47 |
48 | func (v Import) importLine() string {
49 | if v.Name != "" {
50 | return fmt.Sprintf("%s %q", v.Name, v.Path)
51 | }
52 | return fmt.Sprintf("%q", v.Path)
53 | }
54 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_dsa.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/dsa'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/dsa"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/dsa/dsa"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ErrInvalidPublicKey": reflect.ValueOf(&dsa.ErrInvalidPublicKey).Elem(),
16 | "GenerateKey": reflect.ValueOf(dsa.GenerateKey),
17 | "GenerateParameters": reflect.ValueOf(dsa.GenerateParameters),
18 | "L1024N160": reflect.ValueOf(dsa.L1024N160),
19 | "L2048N224": reflect.ValueOf(dsa.L2048N224),
20 | "L2048N256": reflect.ValueOf(dsa.L2048N256),
21 | "L3072N256": reflect.ValueOf(dsa.L3072N256),
22 | "Sign": reflect.ValueOf(dsa.Sign),
23 | "Verify": reflect.ValueOf(dsa.Verify),
24 |
25 | // type definitions
26 | "ParameterSizes": reflect.ValueOf((*dsa.ParameterSizes)(nil)),
27 | "Parameters": reflect.ValueOf((*dsa.Parameters)(nil)),
28 | "PrivateKey": reflect.ValueOf((*dsa.PrivateKey)(nil)),
29 | "PublicKey": reflect.ValueOf((*dsa.PublicKey)(nil)),
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509_pkix.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/x509/pkix'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/x509/pkix"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/x509/pkix/pkix"] = map[string]reflect.Value{
14 | // type definitions
15 | "AlgorithmIdentifier": reflect.ValueOf((*pkix.AlgorithmIdentifier)(nil)),
16 | "AttributeTypeAndValue": reflect.ValueOf((*pkix.AttributeTypeAndValue)(nil)),
17 | "AttributeTypeAndValueSET": reflect.ValueOf((*pkix.AttributeTypeAndValueSET)(nil)),
18 | "CertificateList": reflect.ValueOf((*pkix.CertificateList)(nil)),
19 | "Extension": reflect.ValueOf((*pkix.Extension)(nil)),
20 | "Name": reflect.ValueOf((*pkix.Name)(nil)),
21 | "RDNSequence": reflect.ValueOf((*pkix.RDNSequence)(nil)),
22 | "RelativeDistinguishedNameSET": reflect.ValueOf((*pkix.RelativeDistinguishedNameSET)(nil)),
23 | "RevokedCertificate": reflect.ValueOf((*pkix.RevokedCertificate)(nil)),
24 | "TBSCertificateList": reflect.ValueOf((*pkix.TBSCertificateList)(nil)),
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_plan9obj.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract debug/plan9obj'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "debug/plan9obj"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["debug/plan9obj/plan9obj"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Magic386": reflect.ValueOf(constant.MakeFromLiteral("491", token.INT, 0)),
18 | "Magic64": reflect.ValueOf(constant.MakeFromLiteral("32768", token.INT, 0)),
19 | "MagicAMD64": reflect.ValueOf(constant.MakeFromLiteral("35479", token.INT, 0)),
20 | "MagicARM": reflect.ValueOf(constant.MakeFromLiteral("1607", token.INT, 0)),
21 | "NewFile": reflect.ValueOf(plan9obj.NewFile),
22 | "Open": reflect.ValueOf(plan9obj.Open),
23 |
24 | // type definitions
25 | "File": reflect.ValueOf((*plan9obj.File)(nil)),
26 | "FileHeader": reflect.ValueOf((*plan9obj.FileHeader)(nil)),
27 | "Section": reflect.ValueOf((*plan9obj.Section)(nil)),
28 | "SectionHeader": reflect.ValueOf((*plan9obj.SectionHeader)(nil)),
29 | "Sym": reflect.ValueOf((*plan9obj.Sym)(nil)),
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_dsa.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/dsa'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/dsa"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["crypto/dsa/dsa"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "ErrInvalidPublicKey": reflect.ValueOf(&dsa.ErrInvalidPublicKey).Elem(),
16 | "GenerateKey": reflect.ValueOf(dsa.GenerateKey),
17 | "GenerateParameters": reflect.ValueOf(dsa.GenerateParameters),
18 | "L1024N160": reflect.ValueOf(dsa.L1024N160),
19 | "L2048N224": reflect.ValueOf(dsa.L2048N224),
20 | "L2048N256": reflect.ValueOf(dsa.L2048N256),
21 | "L3072N256": reflect.ValueOf(dsa.L3072N256),
22 | "Sign": reflect.ValueOf(dsa.Sign),
23 | "Verify": reflect.ValueOf(dsa.Verify),
24 |
25 | // type definitions
26 | "ParameterSizes": reflect.ValueOf((*dsa.ParameterSizes)(nil)),
27 | "Parameters": reflect.ValueOf((*dsa.Parameters)(nil)),
28 | "PrivateKey": reflect.ValueOf((*dsa.PrivateKey)(nil)),
29 | "PublicKey": reflect.ValueOf((*dsa.PublicKey)(nil)),
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_plan9obj.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract debug/plan9obj'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "debug/plan9obj"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["debug/plan9obj/plan9obj"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Magic386": reflect.ValueOf(constant.MakeFromLiteral("491", token.INT, 0)),
18 | "Magic64": reflect.ValueOf(constant.MakeFromLiteral("32768", token.INT, 0)),
19 | "MagicAMD64": reflect.ValueOf(constant.MakeFromLiteral("35479", token.INT, 0)),
20 | "MagicARM": reflect.ValueOf(constant.MakeFromLiteral("1607", token.INT, 0)),
21 | "NewFile": reflect.ValueOf(plan9obj.NewFile),
22 | "Open": reflect.ValueOf(plan9obj.Open),
23 |
24 | // type definitions
25 | "File": reflect.ValueOf((*plan9obj.File)(nil)),
26 | "FileHeader": reflect.ValueOf((*plan9obj.FileHeader)(nil)),
27 | "Section": reflect.ValueOf((*plan9obj.Section)(nil)),
28 | "SectionHeader": reflect.ValueOf((*plan9obj.SectionHeader)(nil)),
29 | "Sym": reflect.ValueOf((*plan9obj.Sym)(nil)),
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc32.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/crc32'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "hash/crc32"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["hash/crc32/crc32"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Castagnoli": reflect.ValueOf(constant.MakeFromLiteral("2197175160", token.INT, 0)),
18 | "Checksum": reflect.ValueOf(crc32.Checksum),
19 | "ChecksumIEEE": reflect.ValueOf(crc32.ChecksumIEEE),
20 | "IEEE": reflect.ValueOf(constant.MakeFromLiteral("3988292384", token.INT, 0)),
21 | "IEEETable": reflect.ValueOf(&crc32.IEEETable).Elem(),
22 | "Koopman": reflect.ValueOf(constant.MakeFromLiteral("3945912366", token.INT, 0)),
23 | "MakeTable": reflect.ValueOf(crc32.MakeTable),
24 | "New": reflect.ValueOf(crc32.New),
25 | "NewIEEE": reflect.ValueOf(crc32.NewIEEE),
26 | "Size": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
27 | "Update": reflect.ValueOf(crc32.Update),
28 |
29 | // type definitions
30 | "Table": reflect.ValueOf((*crc32.Table)(nil)),
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc32.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract hash/crc32'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "hash/crc32"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["hash/crc32/crc32"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Castagnoli": reflect.ValueOf(constant.MakeFromLiteral("2197175160", token.INT, 0)),
18 | "Checksum": reflect.ValueOf(crc32.Checksum),
19 | "ChecksumIEEE": reflect.ValueOf(crc32.ChecksumIEEE),
20 | "IEEE": reflect.ValueOf(constant.MakeFromLiteral("3988292384", token.INT, 0)),
21 | "IEEETable": reflect.ValueOf(&crc32.IEEETable).Elem(),
22 | "Koopman": reflect.ValueOf(constant.MakeFromLiteral("3945912366", token.INT, 0)),
23 | "MakeTable": reflect.ValueOf(crc32.MakeTable),
24 | "New": reflect.ValueOf(crc32.New),
25 | "NewIEEE": reflect.ValueOf(crc32.NewIEEE),
26 | "Size": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
27 | "Update": reflect.ValueOf(crc32.Update),
28 |
29 | // type definitions
30 | "Table": reflect.ValueOf((*crc32.Table)(nil)),
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_sync.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract sync'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "sync"
10 | )
11 |
12 | func init() {
13 | Symbols["sync/sync"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewCond": reflect.ValueOf(sync.NewCond),
16 |
17 | // type definitions
18 | "Cond": reflect.ValueOf((*sync.Cond)(nil)),
19 | "Locker": reflect.ValueOf((*sync.Locker)(nil)),
20 | "Map": reflect.ValueOf((*sync.Map)(nil)),
21 | "Mutex": reflect.ValueOf((*sync.Mutex)(nil)),
22 | "Once": reflect.ValueOf((*sync.Once)(nil)),
23 | "Pool": reflect.ValueOf((*sync.Pool)(nil)),
24 | "RWMutex": reflect.ValueOf((*sync.RWMutex)(nil)),
25 | "WaitGroup": reflect.ValueOf((*sync.WaitGroup)(nil)),
26 |
27 | // interface wrapper definitions
28 | "_Locker": reflect.ValueOf((*_sync_Locker)(nil)),
29 | }
30 | }
31 |
32 | // _sync_Locker is an interface wrapper for Locker type
33 | type _sync_Locker struct {
34 | IValue interface{}
35 | WLock func()
36 | WUnlock func()
37 | }
38 |
39 | func (W _sync_Locker) Lock() { W.WLock() }
40 | func (W _sync_Locker) Unlock() { W.WUnlock() }
41 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract sync'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "sync"
10 | )
11 |
12 | func init() {
13 | Symbols["sync/sync"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewCond": reflect.ValueOf(sync.NewCond),
16 |
17 | // type definitions
18 | "Cond": reflect.ValueOf((*sync.Cond)(nil)),
19 | "Locker": reflect.ValueOf((*sync.Locker)(nil)),
20 | "Map": reflect.ValueOf((*sync.Map)(nil)),
21 | "Mutex": reflect.ValueOf((*sync.Mutex)(nil)),
22 | "Once": reflect.ValueOf((*sync.Once)(nil)),
23 | "Pool": reflect.ValueOf((*sync.Pool)(nil)),
24 | "RWMutex": reflect.ValueOf((*sync.RWMutex)(nil)),
25 | "WaitGroup": reflect.ValueOf((*sync.WaitGroup)(nil)),
26 |
27 | // interface wrapper definitions
28 | "_Locker": reflect.ValueOf((*_sync_Locker)(nil)),
29 | }
30 | }
31 |
32 | // _sync_Locker is an interface wrapper for Locker type
33 | type _sync_Locker struct {
34 | IValue interface{}
35 | WLock func()
36 | WUnlock func()
37 | }
38 |
39 | func (W _sync_Locker) Lock() { W.WLock() }
40 | func (W _sync_Locker) Unlock() { W.WUnlock() }
41 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha512.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/sha512'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/sha512"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/sha512/sha512"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)),
18 | "New": reflect.ValueOf(sha512.New),
19 | "New384": reflect.ValueOf(sha512.New384),
20 | "New512_224": reflect.ValueOf(sha512.New512_224),
21 | "New512_256": reflect.ValueOf(sha512.New512_256),
22 | "Size": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
23 | "Size224": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)),
24 | "Size256": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
25 | "Size384": reflect.ValueOf(constant.MakeFromLiteral("48", token.INT, 0)),
26 | "Sum384": reflect.ValueOf(sha512.Sum384),
27 | "Sum512": reflect.ValueOf(sha512.Sum512),
28 | "Sum512_224": reflect.ValueOf(sha512.Sum512_224),
29 | "Sum512_256": reflect.ValueOf(sha512.Sum512_256),
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_debug.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "runtime/debug"
10 | )
11 |
12 | func init() {
13 | Symbols["runtime/debug/debug"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "FreeOSMemory": reflect.ValueOf(debug.FreeOSMemory),
16 | "PrintStack": reflect.ValueOf(debug.PrintStack),
17 | "ReadBuildInfo": reflect.ValueOf(debug.ReadBuildInfo),
18 | "ReadGCStats": reflect.ValueOf(debug.ReadGCStats),
19 | "SetGCPercent": reflect.ValueOf(debug.SetGCPercent),
20 | "SetMaxStack": reflect.ValueOf(debug.SetMaxStack),
21 | "SetMaxThreads": reflect.ValueOf(debug.SetMaxThreads),
22 | "SetPanicOnFault": reflect.ValueOf(debug.SetPanicOnFault),
23 | "SetTraceback": reflect.ValueOf(debug.SetTraceback),
24 | "Stack": reflect.ValueOf(debug.Stack),
25 | "WriteHeapDump": reflect.ValueOf(debug.WriteHeapDump),
26 |
27 | // type definitions
28 | "BuildInfo": reflect.ValueOf((*debug.BuildInfo)(nil)),
29 | "GCStats": reflect.ValueOf((*debug.GCStats)(nil)),
30 | "Module": reflect.ValueOf((*debug.Module)(nil)),
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha512.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract crypto/sha512'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "crypto/sha512"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["crypto/sha512/sha512"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)),
18 | "New": reflect.ValueOf(sha512.New),
19 | "New384": reflect.ValueOf(sha512.New384),
20 | "New512_224": reflect.ValueOf(sha512.New512_224),
21 | "New512_256": reflect.ValueOf(sha512.New512_256),
22 | "Size": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)),
23 | "Size224": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)),
24 | "Size256": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)),
25 | "Size384": reflect.ValueOf(constant.MakeFromLiteral("48", token.INT, 0)),
26 | "Sum384": reflect.ValueOf(sha512.Sum384),
27 | "Sum512": reflect.ValueOf(sha512.Sum512),
28 | "Sum512_224": reflect.ValueOf(sha512.Sum512_224),
29 | "Sum512_256": reflect.ValueOf(sha512.Sum512_256),
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_debug.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "runtime/debug"
10 | )
11 |
12 | func init() {
13 | Symbols["runtime/debug/debug"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "FreeOSMemory": reflect.ValueOf(debug.FreeOSMemory),
16 | "PrintStack": reflect.ValueOf(debug.PrintStack),
17 | "ReadBuildInfo": reflect.ValueOf(debug.ReadBuildInfo),
18 | "ReadGCStats": reflect.ValueOf(debug.ReadGCStats),
19 | "SetGCPercent": reflect.ValueOf(debug.SetGCPercent),
20 | "SetMaxStack": reflect.ValueOf(debug.SetMaxStack),
21 | "SetMaxThreads": reflect.ValueOf(debug.SetMaxThreads),
22 | "SetPanicOnFault": reflect.ValueOf(debug.SetPanicOnFault),
23 | "SetTraceback": reflect.ValueOf(debug.SetTraceback),
24 | "Stack": reflect.ValueOf(debug.Stack),
25 | "WriteHeapDump": reflect.ValueOf(debug.WriteHeapDump),
26 |
27 | // type definitions
28 | "BuildInfo": reflect.ValueOf((*debug.BuildInfo)(nil)),
29 | "GCStats": reflect.ValueOf((*debug.GCStats)(nil)),
30 | "Module": reflect.ValueOf((*debug.Module)(nil)),
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_pprof.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract runtime/pprof'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "runtime/pprof"
10 | )
11 |
12 | func init() {
13 | Symbols["runtime/pprof/pprof"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Do": reflect.ValueOf(pprof.Do),
16 | "ForLabels": reflect.ValueOf(pprof.ForLabels),
17 | "Label": reflect.ValueOf(pprof.Label),
18 | "Labels": reflect.ValueOf(pprof.Labels),
19 | "Lookup": reflect.ValueOf(pprof.Lookup),
20 | "NewProfile": reflect.ValueOf(pprof.NewProfile),
21 | "Profiles": reflect.ValueOf(pprof.Profiles),
22 | "SetGoroutineLabels": reflect.ValueOf(pprof.SetGoroutineLabels),
23 | "StartCPUProfile": reflect.ValueOf(pprof.StartCPUProfile),
24 | "StopCPUProfile": reflect.ValueOf(pprof.StopCPUProfile),
25 | "WithLabels": reflect.ValueOf(pprof.WithLabels),
26 | "WriteHeapProfile": reflect.ValueOf(pprof.WriteHeapProfile),
27 |
28 | // type definitions
29 | "LabelSet": reflect.ValueOf((*pprof.LabelSet)(nil)),
30 | "Profile": reflect.ValueOf((*pprof.Profile)(nil)),
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/require/requirements.go:
--------------------------------------------------------------------------------
1 | package require
2 |
3 | // TestingT is an interface wrapper around *testing.T
4 | type TestingT interface {
5 | Errorf(format string, args ...interface{})
6 | FailNow()
7 | }
8 |
9 | type tHelper interface {
10 | Helper()
11 | }
12 |
13 | // ComparisonAssertionFunc is a common function prototype when comparing two values. Can be useful
14 | // for table driven tests.
15 | type ComparisonAssertionFunc func(TestingT, interface{}, interface{}, ...interface{})
16 |
17 | // ValueAssertionFunc is a common function prototype when validating a single value. Can be useful
18 | // for table driven tests.
19 | type ValueAssertionFunc func(TestingT, interface{}, ...interface{})
20 |
21 | // BoolAssertionFunc is a common function prototype when validating a bool value. Can be useful
22 | // for table driven tests.
23 | type BoolAssertionFunc func(TestingT, bool, ...interface{})
24 |
25 | // ErrorAssertionFunc is a common function prototype when validating an error value. Can be useful
26 | // for table driven tests.
27 | type ErrorAssertionFunc func(TestingT, error, ...interface{})
28 |
29 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require.go.tmpl -include-format-funcs"
30 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_pprof.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract runtime/pprof'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "runtime/pprof"
10 | )
11 |
12 | func init() {
13 | Symbols["runtime/pprof/pprof"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Do": reflect.ValueOf(pprof.Do),
16 | "ForLabels": reflect.ValueOf(pprof.ForLabels),
17 | "Label": reflect.ValueOf(pprof.Label),
18 | "Labels": reflect.ValueOf(pprof.Labels),
19 | "Lookup": reflect.ValueOf(pprof.Lookup),
20 | "NewProfile": reflect.ValueOf(pprof.NewProfile),
21 | "Profiles": reflect.ValueOf(pprof.Profiles),
22 | "SetGoroutineLabels": reflect.ValueOf(pprof.SetGoroutineLabels),
23 | "StartCPUProfile": reflect.ValueOf(pprof.StartCPUProfile),
24 | "StopCPUProfile": reflect.ValueOf(pprof.StopCPUProfile),
25 | "WithLabels": reflect.ValueOf(pprof.WithLabels),
26 | "WriteHeapProfile": reflect.ValueOf(pprof.WriteHeapProfile),
27 |
28 | // type definitions
29 | "LabelSet": reflect.ValueOf((*pprof.LabelSet)(nil)),
30 | "Profile": reflect.ValueOf((*pprof.Profile)(nil)),
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_url.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/url'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/url"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/url/url"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Parse": reflect.ValueOf(url.Parse),
16 | "ParseQuery": reflect.ValueOf(url.ParseQuery),
17 | "ParseRequestURI": reflect.ValueOf(url.ParseRequestURI),
18 | "PathEscape": reflect.ValueOf(url.PathEscape),
19 | "PathUnescape": reflect.ValueOf(url.PathUnescape),
20 | "QueryEscape": reflect.ValueOf(url.QueryEscape),
21 | "QueryUnescape": reflect.ValueOf(url.QueryUnescape),
22 | "User": reflect.ValueOf(url.User),
23 | "UserPassword": reflect.ValueOf(url.UserPassword),
24 |
25 | // type definitions
26 | "Error": reflect.ValueOf((*url.Error)(nil)),
27 | "EscapeError": reflect.ValueOf((*url.EscapeError)(nil)),
28 | "InvalidHostError": reflect.ValueOf((*url.InvalidHostError)(nil)),
29 | "URL": reflect.ValueOf((*url.URL)(nil)),
30 | "Userinfo": reflect.ValueOf((*url.Userinfo)(nil)),
31 | "Values": reflect.ValueOf((*url.Values)(nil)),
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_url.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/url'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/url"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/url/url"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Parse": reflect.ValueOf(url.Parse),
16 | "ParseQuery": reflect.ValueOf(url.ParseQuery),
17 | "ParseRequestURI": reflect.ValueOf(url.ParseRequestURI),
18 | "PathEscape": reflect.ValueOf(url.PathEscape),
19 | "PathUnescape": reflect.ValueOf(url.PathUnescape),
20 | "QueryEscape": reflect.ValueOf(url.QueryEscape),
21 | "QueryUnescape": reflect.ValueOf(url.QueryUnescape),
22 | "User": reflect.ValueOf(url.User),
23 | "UserPassword": reflect.ValueOf(url.UserPassword),
24 |
25 | // type definitions
26 | "Error": reflect.ValueOf((*url.Error)(nil)),
27 | "EscapeError": reflect.ValueOf((*url.EscapeError)(nil)),
28 | "InvalidHostError": reflect.ValueOf((*url.InvalidHostError)(nil)),
29 | "URL": reflect.ValueOf((*url.URL)(nil)),
30 | "Userinfo": reflect.ValueOf((*url.Userinfo)(nil)),
31 | "Values": reflect.ValueOf((*url.Values)(nil)),
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/doc.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2020 Uber Technologies, Inc.
2 | //
3 | // Permission is hereby granted, free of charge, to any person obtaining a copy
4 | // of this software and associated documentation files (the "Software"), to deal
5 | // in the Software without restriction, including without limitation the rights
6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | // copies of the Software, and to permit persons to whom the Software is
8 | // furnished to do so, subject to the following conditions:
9 | //
10 | // The above copyright notice and this permission notice shall be included in
11 | // all copies or substantial portions of the Software.
12 | //
13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | // THE SOFTWARE.
20 |
21 | // Package atomic provides simple wrappers around numerics to enforce atomic
22 | // access.
23 | package atomic
24 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cookiejar.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/cookiejar'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/cookiejar"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/cookiejar/cookiejar"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New": reflect.ValueOf(cookiejar.New),
16 |
17 | // type definitions
18 | "Jar": reflect.ValueOf((*cookiejar.Jar)(nil)),
19 | "Options": reflect.ValueOf((*cookiejar.Options)(nil)),
20 | "PublicSuffixList": reflect.ValueOf((*cookiejar.PublicSuffixList)(nil)),
21 |
22 | // interface wrapper definitions
23 | "_PublicSuffixList": reflect.ValueOf((*_net_http_cookiejar_PublicSuffixList)(nil)),
24 | }
25 | }
26 |
27 | // _net_http_cookiejar_PublicSuffixList is an interface wrapper for PublicSuffixList type
28 | type _net_http_cookiejar_PublicSuffixList struct {
29 | IValue interface{}
30 | WPublicSuffix func(domain string) string
31 | WString func() string
32 | }
33 |
34 | func (W _net_http_cookiejar_PublicSuffixList) PublicSuffix(domain string) string {
35 | return W.WPublicSuffix(domain)
36 | }
37 | func (W _net_http_cookiejar_PublicSuffixList) String() string { return W.WString() }
38 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cookiejar.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/http/cookiejar'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/http/cookiejar"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/http/cookiejar/cookiejar"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "New": reflect.ValueOf(cookiejar.New),
16 |
17 | // type definitions
18 | "Jar": reflect.ValueOf((*cookiejar.Jar)(nil)),
19 | "Options": reflect.ValueOf((*cookiejar.Options)(nil)),
20 | "PublicSuffixList": reflect.ValueOf((*cookiejar.PublicSuffixList)(nil)),
21 |
22 | // interface wrapper definitions
23 | "_PublicSuffixList": reflect.ValueOf((*_net_http_cookiejar_PublicSuffixList)(nil)),
24 | }
25 | }
26 |
27 | // _net_http_cookiejar_PublicSuffixList is an interface wrapper for PublicSuffixList type
28 | type _net_http_cookiejar_PublicSuffixList struct {
29 | IValue interface{}
30 | WPublicSuffix func(domain string) string
31 | WString func() string
32 | }
33 |
34 | func (W _net_http_cookiejar_PublicSuffixList) PublicSuffix(domain string) string {
35 | return W.WPublicSuffix(domain)
36 | }
37 | func (W _net_http_cookiejar_PublicSuffixList) String() string { return W.WString() }
38 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_build.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/build'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/build"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/build/build"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "AllowBinary": reflect.ValueOf(build.AllowBinary),
16 | "ArchChar": reflect.ValueOf(build.ArchChar),
17 | "Default": reflect.ValueOf(&build.Default).Elem(),
18 | "FindOnly": reflect.ValueOf(build.FindOnly),
19 | "IgnoreVendor": reflect.ValueOf(build.IgnoreVendor),
20 | "Import": reflect.ValueOf(build.Import),
21 | "ImportComment": reflect.ValueOf(build.ImportComment),
22 | "ImportDir": reflect.ValueOf(build.ImportDir),
23 | "IsLocalImport": reflect.ValueOf(build.IsLocalImport),
24 | "ToolDir": reflect.ValueOf(&build.ToolDir).Elem(),
25 |
26 | // type definitions
27 | "Context": reflect.ValueOf((*build.Context)(nil)),
28 | "ImportMode": reflect.ValueOf((*build.ImportMode)(nil)),
29 | "MultiplePackageError": reflect.ValueOf((*build.MultiplePackageError)(nil)),
30 | "NoGoError": reflect.ValueOf((*build.NoGoError)(nil)),
31 | "Package": reflect.ValueOf((*build.Package)(nil)),
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_build.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/build'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/build"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/build/build"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "AllowBinary": reflect.ValueOf(build.AllowBinary),
16 | "ArchChar": reflect.ValueOf(build.ArchChar),
17 | "Default": reflect.ValueOf(&build.Default).Elem(),
18 | "FindOnly": reflect.ValueOf(build.FindOnly),
19 | "IgnoreVendor": reflect.ValueOf(build.IgnoreVendor),
20 | "Import": reflect.ValueOf(build.Import),
21 | "ImportComment": reflect.ValueOf(build.ImportComment),
22 | "ImportDir": reflect.ValueOf(build.ImportDir),
23 | "IsLocalImport": reflect.ValueOf(build.IsLocalImport),
24 | "ToolDir": reflect.ValueOf(&build.ToolDir).Elem(),
25 |
26 | // type definitions
27 | "Context": reflect.ValueOf((*build.Context)(nil)),
28 | "ImportMode": reflect.ValueOf((*build.ImportMode)(nil)),
29 | "MultiplePackageError": reflect.ValueOf((*build.MultiplePackageError)(nil)),
30 | "NoGoError": reflect.ValueOf((*build.NoGoError)(nil)),
31 | "Package": reflect.ValueOf((*build.Package)(nil)),
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract text/template'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "text/template"
10 | )
11 |
12 | func init() {
13 | Symbols["text/template/template"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "HTMLEscape": reflect.ValueOf(template.HTMLEscape),
16 | "HTMLEscapeString": reflect.ValueOf(template.HTMLEscapeString),
17 | "HTMLEscaper": reflect.ValueOf(template.HTMLEscaper),
18 | "IsTrue": reflect.ValueOf(template.IsTrue),
19 | "JSEscape": reflect.ValueOf(template.JSEscape),
20 | "JSEscapeString": reflect.ValueOf(template.JSEscapeString),
21 | "JSEscaper": reflect.ValueOf(template.JSEscaper),
22 | "Must": reflect.ValueOf(template.Must),
23 | "New": reflect.ValueOf(template.New),
24 | "ParseFiles": reflect.ValueOf(template.ParseFiles),
25 | "ParseGlob": reflect.ValueOf(template.ParseGlob),
26 | "URLQueryEscaper": reflect.ValueOf(template.URLQueryEscaper),
27 |
28 | // type definitions
29 | "ExecError": reflect.ValueOf((*template.ExecError)(nil)),
30 | "FuncMap": reflect.ValueOf((*template.FuncMap)(nil)),
31 | "Template": reflect.ValueOf((*template.Template)(nil)),
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_textproto.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/textproto'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/textproto"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/textproto/textproto"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "CanonicalMIMEHeaderKey": reflect.ValueOf(textproto.CanonicalMIMEHeaderKey),
16 | "Dial": reflect.ValueOf(textproto.Dial),
17 | "NewConn": reflect.ValueOf(textproto.NewConn),
18 | "NewReader": reflect.ValueOf(textproto.NewReader),
19 | "NewWriter": reflect.ValueOf(textproto.NewWriter),
20 | "TrimBytes": reflect.ValueOf(textproto.TrimBytes),
21 | "TrimString": reflect.ValueOf(textproto.TrimString),
22 |
23 | // type definitions
24 | "Conn": reflect.ValueOf((*textproto.Conn)(nil)),
25 | "Error": reflect.ValueOf((*textproto.Error)(nil)),
26 | "MIMEHeader": reflect.ValueOf((*textproto.MIMEHeader)(nil)),
27 | "Pipeline": reflect.ValueOf((*textproto.Pipeline)(nil)),
28 | "ProtocolError": reflect.ValueOf((*textproto.ProtocolError)(nil)),
29 | "Reader": reflect.ValueOf((*textproto.Reader)(nil)),
30 | "Writer": reflect.ValueOf((*textproto.Writer)(nil)),
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_gzip.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract compress/gzip'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "compress/gzip"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["compress/gzip/gzip"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BestCompression": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)),
18 | "BestSpeed": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)),
19 | "DefaultCompression": reflect.ValueOf(constant.MakeFromLiteral("-1", token.INT, 0)),
20 | "ErrChecksum": reflect.ValueOf(&gzip.ErrChecksum).Elem(),
21 | "ErrHeader": reflect.ValueOf(&gzip.ErrHeader).Elem(),
22 | "HuffmanOnly": reflect.ValueOf(constant.MakeFromLiteral("-2", token.INT, 0)),
23 | "NewReader": reflect.ValueOf(gzip.NewReader),
24 | "NewWriter": reflect.ValueOf(gzip.NewWriter),
25 | "NewWriterLevel": reflect.ValueOf(gzip.NewWriterLevel),
26 | "NoCompression": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)),
27 |
28 | // type definitions
29 | "Header": reflect.ValueOf((*gzip.Header)(nil)),
30 | "Reader": reflect.ValueOf((*gzip.Reader)(nil)),
31 | "Writer": reflect.ValueOf((*gzip.Writer)(nil)),
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_gzip.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract compress/gzip'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "compress/gzip"
9 | "go/constant"
10 | "go/token"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["compress/gzip/gzip"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "BestCompression": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)),
18 | "BestSpeed": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)),
19 | "DefaultCompression": reflect.ValueOf(constant.MakeFromLiteral("-1", token.INT, 0)),
20 | "ErrChecksum": reflect.ValueOf(&gzip.ErrChecksum).Elem(),
21 | "ErrHeader": reflect.ValueOf(&gzip.ErrHeader).Elem(),
22 | "HuffmanOnly": reflect.ValueOf(constant.MakeFromLiteral("-2", token.INT, 0)),
23 | "NewReader": reflect.ValueOf(gzip.NewReader),
24 | "NewWriter": reflect.ValueOf(gzip.NewWriter),
25 | "NewWriterLevel": reflect.ValueOf(gzip.NewWriterLevel),
26 | "NoCompression": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)),
27 |
28 | // type definitions
29 | "Header": reflect.ValueOf((*gzip.Header)(nil)),
30 | "Reader": reflect.ValueOf((*gzip.Reader)(nil)),
31 | "Writer": reflect.ValueOf((*gzip.Writer)(nil)),
32 | }
33 | }
34 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_textproto.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/textproto'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/textproto"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/textproto/textproto"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "CanonicalMIMEHeaderKey": reflect.ValueOf(textproto.CanonicalMIMEHeaderKey),
16 | "Dial": reflect.ValueOf(textproto.Dial),
17 | "NewConn": reflect.ValueOf(textproto.NewConn),
18 | "NewReader": reflect.ValueOf(textproto.NewReader),
19 | "NewWriter": reflect.ValueOf(textproto.NewWriter),
20 | "TrimBytes": reflect.ValueOf(textproto.TrimBytes),
21 | "TrimString": reflect.ValueOf(textproto.TrimString),
22 |
23 | // type definitions
24 | "Conn": reflect.ValueOf((*textproto.Conn)(nil)),
25 | "Error": reflect.ValueOf((*textproto.Error)(nil)),
26 | "MIMEHeader": reflect.ValueOf((*textproto.MIMEHeader)(nil)),
27 | "Pipeline": reflect.ValueOf((*textproto.Pipeline)(nil)),
28 | "ProtocolError": reflect.ValueOf((*textproto.ProtocolError)(nil)),
29 | "Reader": reflect.ValueOf((*textproto.Reader)(nil)),
30 | "Writer": reflect.ValueOf((*textproto.Writer)(nil)),
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_quick.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract testing/quick'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "math/rand"
9 | "reflect"
10 | "testing/quick"
11 | )
12 |
13 | func init() {
14 | Symbols["testing/quick/quick"] = map[string]reflect.Value{
15 | // function, constant and variable definitions
16 | "Check": reflect.ValueOf(quick.Check),
17 | "CheckEqual": reflect.ValueOf(quick.CheckEqual),
18 | "Value": reflect.ValueOf(quick.Value),
19 |
20 | // type definitions
21 | "CheckEqualError": reflect.ValueOf((*quick.CheckEqualError)(nil)),
22 | "CheckError": reflect.ValueOf((*quick.CheckError)(nil)),
23 | "Config": reflect.ValueOf((*quick.Config)(nil)),
24 | "Generator": reflect.ValueOf((*quick.Generator)(nil)),
25 | "SetupError": reflect.ValueOf((*quick.SetupError)(nil)),
26 |
27 | // interface wrapper definitions
28 | "_Generator": reflect.ValueOf((*_testing_quick_Generator)(nil)),
29 | }
30 | }
31 |
32 | // _testing_quick_Generator is an interface wrapper for Generator type
33 | type _testing_quick_Generator struct {
34 | IValue interface{}
35 | WGenerate func(rand *rand.Rand, size int) reflect.Value
36 | }
37 |
38 | func (W _testing_quick_Generator) Generate(rand *rand.Rand, size int) reflect.Value {
39 | return W.WGenerate(rand, size)
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_quick.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract testing/quick'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "math/rand"
9 | "reflect"
10 | "testing/quick"
11 | )
12 |
13 | func init() {
14 | Symbols["testing/quick/quick"] = map[string]reflect.Value{
15 | // function, constant and variable definitions
16 | "Check": reflect.ValueOf(quick.Check),
17 | "CheckEqual": reflect.ValueOf(quick.CheckEqual),
18 | "Value": reflect.ValueOf(quick.Value),
19 |
20 | // type definitions
21 | "CheckEqualError": reflect.ValueOf((*quick.CheckEqualError)(nil)),
22 | "CheckError": reflect.ValueOf((*quick.CheckError)(nil)),
23 | "Config": reflect.ValueOf((*quick.Config)(nil)),
24 | "Generator": reflect.ValueOf((*quick.Generator)(nil)),
25 | "SetupError": reflect.ValueOf((*quick.SetupError)(nil)),
26 |
27 | // interface wrapper definitions
28 | "_Generator": reflect.ValueOf((*_testing_quick_Generator)(nil)),
29 | }
30 | }
31 |
32 | // _testing_quick_Generator is an interface wrapper for Generator type
33 | type _testing_quick_Generator struct {
34 | IValue interface{}
35 | WGenerate func(rand *rand.Rand, size int) reflect.Value
36 | }
37 |
38 | func (W _testing_quick_Generator) Generate(rand *rand.Rand, size int) reflect.Value {
39 | return W.WGenerate(rand, size)
40 | }
41 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2015, Dave Cheney
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are met:
6 |
7 | * Redistributions of source code must retain the above copyright notice, this
8 | list of conditions and the following disclaimer.
9 |
10 | * Redistributions in binary form must reproduce the above copyright notice,
11 | this list of conditions and the following disclaimer in the documentation
12 | and/or other materials provided with the distribution.
13 |
14 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
15 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 | DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
18 | FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 | DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
20 | SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
21 | CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
22 | OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
23 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_template.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract text/template'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "reflect"
9 | "text/template"
10 | )
11 |
12 | func init() {
13 | Symbols["text/template/template"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "HTMLEscape": reflect.ValueOf(template.HTMLEscape),
16 | "HTMLEscapeString": reflect.ValueOf(template.HTMLEscapeString),
17 | "HTMLEscaper": reflect.ValueOf(template.HTMLEscaper),
18 | "IsTrue": reflect.ValueOf(template.IsTrue),
19 | "JSEscape": reflect.ValueOf(template.JSEscape),
20 | "JSEscapeString": reflect.ValueOf(template.JSEscapeString),
21 | "JSEscaper": reflect.ValueOf(template.JSEscaper),
22 | "Must": reflect.ValueOf(template.Must),
23 | "New": reflect.ValueOf(template.New),
24 | "ParseFS": reflect.ValueOf(template.ParseFS),
25 | "ParseFiles": reflect.ValueOf(template.ParseFiles),
26 | "ParseGlob": reflect.ValueOf(template.ParseGlob),
27 | "URLQueryEscaper": reflect.ValueOf(template.URLQueryEscaper),
28 |
29 | // type definitions
30 | "ExecError": reflect.ValueOf((*template.ExecError)(nil)),
31 | "FuncMap": reflect.ValueOf((*template.FuncMap)(nil)),
32 | "Template": reflect.ValueOf((*template.Template)(nil)),
33 | }
34 | }
35 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_doc.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/doc'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/doc"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/doc/doc"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "AllDecls": reflect.ValueOf(doc.AllDecls),
16 | "AllMethods": reflect.ValueOf(doc.AllMethods),
17 | "Examples": reflect.ValueOf(doc.Examples),
18 | "IllegalPrefixes": reflect.ValueOf(&doc.IllegalPrefixes).Elem(),
19 | "IsPredeclared": reflect.ValueOf(doc.IsPredeclared),
20 | "New": reflect.ValueOf(doc.New),
21 | "NewFromFiles": reflect.ValueOf(doc.NewFromFiles),
22 | "PreserveAST": reflect.ValueOf(doc.PreserveAST),
23 | "Synopsis": reflect.ValueOf(doc.Synopsis),
24 | "ToHTML": reflect.ValueOf(doc.ToHTML),
25 | "ToText": reflect.ValueOf(doc.ToText),
26 |
27 | // type definitions
28 | "Example": reflect.ValueOf((*doc.Example)(nil)),
29 | "Filter": reflect.ValueOf((*doc.Filter)(nil)),
30 | "Func": reflect.ValueOf((*doc.Func)(nil)),
31 | "Mode": reflect.ValueOf((*doc.Mode)(nil)),
32 | "Note": reflect.ValueOf((*doc.Note)(nil)),
33 | "Package": reflect.ValueOf((*doc.Package)(nil)),
34 | "Type": reflect.ValueOf((*doc.Type)(nil)),
35 | "Value": reflect.ValueOf((*doc.Value)(nil)),
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_doc.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract go/doc'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/doc"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["go/doc/doc"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "AllDecls": reflect.ValueOf(doc.AllDecls),
16 | "AllMethods": reflect.ValueOf(doc.AllMethods),
17 | "Examples": reflect.ValueOf(doc.Examples),
18 | "IllegalPrefixes": reflect.ValueOf(&doc.IllegalPrefixes).Elem(),
19 | "IsPredeclared": reflect.ValueOf(doc.IsPredeclared),
20 | "New": reflect.ValueOf(doc.New),
21 | "NewFromFiles": reflect.ValueOf(doc.NewFromFiles),
22 | "PreserveAST": reflect.ValueOf(doc.PreserveAST),
23 | "Synopsis": reflect.ValueOf(doc.Synopsis),
24 | "ToHTML": reflect.ValueOf(doc.ToHTML),
25 | "ToText": reflect.ValueOf(doc.ToText),
26 |
27 | // type definitions
28 | "Example": reflect.ValueOf((*doc.Example)(nil)),
29 | "Filter": reflect.ValueOf((*doc.Filter)(nil)),
30 | "Func": reflect.ValueOf((*doc.Func)(nil)),
31 | "Mode": reflect.ValueOf((*doc.Mode)(nil)),
32 | "Note": reflect.ValueOf((*doc.Note)(nil)),
33 | "Package": reflect.ValueOf((*doc.Package)(nil)),
34 | "Type": reflect.ValueOf((*doc.Type)(nil)),
35 | "Value": reflect.ValueOf((*doc.Value)(nil)),
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_jpeg.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract image/jpeg'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "image/jpeg"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["image/jpeg/jpeg"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Decode": reflect.ValueOf(jpeg.Decode),
18 | "DecodeConfig": reflect.ValueOf(jpeg.DecodeConfig),
19 | "DefaultQuality": reflect.ValueOf(constant.MakeFromLiteral("75", token.INT, 0)),
20 | "Encode": reflect.ValueOf(jpeg.Encode),
21 |
22 | // type definitions
23 | "FormatError": reflect.ValueOf((*jpeg.FormatError)(nil)),
24 | "Options": reflect.ValueOf((*jpeg.Options)(nil)),
25 | "Reader": reflect.ValueOf((*jpeg.Reader)(nil)),
26 | "UnsupportedError": reflect.ValueOf((*jpeg.UnsupportedError)(nil)),
27 |
28 | // interface wrapper definitions
29 | "_Reader": reflect.ValueOf((*_image_jpeg_Reader)(nil)),
30 | }
31 | }
32 |
33 | // _image_jpeg_Reader is an interface wrapper for Reader type
34 | type _image_jpeg_Reader struct {
35 | IValue interface{}
36 | WRead func(p []byte) (n int, err error)
37 | WReadByte func() (byte, error)
38 | }
39 |
40 | func (W _image_jpeg_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) }
41 | func (W _image_jpeg_Reader) ReadByte() (byte, error) { return W.WReadByte() }
42 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/value.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2020 Uber Technologies, Inc.
2 | //
3 | // Permission is hereby granted, free of charge, to any person obtaining a copy
4 | // of this software and associated documentation files (the "Software"), to deal
5 | // in the Software without restriction, including without limitation the rights
6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | // copies of the Software, and to permit persons to whom the Software is
8 | // furnished to do so, subject to the following conditions:
9 | //
10 | // The above copyright notice and this permission notice shall be included in
11 | // all copies or substantial portions of the Software.
12 | //
13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | // THE SOFTWARE.
20 |
21 | package atomic
22 |
23 | import "sync/atomic"
24 |
25 | // Value shadows the type of the same name from sync/atomic
26 | // https://godoc.org/sync/atomic#Value
27 | type Value struct {
28 | atomic.Value
29 |
30 | _ nocmp // disallow non-atomic comparison
31 | }
32 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_jpeg.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract image/jpeg'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "image/jpeg"
11 | "reflect"
12 | )
13 |
14 | func init() {
15 | Symbols["image/jpeg/jpeg"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "Decode": reflect.ValueOf(jpeg.Decode),
18 | "DecodeConfig": reflect.ValueOf(jpeg.DecodeConfig),
19 | "DefaultQuality": reflect.ValueOf(constant.MakeFromLiteral("75", token.INT, 0)),
20 | "Encode": reflect.ValueOf(jpeg.Encode),
21 |
22 | // type definitions
23 | "FormatError": reflect.ValueOf((*jpeg.FormatError)(nil)),
24 | "Options": reflect.ValueOf((*jpeg.Options)(nil)),
25 | "Reader": reflect.ValueOf((*jpeg.Reader)(nil)),
26 | "UnsupportedError": reflect.ValueOf((*jpeg.UnsupportedError)(nil)),
27 |
28 | // interface wrapper definitions
29 | "_Reader": reflect.ValueOf((*_image_jpeg_Reader)(nil)),
30 | }
31 | }
32 |
33 | // _image_jpeg_Reader is an interface wrapper for Reader type
34 | type _image_jpeg_Reader struct {
35 | IValue interface{}
36 | WRead func(p []byte) (n int, err error)
37 | WReadByte func() (byte, error)
38 | }
39 |
40 | func (W _image_jpeg_Reader) Read(p []byte) (n int, err error) { return W.WRead(p) }
41 | func (W _image_jpeg_Reader) ReadByte() (byte, error) { return W.WReadByte() }
42 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_expvar.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract expvar'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "expvar"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["expvar/expvar"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Do": reflect.ValueOf(expvar.Do),
16 | "Get": reflect.ValueOf(expvar.Get),
17 | "Handler": reflect.ValueOf(expvar.Handler),
18 | "NewFloat": reflect.ValueOf(expvar.NewFloat),
19 | "NewInt": reflect.ValueOf(expvar.NewInt),
20 | "NewMap": reflect.ValueOf(expvar.NewMap),
21 | "NewString": reflect.ValueOf(expvar.NewString),
22 | "Publish": reflect.ValueOf(expvar.Publish),
23 |
24 | // type definitions
25 | "Float": reflect.ValueOf((*expvar.Float)(nil)),
26 | "Func": reflect.ValueOf((*expvar.Func)(nil)),
27 | "Int": reflect.ValueOf((*expvar.Int)(nil)),
28 | "KeyValue": reflect.ValueOf((*expvar.KeyValue)(nil)),
29 | "Map": reflect.ValueOf((*expvar.Map)(nil)),
30 | "String": reflect.ValueOf((*expvar.String)(nil)),
31 | "Var": reflect.ValueOf((*expvar.Var)(nil)),
32 |
33 | // interface wrapper definitions
34 | "_Var": reflect.ValueOf((*_expvar_Var)(nil)),
35 | }
36 | }
37 |
38 | // _expvar_Var is an interface wrapper for Var type
39 | type _expvar_Var struct {
40 | IValue interface{}
41 | WString func() string
42 | }
43 |
44 | func (W _expvar_Var) String() string { return W.WString() }
45 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_smtp.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/smtp'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/smtp"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/smtp/smtp"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "CRAMMD5Auth": reflect.ValueOf(smtp.CRAMMD5Auth),
16 | "Dial": reflect.ValueOf(smtp.Dial),
17 | "NewClient": reflect.ValueOf(smtp.NewClient),
18 | "PlainAuth": reflect.ValueOf(smtp.PlainAuth),
19 | "SendMail": reflect.ValueOf(smtp.SendMail),
20 |
21 | // type definitions
22 | "Auth": reflect.ValueOf((*smtp.Auth)(nil)),
23 | "Client": reflect.ValueOf((*smtp.Client)(nil)),
24 | "ServerInfo": reflect.ValueOf((*smtp.ServerInfo)(nil)),
25 |
26 | // interface wrapper definitions
27 | "_Auth": reflect.ValueOf((*_net_smtp_Auth)(nil)),
28 | }
29 | }
30 |
31 | // _net_smtp_Auth is an interface wrapper for Auth type
32 | type _net_smtp_Auth struct {
33 | IValue interface{}
34 | WNext func(fromServer []byte, more bool) (toServer []byte, err error)
35 | WStart func(server *smtp.ServerInfo) (proto string, toServer []byte, err error)
36 | }
37 |
38 | func (W _net_smtp_Auth) Next(fromServer []byte, more bool) (toServer []byte, err error) {
39 | return W.WNext(fromServer, more)
40 | }
41 | func (W _net_smtp_Auth) Start(server *smtp.ServerInfo) (proto string, toServer []byte, err error) {
42 | return W.WStart(server)
43 | }
44 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_expvar.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract expvar'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "expvar"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["expvar/expvar"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Do": reflect.ValueOf(expvar.Do),
16 | "Get": reflect.ValueOf(expvar.Get),
17 | "Handler": reflect.ValueOf(expvar.Handler),
18 | "NewFloat": reflect.ValueOf(expvar.NewFloat),
19 | "NewInt": reflect.ValueOf(expvar.NewInt),
20 | "NewMap": reflect.ValueOf(expvar.NewMap),
21 | "NewString": reflect.ValueOf(expvar.NewString),
22 | "Publish": reflect.ValueOf(expvar.Publish),
23 |
24 | // type definitions
25 | "Float": reflect.ValueOf((*expvar.Float)(nil)),
26 | "Func": reflect.ValueOf((*expvar.Func)(nil)),
27 | "Int": reflect.ValueOf((*expvar.Int)(nil)),
28 | "KeyValue": reflect.ValueOf((*expvar.KeyValue)(nil)),
29 | "Map": reflect.ValueOf((*expvar.Map)(nil)),
30 | "String": reflect.ValueOf((*expvar.String)(nil)),
31 | "Var": reflect.ValueOf((*expvar.Var)(nil)),
32 |
33 | // interface wrapper definitions
34 | "_Var": reflect.ValueOf((*_expvar_Var)(nil)),
35 | }
36 | }
37 |
38 | // _expvar_Var is an interface wrapper for Var type
39 | type _expvar_Var struct {
40 | IValue interface{}
41 | WString func() string
42 | }
43 |
44 | func (W _expvar_Var) String() string { return W.WString() }
45 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_smtp.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract net/smtp'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "net/smtp"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["net/smtp/smtp"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "CRAMMD5Auth": reflect.ValueOf(smtp.CRAMMD5Auth),
16 | "Dial": reflect.ValueOf(smtp.Dial),
17 | "NewClient": reflect.ValueOf(smtp.NewClient),
18 | "PlainAuth": reflect.ValueOf(smtp.PlainAuth),
19 | "SendMail": reflect.ValueOf(smtp.SendMail),
20 |
21 | // type definitions
22 | "Auth": reflect.ValueOf((*smtp.Auth)(nil)),
23 | "Client": reflect.ValueOf((*smtp.Client)(nil)),
24 | "ServerInfo": reflect.ValueOf((*smtp.ServerInfo)(nil)),
25 |
26 | // interface wrapper definitions
27 | "_Auth": reflect.ValueOf((*_net_smtp_Auth)(nil)),
28 | }
29 | }
30 |
31 | // _net_smtp_Auth is an interface wrapper for Auth type
32 | type _net_smtp_Auth struct {
33 | IValue interface{}
34 | WNext func(fromServer []byte, more bool) (toServer []byte, err error)
35 | WStart func(server *smtp.ServerInfo) (proto string, toServer []byte, err error)
36 | }
37 |
38 | func (W _net_smtp_Auth) Next(fromServer []byte, more bool) (toServer []byte, err error) {
39 | return W.WNext(fromServer, more)
40 | }
41 | func (W _net_smtp_Auth) Start(server *smtp.ServerInfo) (proto string, toServer []byte, err error) {
42 | return W.WStart(server)
43 | }
44 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_heap.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract container/heap'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "container/heap"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["container/heap/heap"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Fix": reflect.ValueOf(heap.Fix),
16 | "Init": reflect.ValueOf(heap.Init),
17 | "Pop": reflect.ValueOf(heap.Pop),
18 | "Push": reflect.ValueOf(heap.Push),
19 | "Remove": reflect.ValueOf(heap.Remove),
20 |
21 | // type definitions
22 | "Interface": reflect.ValueOf((*heap.Interface)(nil)),
23 |
24 | // interface wrapper definitions
25 | "_Interface": reflect.ValueOf((*_container_heap_Interface)(nil)),
26 | }
27 | }
28 |
29 | // _container_heap_Interface is an interface wrapper for Interface type
30 | type _container_heap_Interface struct {
31 | IValue interface{}
32 | WLen func() int
33 | WLess func(i int, j int) bool
34 | WPop func() interface{}
35 | WPush func(x interface{})
36 | WSwap func(i int, j int)
37 | }
38 |
39 | func (W _container_heap_Interface) Len() int { return W.WLen() }
40 | func (W _container_heap_Interface) Less(i int, j int) bool { return W.WLess(i, j) }
41 | func (W _container_heap_Interface) Pop() interface{} { return W.WPop() }
42 | func (W _container_heap_Interface) Push(x interface{}) { W.WPush(x) }
43 | func (W _container_heap_Interface) Swap(i int, j int) { W.WSwap(i, j) }
44 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_heap.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract container/heap'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "container/heap"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["container/heap/heap"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Fix": reflect.ValueOf(heap.Fix),
16 | "Init": reflect.ValueOf(heap.Init),
17 | "Pop": reflect.ValueOf(heap.Pop),
18 | "Push": reflect.ValueOf(heap.Push),
19 | "Remove": reflect.ValueOf(heap.Remove),
20 |
21 | // type definitions
22 | "Interface": reflect.ValueOf((*heap.Interface)(nil)),
23 |
24 | // interface wrapper definitions
25 | "_Interface": reflect.ValueOf((*_container_heap_Interface)(nil)),
26 | }
27 | }
28 |
29 | // _container_heap_Interface is an interface wrapper for Interface type
30 | type _container_heap_Interface struct {
31 | IValue interface{}
32 | WLen func() int
33 | WLess func(i int, j int) bool
34 | WPop func() interface{}
35 | WPush func(x interface{})
36 | WSwap func(i int, j int)
37 | }
38 |
39 | func (W _container_heap_Interface) Len() int { return W.WLen() }
40 | func (W _container_heap_Interface) Less(i int, j int) bool { return W.WLess(i, j) }
41 | func (W _container_heap_Interface) Pop() interface{} { return W.WPop() }
42 | func (W _container_heap_Interface) Push(x interface{}) { W.WPush(x) }
43 | func (W _container_heap_Interface) Swap(i int, j int) { W.WSwap(i, j) }
44 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_archive_zip.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract archive/zip'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "archive/zip"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["archive/zip/zip"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Deflate": reflect.ValueOf(zip.Deflate),
16 | "ErrAlgorithm": reflect.ValueOf(&zip.ErrAlgorithm).Elem(),
17 | "ErrChecksum": reflect.ValueOf(&zip.ErrChecksum).Elem(),
18 | "ErrFormat": reflect.ValueOf(&zip.ErrFormat).Elem(),
19 | "FileInfoHeader": reflect.ValueOf(zip.FileInfoHeader),
20 | "NewReader": reflect.ValueOf(zip.NewReader),
21 | "NewWriter": reflect.ValueOf(zip.NewWriter),
22 | "OpenReader": reflect.ValueOf(zip.OpenReader),
23 | "RegisterCompressor": reflect.ValueOf(zip.RegisterCompressor),
24 | "RegisterDecompressor": reflect.ValueOf(zip.RegisterDecompressor),
25 | "Store": reflect.ValueOf(zip.Store),
26 |
27 | // type definitions
28 | "Compressor": reflect.ValueOf((*zip.Compressor)(nil)),
29 | "Decompressor": reflect.ValueOf((*zip.Decompressor)(nil)),
30 | "File": reflect.ValueOf((*zip.File)(nil)),
31 | "FileHeader": reflect.ValueOf((*zip.FileHeader)(nil)),
32 | "ReadCloser": reflect.ValueOf((*zip.ReadCloser)(nil)),
33 | "Reader": reflect.ValueOf((*zip.Reader)(nil)),
34 | "Writer": reflect.ValueOf((*zip.Writer)(nil)),
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_cmplx.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract math/cmplx'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "math/cmplx"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["math/cmplx/cmplx"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Abs": reflect.ValueOf(cmplx.Abs),
16 | "Acos": reflect.ValueOf(cmplx.Acos),
17 | "Acosh": reflect.ValueOf(cmplx.Acosh),
18 | "Asin": reflect.ValueOf(cmplx.Asin),
19 | "Asinh": reflect.ValueOf(cmplx.Asinh),
20 | "Atan": reflect.ValueOf(cmplx.Atan),
21 | "Atanh": reflect.ValueOf(cmplx.Atanh),
22 | "Conj": reflect.ValueOf(cmplx.Conj),
23 | "Cos": reflect.ValueOf(cmplx.Cos),
24 | "Cosh": reflect.ValueOf(cmplx.Cosh),
25 | "Cot": reflect.ValueOf(cmplx.Cot),
26 | "Exp": reflect.ValueOf(cmplx.Exp),
27 | "Inf": reflect.ValueOf(cmplx.Inf),
28 | "IsInf": reflect.ValueOf(cmplx.IsInf),
29 | "IsNaN": reflect.ValueOf(cmplx.IsNaN),
30 | "Log": reflect.ValueOf(cmplx.Log),
31 | "Log10": reflect.ValueOf(cmplx.Log10),
32 | "NaN": reflect.ValueOf(cmplx.NaN),
33 | "Phase": reflect.ValueOf(cmplx.Phase),
34 | "Polar": reflect.ValueOf(cmplx.Polar),
35 | "Pow": reflect.ValueOf(cmplx.Pow),
36 | "Rect": reflect.ValueOf(cmplx.Rect),
37 | "Sin": reflect.ValueOf(cmplx.Sin),
38 | "Sinh": reflect.ValueOf(cmplx.Sinh),
39 | "Sqrt": reflect.ValueOf(cmplx.Sqrt),
40 | "Tan": reflect.ValueOf(cmplx.Tan),
41 | "Tanh": reflect.ValueOf(cmplx.Tanh),
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_zip.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract archive/zip'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "archive/zip"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["archive/zip/zip"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Deflate": reflect.ValueOf(zip.Deflate),
16 | "ErrAlgorithm": reflect.ValueOf(&zip.ErrAlgorithm).Elem(),
17 | "ErrChecksum": reflect.ValueOf(&zip.ErrChecksum).Elem(),
18 | "ErrFormat": reflect.ValueOf(&zip.ErrFormat).Elem(),
19 | "FileInfoHeader": reflect.ValueOf(zip.FileInfoHeader),
20 | "NewReader": reflect.ValueOf(zip.NewReader),
21 | "NewWriter": reflect.ValueOf(zip.NewWriter),
22 | "OpenReader": reflect.ValueOf(zip.OpenReader),
23 | "RegisterCompressor": reflect.ValueOf(zip.RegisterCompressor),
24 | "RegisterDecompressor": reflect.ValueOf(zip.RegisterDecompressor),
25 | "Store": reflect.ValueOf(zip.Store),
26 |
27 | // type definitions
28 | "Compressor": reflect.ValueOf((*zip.Compressor)(nil)),
29 | "Decompressor": reflect.ValueOf((*zip.Decompressor)(nil)),
30 | "File": reflect.ValueOf((*zip.File)(nil)),
31 | "FileHeader": reflect.ValueOf((*zip.FileHeader)(nil)),
32 | "ReadCloser": reflect.ValueOf((*zip.ReadCloser)(nil)),
33 | "Reader": reflect.ValueOf((*zip.Reader)(nil)),
34 | "Writer": reflect.ValueOf((*zip.Writer)(nil)),
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_cmplx.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract math/cmplx'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "math/cmplx"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["math/cmplx/cmplx"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "Abs": reflect.ValueOf(cmplx.Abs),
16 | "Acos": reflect.ValueOf(cmplx.Acos),
17 | "Acosh": reflect.ValueOf(cmplx.Acosh),
18 | "Asin": reflect.ValueOf(cmplx.Asin),
19 | "Asinh": reflect.ValueOf(cmplx.Asinh),
20 | "Atan": reflect.ValueOf(cmplx.Atan),
21 | "Atanh": reflect.ValueOf(cmplx.Atanh),
22 | "Conj": reflect.ValueOf(cmplx.Conj),
23 | "Cos": reflect.ValueOf(cmplx.Cos),
24 | "Cosh": reflect.ValueOf(cmplx.Cosh),
25 | "Cot": reflect.ValueOf(cmplx.Cot),
26 | "Exp": reflect.ValueOf(cmplx.Exp),
27 | "Inf": reflect.ValueOf(cmplx.Inf),
28 | "IsInf": reflect.ValueOf(cmplx.IsInf),
29 | "IsNaN": reflect.ValueOf(cmplx.IsNaN),
30 | "Log": reflect.ValueOf(cmplx.Log),
31 | "Log10": reflect.ValueOf(cmplx.Log10),
32 | "NaN": reflect.ValueOf(cmplx.NaN),
33 | "Phase": reflect.ValueOf(cmplx.Phase),
34 | "Polar": reflect.ValueOf(cmplx.Polar),
35 | "Pow": reflect.ValueOf(cmplx.Pow),
36 | "Rect": reflect.ValueOf(cmplx.Rect),
37 | "Sin": reflect.ValueOf(cmplx.Sin),
38 | "Sinh": reflect.ValueOf(cmplx.Sinh),
39 | "Sqrt": reflect.ValueOf(cmplx.Sqrt),
40 | "Tan": reflect.ValueOf(cmplx.Tan),
41 | "Tanh": reflect.ValueOf(cmplx.Tanh),
42 | }
43 | }
44 |
--------------------------------------------------------------------------------
/vendor/github.com/pmezard/go-difflib/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright (c) 2013, Patrick Mezard
2 | All rights reserved.
3 |
4 | Redistribution and use in source and binary forms, with or without
5 | modification, are permitted provided that the following conditions are
6 | met:
7 |
8 | Redistributions of source code must retain the above copyright
9 | notice, this list of conditions and the following disclaimer.
10 | Redistributions in binary form must reproduce the above copyright
11 | notice, this list of conditions and the following disclaimer in the
12 | documentation and/or other materials provided with the distribution.
13 | The names of its contributors may not be used to endorse or promote
14 | products derived from this software without specific prior written
15 | permission.
16 |
17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
18 | IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
19 | TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
20 | PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 | HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
23 | TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
24 | PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
25 | LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
26 | NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 |
--------------------------------------------------------------------------------
/vendor/github.com/stretchr/testify/assert/doc.go:
--------------------------------------------------------------------------------
1 | // Package assert provides a set of comprehensive testing tools for use with the normal Go testing system.
2 | //
3 | // Example Usage
4 | //
5 | // The following is a complete example using assert in a standard test function:
6 | // import (
7 | // "testing"
8 | // "github.com/stretchr/testify/assert"
9 | // )
10 | //
11 | // func TestSomething(t *testing.T) {
12 | //
13 | // var a string = "Hello"
14 | // var b string = "Hello"
15 | //
16 | // assert.Equal(t, a, b, "The two words should be the same.")
17 | //
18 | // }
19 | //
20 | // if you assert many times, use the format below:
21 | //
22 | // import (
23 | // "testing"
24 | // "github.com/stretchr/testify/assert"
25 | // )
26 | //
27 | // func TestSomething(t *testing.T) {
28 | // assert := assert.New(t)
29 | //
30 | // var a string = "Hello"
31 | // var b string = "Hello"
32 | //
33 | // assert.Equal(a, b, "The two words should be the same.")
34 | // }
35 | //
36 | // Assertions
37 | //
38 | // Assertions allow you to easily write test code, and are global funcs in the `assert` package.
39 | // All assertion functions take, as the first argument, the `*testing.T` object provided by the
40 | // testing framework. This allows the assertion funcs to write the failings and other details to
41 | // the correct place.
42 | //
43 | // Every assertion function also takes an optional string message as the final argument,
44 | // allowing custom error messages to be appended to the message the assertion method outputs.
45 | package assert
46 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/nocmp.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2020 Uber Technologies, Inc.
2 | //
3 | // Permission is hereby granted, free of charge, to any person obtaining a copy
4 | // of this software and associated documentation files (the "Software"), to deal
5 | // in the Software without restriction, including without limitation the rights
6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | // copies of the Software, and to permit persons to whom the Software is
8 | // furnished to do so, subject to the following conditions:
9 | //
10 | // The above copyright notice and this permission notice shall be included in
11 | // all copies or substantial portions of the Software.
12 | //
13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | // THE SOFTWARE.
20 |
21 | package atomic
22 |
23 | // nocmp is an uncomparable struct. Embed this inside another struct to make
24 | // it uncomparable.
25 | //
26 | // type Foo struct {
27 | // nocmp
28 | // // ...
29 | // }
30 | //
31 | // This DOES NOT:
32 | //
33 | // - Disallow shallow copies of structs
34 | // - Disallow comparison of pointers to uncomparable structs
35 | type nocmp [0]func()
36 |
--------------------------------------------------------------------------------
/vendor/github.com/pkg/errors/go113.go:
--------------------------------------------------------------------------------
1 | // +build go1.13
2 |
3 | package errors
4 |
5 | import (
6 | stderrors "errors"
7 | )
8 |
9 | // Is reports whether any error in err's chain matches target.
10 | //
11 | // The chain consists of err itself followed by the sequence of errors obtained by
12 | // repeatedly calling Unwrap.
13 | //
14 | // An error is considered to match a target if it is equal to that target or if
15 | // it implements a method Is(error) bool such that Is(target) returns true.
16 | func Is(err, target error) bool { return stderrors.Is(err, target) }
17 |
18 | // As finds the first error in err's chain that matches target, and if so, sets
19 | // target to that error value and returns true.
20 | //
21 | // The chain consists of err itself followed by the sequence of errors obtained by
22 | // repeatedly calling Unwrap.
23 | //
24 | // An error matches target if the error's concrete value is assignable to the value
25 | // pointed to by target, or if the error has a method As(interface{}) bool such that
26 | // As(target) returns true. In the latter case, the As method is responsible for
27 | // setting target.
28 | //
29 | // As will panic if target is not a non-nil pointer to either a type that implements
30 | // error, or to any interface type. As returns false if err is nil.
31 | func As(err error, target interface{}) bool { return stderrors.As(err, target) }
32 |
33 | // Unwrap returns the result of calling the Unwrap method on err, if err's
34 | // type contains an Unwrap method returning error.
35 | // Otherwise, Unwrap returns nil.
36 | func Unwrap(err error) error {
37 | return stderrors.Unwrap(err)
38 | }
39 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/time_ext.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2021 Uber Technologies, Inc.
2 | //
3 | // Permission is hereby granted, free of charge, to any person obtaining a copy
4 | // of this software and associated documentation files (the "Software"), to deal
5 | // in the Software without restriction, including without limitation the rights
6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | // copies of the Software, and to permit persons to whom the Software is
8 | // furnished to do so, subject to the following conditions:
9 | //
10 | // The above copyright notice and this permission notice shall be included in
11 | // all copies or substantial portions of the Software.
12 | //
13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | // THE SOFTWARE.
20 |
21 | package atomic
22 |
23 | import "time"
24 |
25 | //go:generate bin/gen-atomicwrapper -name=Time -type=time.Time -wrapped=Value -pack=packTime -unpack=unpackTime -imports time -file=time.go
26 |
27 | func packTime(t time.Time) interface{} {
28 | return t
29 | }
30 |
31 | func unpackTime(v interface{}) time.Time {
32 | if t, ok := v.(time.Time); ok {
33 | return t
34 | }
35 | return time.Time{}
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/gen.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2020 Uber Technologies, Inc.
2 | //
3 | // Permission is hereby granted, free of charge, to any person obtaining a copy
4 | // of this software and associated documentation files (the "Software"), to deal
5 | // in the Software without restriction, including without limitation the rights
6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | // copies of the Software, and to permit persons to whom the Software is
8 | // furnished to do so, subject to the following conditions:
9 | //
10 | // The above copyright notice and this permission notice shall be included in
11 | // all copies or substantial portions of the Software.
12 | //
13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | // THE SOFTWARE.
20 |
21 | package atomic
22 |
23 | //go:generate bin/gen-atomicint -name=Int32 -wrapped=int32 -file=int32.go
24 | //go:generate bin/gen-atomicint -name=Int64 -wrapped=int64 -file=int64.go
25 | //go:generate bin/gen-atomicint -name=Uint32 -wrapped=uint32 -unsigned -file=uint32.go
26 | //go:generate bin/gen-atomicint -name=Uint64 -wrapped=uint64 -unsigned -file=uint64.go
27 | //go:generate bin/gen-atomicint -name=Uintptr -wrapped=uintptr -unsigned -file=uintptr.go
28 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/interp/doc.go:
--------------------------------------------------------------------------------
1 | /*
2 | Package interp provides a complete Go interpreter.
3 |
4 | For the Go language itself, refer to the official Go specification
5 | https://golang.org/ref/spec.
6 |
7 | Importing packages
8 |
9 | Packages can be imported in source or binary form, using the standard
10 | Go import statement. In source form, packages are searched first in the
11 | vendor directory, the preferred way to store source dependencies. If not
12 | found in vendor, sources modules will be searched in GOPATH. Go modules
13 | are not supported yet by yaegi.
14 |
15 | Binary form packages are compiled and linked with the interpreter
16 | executable, and exposed to scripts with the Use method. The extract
17 | subcommand of yaegi can be used to generate package wrappers.
18 |
19 | Custom build tags
20 |
21 | Custom build tags allow to control which files in imported source
22 | packages are interpreted, in the same way as the "-tags" option of the
23 | "go build" command. Setting a custom build tag spans globally for all
24 | future imports of the session.
25 |
26 | A build tag is a line comment that begins
27 |
28 | // yaegi:tags
29 |
30 | that lists the build constraints to be satisfied by the further
31 | imports of source packages.
32 |
33 | For example the following custom build tag
34 |
35 | // yaegi:tags noasm
36 |
37 | Will ensure that an import of a package will exclude files containing
38 |
39 | // +build !noasm
40 |
41 | And include files containing
42 |
43 | // +build noasm
44 | */
45 | package interp
46 |
47 | // BUG(marc): Support for recursive types is incomplete.
48 | // BUG(marc): Support of types implementing multiple interfaces is incomplete.
49 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_gob.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/gob'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/gob"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/gob/gob"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewDecoder": reflect.ValueOf(gob.NewDecoder),
16 | "NewEncoder": reflect.ValueOf(gob.NewEncoder),
17 | "Register": reflect.ValueOf(gob.Register),
18 | "RegisterName": reflect.ValueOf(gob.RegisterName),
19 |
20 | // type definitions
21 | "CommonType": reflect.ValueOf((*gob.CommonType)(nil)),
22 | "Decoder": reflect.ValueOf((*gob.Decoder)(nil)),
23 | "Encoder": reflect.ValueOf((*gob.Encoder)(nil)),
24 | "GobDecoder": reflect.ValueOf((*gob.GobDecoder)(nil)),
25 | "GobEncoder": reflect.ValueOf((*gob.GobEncoder)(nil)),
26 |
27 | // interface wrapper definitions
28 | "_GobDecoder": reflect.ValueOf((*_encoding_gob_GobDecoder)(nil)),
29 | "_GobEncoder": reflect.ValueOf((*_encoding_gob_GobEncoder)(nil)),
30 | }
31 | }
32 |
33 | // _encoding_gob_GobDecoder is an interface wrapper for GobDecoder type
34 | type _encoding_gob_GobDecoder struct {
35 | IValue interface{}
36 | WGobDecode func(a0 []byte) error
37 | }
38 |
39 | func (W _encoding_gob_GobDecoder) GobDecode(a0 []byte) error { return W.WGobDecode(a0) }
40 |
41 | // _encoding_gob_GobEncoder is an interface wrapper for GobEncoder type
42 | type _encoding_gob_GobEncoder struct {
43 | IValue interface{}
44 | WGobEncode func() ([]byte, error)
45 | }
46 |
47 | func (W _encoding_gob_GobEncoder) GobEncode() ([]byte, error) { return W.WGobEncode() }
48 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_gob.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract encoding/gob'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "encoding/gob"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["encoding/gob/gob"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "NewDecoder": reflect.ValueOf(gob.NewDecoder),
16 | "NewEncoder": reflect.ValueOf(gob.NewEncoder),
17 | "Register": reflect.ValueOf(gob.Register),
18 | "RegisterName": reflect.ValueOf(gob.RegisterName),
19 |
20 | // type definitions
21 | "CommonType": reflect.ValueOf((*gob.CommonType)(nil)),
22 | "Decoder": reflect.ValueOf((*gob.Decoder)(nil)),
23 | "Encoder": reflect.ValueOf((*gob.Encoder)(nil)),
24 | "GobDecoder": reflect.ValueOf((*gob.GobDecoder)(nil)),
25 | "GobEncoder": reflect.ValueOf((*gob.GobEncoder)(nil)),
26 |
27 | // interface wrapper definitions
28 | "_GobDecoder": reflect.ValueOf((*_encoding_gob_GobDecoder)(nil)),
29 | "_GobEncoder": reflect.ValueOf((*_encoding_gob_GobEncoder)(nil)),
30 | }
31 | }
32 |
33 | // _encoding_gob_GobDecoder is an interface wrapper for GobDecoder type
34 | type _encoding_gob_GobDecoder struct {
35 | IValue interface{}
36 | WGobDecode func(a0 []byte) error
37 | }
38 |
39 | func (W _encoding_gob_GobDecoder) GobDecode(a0 []byte) error { return W.WGobDecode(a0) }
40 |
41 | // _encoding_gob_GobEncoder is an interface wrapper for GobEncoder type
42 | type _encoding_gob_GobEncoder struct {
43 | IValue interface{}
44 | WGobEncode func() ([]byte, error)
45 | }
46 |
47 | func (W _encoding_gob_GobEncoder) GobEncode() ([]byte, error) { return W.WGobEncode() }
48 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf8.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract unicode/utf8'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "reflect"
11 | "unicode/utf8"
12 | )
13 |
14 | func init() {
15 | Symbols["unicode/utf8/utf8"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "DecodeLastRune": reflect.ValueOf(utf8.DecodeLastRune),
18 | "DecodeLastRuneInString": reflect.ValueOf(utf8.DecodeLastRuneInString),
19 | "DecodeRune": reflect.ValueOf(utf8.DecodeRune),
20 | "DecodeRuneInString": reflect.ValueOf(utf8.DecodeRuneInString),
21 | "EncodeRune": reflect.ValueOf(utf8.EncodeRune),
22 | "FullRune": reflect.ValueOf(utf8.FullRune),
23 | "FullRuneInString": reflect.ValueOf(utf8.FullRuneInString),
24 | "MaxRune": reflect.ValueOf(constant.MakeFromLiteral("1114111", token.INT, 0)),
25 | "RuneCount": reflect.ValueOf(utf8.RuneCount),
26 | "RuneCountInString": reflect.ValueOf(utf8.RuneCountInString),
27 | "RuneError": reflect.ValueOf(constant.MakeFromLiteral("65533", token.INT, 0)),
28 | "RuneLen": reflect.ValueOf(utf8.RuneLen),
29 | "RuneSelf": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)),
30 | "RuneStart": reflect.ValueOf(utf8.RuneStart),
31 | "UTFMax": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
32 | "Valid": reflect.ValueOf(utf8.Valid),
33 | "ValidRune": reflect.ValueOf(utf8.ValidRune),
34 | "ValidString": reflect.ValueOf(utf8.ValidString),
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf8.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract unicode/utf8'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "go/constant"
9 | "go/token"
10 | "reflect"
11 | "unicode/utf8"
12 | )
13 |
14 | func init() {
15 | Symbols["unicode/utf8/utf8"] = map[string]reflect.Value{
16 | // function, constant and variable definitions
17 | "DecodeLastRune": reflect.ValueOf(utf8.DecodeLastRune),
18 | "DecodeLastRuneInString": reflect.ValueOf(utf8.DecodeLastRuneInString),
19 | "DecodeRune": reflect.ValueOf(utf8.DecodeRune),
20 | "DecodeRuneInString": reflect.ValueOf(utf8.DecodeRuneInString),
21 | "EncodeRune": reflect.ValueOf(utf8.EncodeRune),
22 | "FullRune": reflect.ValueOf(utf8.FullRune),
23 | "FullRuneInString": reflect.ValueOf(utf8.FullRuneInString),
24 | "MaxRune": reflect.ValueOf(constant.MakeFromLiteral("1114111", token.INT, 0)),
25 | "RuneCount": reflect.ValueOf(utf8.RuneCount),
26 | "RuneCountInString": reflect.ValueOf(utf8.RuneCountInString),
27 | "RuneError": reflect.ValueOf(constant.MakeFromLiteral("65533", token.INT, 0)),
28 | "RuneLen": reflect.ValueOf(utf8.RuneLen),
29 | "RuneSelf": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)),
30 | "RuneStart": reflect.ValueOf(utf8.RuneStart),
31 | "UTFMax": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)),
32 | "Valid": reflect.ValueOf(utf8.Valid),
33 | "ValidRune": reflect.ValueOf(utf8.ValidRune),
34 | "ValidString": reflect.ValueOf(utf8.ValidString),
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/vendor/go.uber.org/atomic/error_ext.go:
--------------------------------------------------------------------------------
1 | // Copyright (c) 2020 Uber Technologies, Inc.
2 | //
3 | // Permission is hereby granted, free of charge, to any person obtaining a copy
4 | // of this software and associated documentation files (the "Software"), to deal
5 | // in the Software without restriction, including without limitation the rights
6 | // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7 | // copies of the Software, and to permit persons to whom the Software is
8 | // furnished to do so, subject to the following conditions:
9 | //
10 | // The above copyright notice and this permission notice shall be included in
11 | // all copies or substantial portions of the Software.
12 | //
13 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14 | // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15 | // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16 | // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17 | // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18 | // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19 | // THE SOFTWARE.
20 |
21 | package atomic
22 |
23 | // atomic.Value panics on nil inputs, or if the underlying type changes.
24 | // Stabilize by always storing a custom struct that we control.
25 |
26 | //go:generate bin/gen-atomicwrapper -name=Error -type=error -wrapped=Value -pack=packError -unpack=unpackError -file=error.go
27 |
28 | type packedError struct{ Value error }
29 |
30 | func packError(v error) interface{} {
31 | return packedError{v}
32 | }
33 |
34 | func unpackError(v interface{}) error {
35 | if err, ok := v.(packedError); ok {
36 | return err.Value
37 | }
38 | return nil
39 | }
40 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_png.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract image/png'. DO NOT EDIT.
2 |
3 | // +build go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "image/png"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["image/png/png"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "BestCompression": reflect.ValueOf(png.BestCompression),
16 | "BestSpeed": reflect.ValueOf(png.BestSpeed),
17 | "Decode": reflect.ValueOf(png.Decode),
18 | "DecodeConfig": reflect.ValueOf(png.DecodeConfig),
19 | "DefaultCompression": reflect.ValueOf(png.DefaultCompression),
20 | "Encode": reflect.ValueOf(png.Encode),
21 | "NoCompression": reflect.ValueOf(png.NoCompression),
22 |
23 | // type definitions
24 | "CompressionLevel": reflect.ValueOf((*png.CompressionLevel)(nil)),
25 | "Encoder": reflect.ValueOf((*png.Encoder)(nil)),
26 | "EncoderBuffer": reflect.ValueOf((*png.EncoderBuffer)(nil)),
27 | "EncoderBufferPool": reflect.ValueOf((*png.EncoderBufferPool)(nil)),
28 | "FormatError": reflect.ValueOf((*png.FormatError)(nil)),
29 | "UnsupportedError": reflect.ValueOf((*png.UnsupportedError)(nil)),
30 |
31 | // interface wrapper definitions
32 | "_EncoderBufferPool": reflect.ValueOf((*_image_png_EncoderBufferPool)(nil)),
33 | }
34 | }
35 |
36 | // _image_png_EncoderBufferPool is an interface wrapper for EncoderBufferPool type
37 | type _image_png_EncoderBufferPool struct {
38 | IValue interface{}
39 | WGet func() *png.EncoderBuffer
40 | WPut func(a0 *png.EncoderBuffer)
41 | }
42 |
43 | func (W _image_png_EncoderBufferPool) Get() *png.EncoderBuffer { return W.WGet() }
44 | func (W _image_png_EncoderBufferPool) Put(a0 *png.EncoderBuffer) { W.WPut(a0) }
45 |
--------------------------------------------------------------------------------
/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_png.go:
--------------------------------------------------------------------------------
1 | // Code generated by 'yaegi extract image/png'. DO NOT EDIT.
2 |
3 | // +build go1.15,!go1.16
4 |
5 | package stdlib
6 |
7 | import (
8 | "image/png"
9 | "reflect"
10 | )
11 |
12 | func init() {
13 | Symbols["image/png/png"] = map[string]reflect.Value{
14 | // function, constant and variable definitions
15 | "BestCompression": reflect.ValueOf(png.BestCompression),
16 | "BestSpeed": reflect.ValueOf(png.BestSpeed),
17 | "Decode": reflect.ValueOf(png.Decode),
18 | "DecodeConfig": reflect.ValueOf(png.DecodeConfig),
19 | "DefaultCompression": reflect.ValueOf(png.DefaultCompression),
20 | "Encode": reflect.ValueOf(png.Encode),
21 | "NoCompression": reflect.ValueOf(png.NoCompression),
22 |
23 | // type definitions
24 | "CompressionLevel": reflect.ValueOf((*png.CompressionLevel)(nil)),
25 | "Encoder": reflect.ValueOf((*png.Encoder)(nil)),
26 | "EncoderBuffer": reflect.ValueOf((*png.EncoderBuffer)(nil)),
27 | "EncoderBufferPool": reflect.ValueOf((*png.EncoderBufferPool)(nil)),
28 | "FormatError": reflect.ValueOf((*png.FormatError)(nil)),
29 | "UnsupportedError": reflect.ValueOf((*png.UnsupportedError)(nil)),
30 |
31 | // interface wrapper definitions
32 | "_EncoderBufferPool": reflect.ValueOf((*_image_png_EncoderBufferPool)(nil)),
33 | }
34 | }
35 |
36 | // _image_png_EncoderBufferPool is an interface wrapper for EncoderBufferPool type
37 | type _image_png_EncoderBufferPool struct {
38 | IValue interface{}
39 | WGet func() *png.EncoderBuffer
40 | WPut func(a0 *png.EncoderBuffer)
41 | }
42 |
43 | func (W _image_png_EncoderBufferPool) Get() *png.EncoderBuffer { return W.WGet() }
44 | func (W _image_png_EncoderBufferPool) Put(a0 *png.EncoderBuffer) { W.WPut(a0) }
45 |
--------------------------------------------------------------------------------