From 3a0796f97acfb5afb4445b629976afe91bb7290f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 Apr 2021 11:41:39 +0200 Subject: [PATCH] chore: bump github.com/traefik/yaegi from 0.9.10 to 0.9.16 (#28) Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tobias Salzmann <796084+Eun@users.noreply.github.com> --- .github/workflows/ci.yml | 2 +- go.mod | 2 +- go.sum | 7 +- vendor/github.com/traefik/yaegi/interp/ast.go | 9 +- .../github.com/traefik/yaegi/interp/build.go | 3 +- vendor/github.com/traefik/yaegi/interp/cfg.go | 97 +- vendor/github.com/traefik/yaegi/interp/gta.go | 11 +- .../github.com/traefik/yaegi/interp/interp.go | 18 +- vendor/github.com/traefik/yaegi/interp/op.go | 678 ++++++++++++-- vendor/github.com/traefik/yaegi/interp/run.go | 854 +++++++++++++----- vendor/github.com/traefik/yaegi/interp/src.go | 11 +- .../github.com/traefik/yaegi/interp/type.go | 102 ++- .../traefik/yaegi/interp/typecheck.go | 13 +- .../github.com/traefik/yaegi/interp/value.go | 75 +- .../traefik/yaegi/stdlib/go1_14_debug_pe.go | 74 -- .../traefik/yaegi/stdlib/go1_14_os.go | 156 ---- .../traefik/yaegi/stdlib/go1_14_os_signal.go | 21 - .../yaegi/stdlib/go1_15_archive_tar.go | 2 +- .../yaegi/stdlib/go1_15_archive_zip.go | 2 +- .../traefik/yaegi/stdlib/go1_15_bufio.go | 2 +- .../traefik/yaegi/stdlib/go1_15_bytes.go | 2 +- .../yaegi/stdlib/go1_15_compress_bzip2.go | 2 +- .../yaegi/stdlib/go1_15_compress_flate.go | 2 +- .../yaegi/stdlib/go1_15_compress_gzip.go | 2 +- .../yaegi/stdlib/go1_15_compress_lzw.go | 2 +- .../yaegi/stdlib/go1_15_compress_zlib.go | 2 +- .../yaegi/stdlib/go1_15_container_heap.go | 2 +- .../yaegi/stdlib/go1_15_container_list.go | 2 +- .../yaegi/stdlib/go1_15_container_ring.go | 2 +- .../traefik/yaegi/stdlib/go1_15_context.go | 2 +- .../traefik/yaegi/stdlib/go1_15_crypto.go | 2 +- .../traefik/yaegi/stdlib/go1_15_crypto_aes.go | 2 +- .../yaegi/stdlib/go1_15_crypto_cipher.go | 2 +- .../traefik/yaegi/stdlib/go1_15_crypto_des.go | 2 +- .../traefik/yaegi/stdlib/go1_15_crypto_dsa.go | 2 +- .../yaegi/stdlib/go1_15_crypto_ecdsa.go | 2 +- .../yaegi/stdlib/go1_15_crypto_ed25519.go | 2 +- .../yaegi/stdlib/go1_15_crypto_elliptic.go | 2 +- .../yaegi/stdlib/go1_15_crypto_hmac.go | 2 +- .../traefik/yaegi/stdlib/go1_15_crypto_md5.go | 2 +- .../yaegi/stdlib/go1_15_crypto_rand.go | 2 +- .../traefik/yaegi/stdlib/go1_15_crypto_rc4.go | 2 +- .../traefik/yaegi/stdlib/go1_15_crypto_rsa.go | 2 +- .../yaegi/stdlib/go1_15_crypto_sha1.go | 2 +- .../yaegi/stdlib/go1_15_crypto_sha256.go | 2 +- .../yaegi/stdlib/go1_15_crypto_sha512.go | 2 +- .../yaegi/stdlib/go1_15_crypto_subtle.go | 2 +- .../traefik/yaegi/stdlib/go1_15_crypto_tls.go | 2 +- .../yaegi/stdlib/go1_15_crypto_x509.go | 2 +- .../yaegi/stdlib/go1_15_crypto_x509_pkix.go | 2 +- .../yaegi/stdlib/go1_15_database_sql.go | 2 +- .../stdlib/go1_15_database_sql_driver.go | 2 +- .../yaegi/stdlib/go1_15_debug_dwarf.go | 2 +- .../traefik/yaegi/stdlib/go1_15_debug_elf.go | 2 +- .../yaegi/stdlib/go1_15_debug_gosym.go | 2 +- .../yaegi/stdlib/go1_15_debug_macho.go | 2 +- .../traefik/yaegi/stdlib/go1_15_debug_pe.go | 2 +- .../yaegi/stdlib/go1_15_debug_plan9obj.go | 2 +- .../traefik/yaegi/stdlib/go1_15_encoding.go | 2 +- .../yaegi/stdlib/go1_15_encoding_ascii85.go | 2 +- .../yaegi/stdlib/go1_15_encoding_asn1.go | 2 +- .../yaegi/stdlib/go1_15_encoding_base32.go | 2 +- .../yaegi/stdlib/go1_15_encoding_base64.go | 2 +- .../yaegi/stdlib/go1_15_encoding_binary.go | 2 +- .../yaegi/stdlib/go1_15_encoding_csv.go | 2 +- .../yaegi/stdlib/go1_15_encoding_gob.go | 2 +- .../yaegi/stdlib/go1_15_encoding_hex.go | 2 +- .../yaegi/stdlib/go1_15_encoding_json.go | 2 +- .../yaegi/stdlib/go1_15_encoding_pem.go | 2 +- .../yaegi/stdlib/go1_15_encoding_xml.go | 2 +- .../traefik/yaegi/stdlib/go1_15_errors.go | 2 +- .../traefik/yaegi/stdlib/go1_15_expvar.go | 2 +- .../traefik/yaegi/stdlib/go1_15_flag.go | 2 +- .../traefik/yaegi/stdlib/go1_15_fmt.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_ast.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_build.go | 2 +- .../yaegi/stdlib/go1_15_go_constant.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_doc.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_format.go | 2 +- .../yaegi/stdlib/go1_15_go_importer.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_parser.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_printer.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_scanner.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_token.go | 2 +- .../traefik/yaegi/stdlib/go1_15_go_types.go | 2 +- .../traefik/yaegi/stdlib/go1_15_hash.go | 2 +- .../yaegi/stdlib/go1_15_hash_adler32.go | 2 +- .../traefik/yaegi/stdlib/go1_15_hash_crc32.go | 2 +- .../traefik/yaegi/stdlib/go1_15_hash_crc64.go | 2 +- .../traefik/yaegi/stdlib/go1_15_hash_fnv.go | 2 +- .../yaegi/stdlib/go1_15_hash_maphash.go | 2 +- .../traefik/yaegi/stdlib/go1_15_html.go | 2 +- .../yaegi/stdlib/go1_15_html_template.go | 2 +- .../traefik/yaegi/stdlib/go1_15_image.go | 2 +- .../yaegi/stdlib/go1_15_image_color.go | 2 +- .../stdlib/go1_15_image_color_palette.go | 2 +- .../traefik/yaegi/stdlib/go1_15_image_draw.go | 2 +- .../traefik/yaegi/stdlib/go1_15_image_gif.go | 2 +- .../traefik/yaegi/stdlib/go1_15_image_jpeg.go | 2 +- .../traefik/yaegi/stdlib/go1_15_image_png.go | 2 +- .../yaegi/stdlib/go1_15_index_suffixarray.go | 2 +- .../traefik/yaegi/stdlib/go1_15_io.go | 2 +- .../traefik/yaegi/stdlib/go1_15_io_ioutil.go | 2 +- .../traefik/yaegi/stdlib/go1_15_log.go | 2 +- .../traefik/yaegi/stdlib/go1_15_log_syslog.go | 2 +- .../traefik/yaegi/stdlib/go1_15_math.go | 2 +- .../traefik/yaegi/stdlib/go1_15_math_big.go | 2 +- .../traefik/yaegi/stdlib/go1_15_math_bits.go | 2 +- .../traefik/yaegi/stdlib/go1_15_math_cmplx.go | 2 +- .../traefik/yaegi/stdlib/go1_15_math_rand.go | 2 +- .../traefik/yaegi/stdlib/go1_15_mime.go | 2 +- .../yaegi/stdlib/go1_15_mime_multipart.go | 2 +- .../stdlib/go1_15_mime_quotedprintable.go | 2 +- .../traefik/yaegi/stdlib/go1_15_net.go | 2 +- .../traefik/yaegi/stdlib/go1_15_net_http.go | 2 +- .../yaegi/stdlib/go1_15_net_http_cgi.go | 2 +- .../yaegi/stdlib/go1_15_net_http_cookiejar.go | 2 +- .../yaegi/stdlib/go1_15_net_http_fcgi.go | 2 +- .../yaegi/stdlib/go1_15_net_http_httptest.go | 2 +- .../yaegi/stdlib/go1_15_net_http_httptrace.go | 2 +- .../yaegi/stdlib/go1_15_net_http_httputil.go | 2 +- .../yaegi/stdlib/go1_15_net_http_pprof.go | 2 +- .../traefik/yaegi/stdlib/go1_15_net_mail.go | 2 +- .../traefik/yaegi/stdlib/go1_15_net_rpc.go | 2 +- .../yaegi/stdlib/go1_15_net_rpc_jsonrpc.go | 2 +- .../traefik/yaegi/stdlib/go1_15_net_smtp.go | 2 +- .../yaegi/stdlib/go1_15_net_textproto.go | 2 +- .../traefik/yaegi/stdlib/go1_15_net_url.go | 2 +- .../traefik/yaegi/stdlib/go1_15_os.go | 2 +- .../traefik/yaegi/stdlib/go1_15_os_signal.go | 2 +- .../traefik/yaegi/stdlib/go1_15_os_user.go | 2 +- .../traefik/yaegi/stdlib/go1_15_path.go | 2 +- .../yaegi/stdlib/go1_15_path_filepath.go | 2 +- .../traefik/yaegi/stdlib/go1_15_reflect.go | 2 +- .../traefik/yaegi/stdlib/go1_15_regexp.go | 2 +- .../yaegi/stdlib/go1_15_regexp_syntax.go | 2 +- .../traefik/yaegi/stdlib/go1_15_runtime.go | 2 +- .../yaegi/stdlib/go1_15_runtime_debug.go | 2 +- .../yaegi/stdlib/go1_15_runtime_pprof.go | 2 +- .../yaegi/stdlib/go1_15_runtime_trace.go | 2 +- .../traefik/yaegi/stdlib/go1_15_sort.go | 2 +- .../traefik/yaegi/stdlib/go1_15_strconv.go | 2 +- .../traefik/yaegi/stdlib/go1_15_strings.go | 2 +- .../traefik/yaegi/stdlib/go1_15_sync.go | 2 +- .../yaegi/stdlib/go1_15_sync_atomic.go | 2 +- .../traefik/yaegi/stdlib/go1_15_testing.go | 52 +- .../yaegi/stdlib/go1_15_testing_iotest.go | 2 +- .../yaegi/stdlib/go1_15_testing_quick.go | 2 +- .../yaegi/stdlib/go1_15_text_scanner.go | 2 +- .../yaegi/stdlib/go1_15_text_tabwriter.go | 2 +- .../yaegi/stdlib/go1_15_text_template.go | 2 +- .../stdlib/go1_15_text_template_parse.go | 2 +- .../traefik/yaegi/stdlib/go1_15_time.go | 2 +- .../traefik/yaegi/stdlib/go1_15_unicode.go | 2 +- .../yaegi/stdlib/go1_15_unicode_utf16.go | 2 +- .../yaegi/stdlib/go1_15_unicode_utf8.go | 2 +- ...4_archive_tar.go => go1_16_archive_tar.go} | 2 +- ...4_archive_zip.go => go1_16_archive_zip.go} | 2 +- .../{go1_14_bufio.go => go1_16_bufio.go} | 3 +- .../{go1_14_bytes.go => go1_16_bytes.go} | 2 +- ...ress_bzip2.go => go1_16_compress_bzip2.go} | 2 +- ...ress_flate.go => go1_16_compress_flate.go} | 2 +- ...mpress_gzip.go => go1_16_compress_gzip.go} | 2 +- ...compress_lzw.go => go1_16_compress_lzw.go} | 2 +- ...mpress_zlib.go => go1_16_compress_zlib.go} | 2 +- ...ainer_heap.go => go1_16_container_heap.go} | 2 +- ...ainer_list.go => go1_16_container_list.go} | 2 +- ...ainer_ring.go => go1_16_container_ring.go} | 2 +- .../{go1_14_context.go => go1_16_context.go} | 2 +- .../{go1_14_crypto.go => go1_16_crypto.go} | 2 +- ..._14_crypto_aes.go => go1_16_crypto_aes.go} | 2 +- ...ypto_cipher.go => go1_16_crypto_cipher.go} | 2 +- ..._14_crypto_des.go => go1_16_crypto_des.go} | 2 +- ..._14_crypto_dsa.go => go1_16_crypto_dsa.go} | 2 +- ...crypto_ecdsa.go => go1_16_crypto_ecdsa.go} | 4 +- ...to_ed25519.go => go1_16_crypto_ed25519.go} | 2 +- ..._elliptic.go => go1_16_crypto_elliptic.go} | 18 +- ...4_crypto_hmac.go => go1_16_crypto_hmac.go} | 2 +- ..._14_crypto_md5.go => go1_16_crypto_md5.go} | 2 +- ...4_crypto_rand.go => go1_16_crypto_rand.go} | 2 +- ..._14_crypto_rc4.go => go1_16_crypto_rc4.go} | 2 +- ..._14_crypto_rsa.go => go1_16_crypto_rsa.go} | 2 +- ...4_crypto_sha1.go => go1_16_crypto_sha1.go} | 2 +- ...ypto_sha256.go => go1_16_crypto_sha256.go} | 2 +- ...ypto_sha512.go => go1_16_crypto_sha512.go} | 2 +- ...ypto_subtle.go => go1_16_crypto_subtle.go} | 2 +- ..._14_crypto_tls.go => go1_16_crypto_tls.go} | 3 +- ...4_crypto_x509.go => go1_16_crypto_x509.go} | 52 +- ...509_pkix.go => go1_16_crypto_x509_pkix.go} | 2 +- ...database_sql.go => go1_16_database_sql.go} | 2 +- ...river.go => go1_16_database_sql_driver.go} | 11 +- ...4_debug_dwarf.go => go1_16_debug_dwarf.go} | 2 +- ...o1_14_debug_elf.go => go1_16_debug_elf.go} | 111 ++- ...4_debug_gosym.go => go1_16_debug_gosym.go} | 2 +- ...4_debug_macho.go => go1_16_debug_macho.go} | 2 +- .../traefik/yaegi/stdlib/go1_16_debug_pe.go | 114 +++ ...g_plan9obj.go => go1_16_debug_plan9obj.go} | 2 +- .../traefik/yaegi/stdlib/go1_16_embed.go | 17 + ...{go1_14_encoding.go => go1_16_encoding.go} | 2 +- ..._ascii85.go => go1_16_encoding_ascii85.go} | 2 +- ...coding_asn1.go => go1_16_encoding_asn1.go} | 2 +- ...ng_base32.go => go1_16_encoding_base32.go} | 2 +- ...ng_base64.go => go1_16_encoding_base64.go} | 2 +- ...ng_binary.go => go1_16_encoding_binary.go} | 2 +- ...encoding_csv.go => go1_16_encoding_csv.go} | 2 +- ...encoding_gob.go => go1_16_encoding_gob.go} | 2 +- ...encoding_hex.go => go1_16_encoding_hex.go} | 2 +- ...coding_json.go => go1_16_encoding_json.go} | 2 +- ...encoding_pem.go => go1_16_encoding_pem.go} | 2 +- ...encoding_xml.go => go1_16_encoding_xml.go} | 2 +- .../{go1_14_errors.go => go1_16_errors.go} | 2 +- .../{go1_14_expvar.go => go1_16_expvar.go} | 2 +- .../stdlib/{go1_14_flag.go => go1_16_flag.go} | 3 +- .../stdlib/{go1_14_fmt.go => go1_16_fmt.go} | 6 +- .../{go1_14_go_ast.go => go1_16_go_ast.go} | 2 +- ...{go1_14_go_build.go => go1_16_go_build.go} | 2 +- ...4_go_constant.go => go1_16_go_constant.go} | 2 +- .../{go1_14_go_doc.go => go1_16_go_doc.go} | 2 +- ...o1_14_go_format.go => go1_16_go_format.go} | 2 +- ...4_go_importer.go => go1_16_go_importer.go} | 2 +- ...o1_14_go_parser.go => go1_16_go_parser.go} | 2 +- ..._14_go_printer.go => go1_16_go_printer.go} | 2 +- ..._14_go_scanner.go => go1_16_go_scanner.go} | 2 +- ...{go1_14_go_token.go => go1_16_go_token.go} | 2 +- ...{go1_14_go_types.go => go1_16_go_types.go} | 2 +- .../stdlib/{go1_14_hash.go => go1_16_hash.go} | 2 +- ...hash_adler32.go => go1_16_hash_adler32.go} | 2 +- ..._14_hash_crc32.go => go1_16_hash_crc32.go} | 2 +- ..._14_hash_crc64.go => go1_16_hash_crc64.go} | 2 +- ...{go1_14_hash_fnv.go => go1_16_hash_fnv.go} | 2 +- ...hash_maphash.go => go1_16_hash_maphash.go} | 2 +- .../stdlib/{go1_14_html.go => go1_16_html.go} | 2 +- ...ml_template.go => go1_16_html_template.go} | 3 +- .../{go1_14_image.go => go1_16_image.go} | 2 +- ...4_image_color.go => go1_16_image_color.go} | 2 +- ...lette.go => go1_16_image_color_palette.go} | 2 +- ..._14_image_draw.go => go1_16_image_draw.go} | 2 +- ...o1_14_image_gif.go => go1_16_image_gif.go} | 2 +- ..._14_image_jpeg.go => go1_16_image_jpeg.go} | 2 +- ...o1_14_image_png.go => go1_16_image_png.go} | 2 +- ...ixarray.go => go1_16_index_suffixarray.go} | 2 +- .../stdlib/{go1_14_io.go => go1_16_io.go} | 20 +- ...o1_14_io_ioutil.go => go1_16_io_ioutil.go} | 2 +- .../stdlib/{go1_14_log.go => go1_16_log.go} | 3 +- ..._14_log_syslog.go => go1_16_log_syslog.go} | 2 +- .../stdlib/{go1_14_math.go => go1_16_math.go} | 2 +- ...{go1_14_math_big.go => go1_16_math_big.go} | 2 +- ...o1_14_math_bits.go => go1_16_math_bits.go} | 2 +- ..._14_math_cmplx.go => go1_16_math_cmplx.go} | 2 +- ...o1_14_math_rand.go => go1_16_math_rand.go} | 2 +- .../stdlib/{go1_14_mime.go => go1_16_mime.go} | 2 +- ..._multipart.go => go1_16_mime_multipart.go} | 2 +- ...able.go => go1_16_mime_quotedprintable.go} | 2 +- .../stdlib/{go1_14_net.go => go1_16_net.go} | 3 +- ...{go1_14_net_http.go => go1_16_net_http.go} | 13 +- ...net_http_cgi.go => go1_16_net_http_cgi.go} | 2 +- ...kiejar.go => go1_16_net_http_cookiejar.go} | 2 +- ...t_http_fcgi.go => go1_16_net_http_fcgi.go} | 2 +- ...ttptest.go => go1_16_net_http_httptest.go} | 2 +- ...ptrace.go => go1_16_net_http_httptrace.go} | 2 +- ...ttputil.go => go1_16_net_http_httputil.go} | 2 +- ...http_pprof.go => go1_16_net_http_pprof.go} | 2 +- ...{go1_14_net_mail.go => go1_16_net_mail.go} | 2 +- .../{go1_14_net_rpc.go => go1_16_net_rpc.go} | 2 +- ...c_jsonrpc.go => go1_16_net_rpc_jsonrpc.go} | 2 +- ...{go1_14_net_smtp.go => go1_16_net_smtp.go} | 2 +- ...t_textproto.go => go1_16_net_textproto.go} | 2 +- .../{go1_14_net_url.go => go1_16_net_url.go} | 2 +- .../traefik/yaegi/stdlib/go1_16_os.go | 180 ++++ .../traefik/yaegi/stdlib/go1_16_os_signal.go | 22 + .../{go1_14_os_user.go => go1_16_os_user.go} | 2 +- .../stdlib/{go1_14_path.go => go1_16_path.go} | 2 +- ...th_filepath.go => go1_16_path_filepath.go} | 3 +- .../{go1_14_reflect.go => go1_16_reflect.go} | 2 +- .../{go1_14_regexp.go => go1_16_regexp.go} | 2 +- ...gexp_syntax.go => go1_16_regexp_syntax.go} | 2 +- .../{go1_14_runtime.go => go1_16_runtime.go} | 2 +- ...ntime_debug.go => go1_16_runtime_debug.go} | 2 +- ...ntime_pprof.go => go1_16_runtime_pprof.go} | 2 +- ...ntime_trace.go => go1_16_runtime_trace.go} | 2 +- .../stdlib/{go1_14_sort.go => go1_16_sort.go} | 2 +- .../{go1_14_strconv.go => go1_16_strconv.go} | 4 +- .../{go1_14_strings.go => go1_16_strings.go} | 2 +- .../stdlib/{go1_14_sync.go => go1_16_sync.go} | 2 +- ...4_sync_atomic.go => go1_16_sync_atomic.go} | 2 +- .../{go1_14_testing.go => go1_16_testing.go} | 52 +- ...ing_iotest.go => go1_16_testing_iotest.go} | 4 +- ...sting_quick.go => go1_16_testing_quick.go} | 2 +- ...text_scanner.go => go1_16_text_scanner.go} | 2 +- ..._tabwriter.go => go1_16_text_tabwriter.go} | 2 +- ...xt_template.go => go1_16_text_template.go} | 3 +- ...parse.go => go1_16_text_template_parse.go} | 6 +- .../stdlib/{go1_14_time.go => go1_16_time.go} | 2 +- .../{go1_14_unicode.go => go1_16_unicode.go} | 8 +- ...icode_utf16.go => go1_16_unicode_utf16.go} | 2 +- ...unicode_utf8.go => go1_16_unicode_utf8.go} | 2 +- .../github.com/traefik/yaegi/stdlib/stdlib.go | 2 +- .../traefik/yaegi/stdlib/stdlib_go1.16.go | 5 + vendor/modules.txt | 2 +- 299 files changed, 2374 insertions(+), 992 deletions(-) delete mode 100644 vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_pe.go delete mode 100644 vendor/github.com/traefik/yaegi/stdlib/go1_14_os.go delete mode 100644 vendor/github.com/traefik/yaegi/stdlib/go1_14_os_signal.go rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_archive_tar.go => go1_16_archive_tar.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_archive_zip.go => go1_16_archive_zip.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_bufio.go => go1_16_bufio.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_bytes.go => go1_16_bytes.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_compress_bzip2.go => go1_16_compress_bzip2.go} (93%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_compress_flate.go => go1_16_compress_flate.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_compress_gzip.go => go1_16_compress_gzip.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_compress_lzw.go => go1_16_compress_lzw.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_compress_zlib.go => go1_16_compress_zlib.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_container_heap.go => go1_16_container_heap.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_container_list.go => go1_16_container_list.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_container_ring.go => go1_16_container_ring.go} (93%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_context.go => go1_16_context.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto.go => go1_16_crypto.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_aes.go => go1_16_crypto_aes.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_cipher.go => go1_16_crypto_cipher.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_des.go => go1_16_crypto_des.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_dsa.go => go1_16_crypto_dsa.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_ecdsa.go => go1_16_crypto_ecdsa.go} (81%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_ed25519.go => go1_16_crypto_ed25519.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_elliptic.go => go1_16_crypto_elliptic.go} (75%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_hmac.go => go1_16_crypto_hmac.go} (92%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_md5.go => go1_16_crypto_md5.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_rand.go => go1_16_crypto_rand.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_rc4.go => go1_16_crypto_rc4.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_rsa.go => go1_16_crypto_rsa.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_sha1.go => go1_16_crypto_sha1.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_sha256.go => go1_16_crypto_sha256.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_sha512.go => go1_16_crypto_sha512.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_subtle.go => go1_16_crypto_subtle.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_tls.go => go1_16_crypto_tls.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_x509.go => go1_16_crypto_x509.go} (75%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_crypto_x509_pkix.go => go1_16_crypto_x509_pkix.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_database_sql.go => go1_16_database_sql.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_database_sql_driver.go => go1_16_database_sql_driver.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_debug_dwarf.go => go1_16_debug_dwarf.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_debug_elf.go => go1_16_debug_elf.go} (92%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_debug_gosym.go => go1_16_debug_gosym.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_debug_macho.go => go1_16_debug_macho.go} (99%) create mode 100644 vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_pe.go rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_debug_plan9obj.go => go1_16_debug_plan9obj.go} (97%) create mode 100644 vendor/github.com/traefik/yaegi/stdlib/go1_16_embed.go rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding.go => go1_16_encoding.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_ascii85.go => go1_16_encoding_ascii85.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_asn1.go => go1_16_encoding_asn1.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_base32.go => go1_16_encoding_base32.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_base64.go => go1_16_encoding_base64.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_binary.go => go1_16_encoding_binary.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_csv.go => go1_16_encoding_csv.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_gob.go => go1_16_encoding_gob.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_hex.go => go1_16_encoding_hex.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_json.go => go1_16_encoding_json.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_pem.go => go1_16_encoding_pem.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_encoding_xml.go => go1_16_encoding_xml.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_errors.go => go1_16_errors.go} (93%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_expvar.go => go1_16_expvar.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_flag.go => go1_16_flag.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_fmt.go => go1_16_fmt.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_ast.go => go1_16_go_ast.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_build.go => go1_16_go_build.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_constant.go => go1_16_go_constant.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_doc.go => go1_16_go_doc.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_format.go => go1_16_go_format.go} (92%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_importer.go => go1_16_go_importer.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_parser.go => go1_16_go_parser.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_printer.go => go1_16_go_printer.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_scanner.go => go1_16_go_scanner.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_token.go => go1_16_go_token.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_go_types.go => go1_16_go_types.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_hash.go => go1_16_hash.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_hash_adler32.go => go1_16_hash_adler32.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_hash_crc32.go => go1_16_hash_crc32.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_hash_crc64.go => go1_16_hash_crc64.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_hash_fnv.go => go1_16_hash_fnv.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_hash_maphash.go => go1_16_hash_maphash.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_html.go => go1_16_html.go} (92%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_html_template.go => go1_16_html_template.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_image.go => go1_16_image.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_image_color.go => go1_16_image_color.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_image_color_palette.go => go1_16_image_color_palette.go} (93%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_image_draw.go => go1_16_image_draw.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_image_gif.go => go1_16_image_gif.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_image_jpeg.go => go1_16_image_jpeg.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_image_png.go => go1_16_image_png.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_index_suffixarray.go => go1_16_index_suffixarray.go} (93%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_io.go => go1_16_io.go} (92%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_io_ioutil.go => go1_16_io_ioutil.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_log.go => go1_16_log.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_log_syslog.go => go1_16_log_syslog.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_math.go => go1_16_math.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_math_big.go => go1_16_math_big.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_math_bits.go => go1_16_math_bits.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_math_cmplx.go => go1_16_math_cmplx.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_math_rand.go => go1_16_math_rand.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_mime.go => go1_16_mime.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_mime_multipart.go => go1_16_mime_multipart.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_mime_quotedprintable.go => go1_16_mime_quotedprintable.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net.go => go1_16_net.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_http.go => go1_16_net_http.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_http_cgi.go => go1_16_net_http_cgi.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_http_cookiejar.go => go1_16_net_http_cookiejar.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_http_fcgi.go => go1_16_net_http_fcgi.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_http_httptest.go => go1_16_net_http_httptest.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_http_httptrace.go => go1_16_net_http_httptrace.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_http_httputil.go => go1_16_net_http_httputil.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_http_pprof.go => go1_16_net_http_pprof.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_mail.go => go1_16_net_mail.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_rpc.go => go1_16_net_rpc.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_rpc_jsonrpc.go => go1_16_net_rpc_jsonrpc.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_smtp.go => go1_16_net_smtp.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_textproto.go => go1_16_net_textproto.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_net_url.go => go1_16_net_url.go} (97%) create mode 100644 vendor/github.com/traefik/yaegi/stdlib/go1_16_os.go create mode 100644 vendor/github.com/traefik/yaegi/stdlib/go1_16_os_signal.go rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_os_user.go => go1_16_os_user.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_path.go => go1_16_path.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_path_filepath.go => go1_16_path_filepath.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_reflect.go => go1_16_reflect.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_regexp.go => go1_16_regexp.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_regexp_syntax.go => go1_16_regexp_syntax.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_runtime.go => go1_16_runtime.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_runtime_debug.go => go1_16_runtime_debug.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_runtime_pprof.go => go1_16_runtime_pprof.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_runtime_trace.go => go1_16_runtime_trace.go} (96%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_sort.go => go1_16_sort.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_strconv.go => go1_16_strconv.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_strings.go => go1_16_strings.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_sync.go => go1_16_sync.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_sync_atomic.go => go1_16_sync_atomic.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_testing.go => go1_16_testing.go} (51%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_testing_iotest.go => go1_16_testing_iotest.go} (84%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_testing_quick.go => go1_16_testing_quick.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_text_scanner.go => go1_16_text_scanner.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_text_tabwriter.go => go1_16_text_tabwriter.go} (97%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_text_template.go => go1_16_text_template.go} (94%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_text_template_parse.go => go1_16_text_template_parse.go} (93%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_time.go => go1_16_time.go} (99%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_unicode.go => go1_16_unicode.go} (98%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_unicode_utf16.go => go1_16_unicode_utf16.go} (95%) rename vendor/github.com/traefik/yaegi/stdlib/{go1_14_unicode_utf8.go => go1_16_unicode_utf8.go} (98%) create mode 100644 vendor/github.com/traefik/yaegi/stdlib/stdlib_go1.16.go diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f9dda25..9d36a1e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: test: strategy: matrix: - go-version: [1.14.x, 1.15.x] + go-version: [1.15.x, 1.16.x] platform: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.platform }} steps: diff --git a/go.mod b/go.mod index 605f0cf..917d5a1 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.14 require ( github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.7.0 - github.com/traefik/yaegi v0.9.10 + github.com/traefik/yaegi v0.9.16 go.uber.org/atomic v1.7.0 gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect ) diff --git a/go.sum b/go.sum index 081c8b8..e4e3b6d 100644 --- a/go.sum +++ b/go.sum @@ -5,19 +5,16 @@ github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0 h1:4G4v2dO3VZwixGIRoQ5Lfboy6nUhCyYzaqnIAPPhYs4= github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY= github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= -github.com/traefik/yaegi v0.9.10 h1:/b8qQg8/2D2yaTT3b49QtpFiiOBGBYblDldqO7Tu2R8= -github.com/traefik/yaegi v0.9.10/go.mod h1:FAYnRlZyuVlEkvnkHq3bvJ1lW5be6XuwgLdkYgYG6Lk= +github.com/traefik/yaegi v0.9.16 h1:ElGXTnv2KogInSOkA8c3s6oCsyCzf+kpb7lPPA6a3bI= +github.com/traefik/yaegi v0.9.16/go.mod h1:FAYnRlZyuVlEkvnkHq3bvJ1lW5be6XuwgLdkYgYG6Lk= go.uber.org/atomic v1.7.0 h1:ADUqmZGgLDDfbSL9ZmPxKTybcoEYHgpYfELNoN+7hsw= go.uber.org/atomic v1.7.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= -gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 h1:tQIYjPdBoyREyB9XMu+nnTclpTYkz2zFM+lzLJFO4gQ= gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/vendor/github.com/traefik/yaegi/interp/ast.go b/vendor/github.com/traefik/yaegi/interp/ast.go index 502a046..966a5ab 100644 --- a/vendor/github.com/traefik/yaegi/interp/ast.go +++ b/vendor/github.com/traefik/yaegi/interp/ast.go @@ -716,7 +716,7 @@ func (interp *Interpreter) ast(src, name string, inc bool) (string, *node, error n := addChild(&root, anc, pos, identExpr, aNop) n.ident = a.Name st.push(n, nod) - if n.anc.kind == defineStmt && n.anc.nright == 0 { + if n.anc.kind == defineStmt && n.anc.anc.kind == constDecl && n.anc.nright == 0 { // Implicit assign expression (in a ConstDecl block). // Clone assign source and type from previous a := n.anc @@ -858,7 +858,8 @@ func (interp *Interpreter) ast(src, name string, inc bool) (string, *node, error case *ast.ValueSpec: kind := valueSpec act := aNop - if a.Values != nil { + switch { + case a.Values != nil: if len(a.Names) > 1 && len(a.Values) == 1 { if anc.node.kind == constDecl || anc.node.kind == varDecl { kind = defineXStmt @@ -874,7 +875,9 @@ func (interp *Interpreter) ast(src, name string, inc bool) (string, *node, error } act = aAssign } - } else if anc.node.kind == constDecl { + case anc.node.kind == constDecl: + kind, act = defineStmt, aAssign + case anc.node.kind == varDecl && anc.node.anc.kind != fileStmt: kind, act = defineStmt, aAssign } n := addChild(&root, anc, pos, kind, act) diff --git a/vendor/github.com/traefik/yaegi/interp/build.go b/vendor/github.com/traefik/yaegi/interp/build.go index c1a5e0d..0a09683 100644 --- a/vendor/github.com/traefik/yaegi/interp/build.go +++ b/vendor/github.com/traefik/yaegi/interp/build.go @@ -163,9 +163,9 @@ var knownOs = map[string]bool{ "dragonfly": true, "freebsd": true, "illumos": true, + "ios": true, "js": true, "linux": true, - "nacl": true, "netbsd": true, "openbsd": true, "plan9": true, @@ -176,7 +176,6 @@ var knownOs = map[string]bool{ var knownArch = map[string]bool{ "386": true, "amd64": true, - "amd64p32": true, "arm": true, "arm64": true, "mips": true, diff --git a/vendor/github.com/traefik/yaegi/interp/cfg.go b/vendor/github.com/traefik/yaegi/interp/cfg.go index 9f82f22..3299180 100644 --- a/vendor/github.com/traefik/yaegi/interp/cfg.go +++ b/vendor/github.com/traefik/yaegi/interp/cfg.go @@ -82,7 +82,14 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { i-- } dest := a.child[i] - if dest.typ != nil && !isInterface(dest.typ) { + if dest.typ == nil { + break + } + if dest.typ.incomplete { + err = n.cfgErrorf("invalid type declaration") + return false + } + if !isInterface(dest.typ) { // Interface type are not propagated, and will be resolved at post-order. n.typ = dest.typ } @@ -564,12 +571,16 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { // switch { case n.action != aAssign: - // Do not optimize assign combined with another operator. + // Do not skip assign operation if it is combined with another operator. + case src.rval.IsValid(): + // Do not skip assign operation if setting from a constant value. case isMapEntry(dest): - // Setting a map entry needs an additional step, do not optimize. + // Setting a map entry requires an additional step, do not optimize. // As we only write, skip the default useless getIndexMap dest action. dest.gen = nop - case isCall(src) && dest.typ.cat != interfaceT && !isRecursiveField(dest): + case isFuncField(dest): + // Setting a struct field of function type requires an extra step. Do not optimize. + case isCall(src) && dest.typ.cat != interfaceT && !isRecursiveField(dest) && n.kind != defineStmt: // Call action may perform the assignment directly. n.gen = nop src.level = level @@ -588,21 +599,23 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { break } if dest.action == aGetIndex { - // Optimization does not work when assigning to a struct field. + // Skip optimization, as it does not work when assigning to a struct field. break } n.gen = nop src.findex = dest.findex src.level = level - case len(n.child) < 4 && !src.rval.IsValid() && isArithmeticAction(src): + case len(n.child) < 4 && isArithmeticAction(src): // Optimize single assignments from some arithmetic operations. src.typ = dest.typ src.findex = dest.findex src.level = level n.gen = nop - case src.kind == basicLit && !src.rval.IsValid(): + case src.kind == basicLit: // Assign to nil. src.rval = reflect.New(dest.typ.TypeOf()).Elem() + case n.nright == 0: + n.gen = reset } n.typ = dest.typ @@ -610,6 +623,7 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { sym.typ = n.typ sym.recv = src.recv } + n.level = level if n.anc.kind == constDecl { @@ -711,7 +725,7 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { break } } - if c0.rval.IsValid() && c1.rval.IsValid() && !isInterface(n.typ) && constOp[n.action] != nil { + if c0.rval.IsValid() && c1.rval.IsValid() && (!isInterface(n.typ)) && constOp[n.action] != nil { n.typ.TypeOf() // Force compute of reflection type. constOp[n.action](n) // Compute a constant result now rather than during exec. } @@ -721,7 +735,7 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { // by constOp and available in n.rval. Nothing else to do at execution. n.gen = nop n.findex = notInFrame - case n.anc.kind == assignStmt && n.anc.action == aAssign: + case n.anc.kind == assignStmt && n.anc.action == aAssign && n.anc.nleft == 1: // To avoid a copy in frame, if the result is to be assigned, store it directly // at the frame location of destination. dest := n.anc.child[childPos(n)-n.anc.nright] @@ -855,13 +869,15 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { wireChild(n) switch { case interp.isBuiltinCall(n): - err = check.builtin(n.child[0].ident, n, n.child[1:], n.action == aCallSlice) + c0 := n.child[0] + bname := c0.ident + err = check.builtin(bname, n, n.child[1:], n.action == aCallSlice) if err != nil { break } - n.gen = n.child[0].sym.builtin - n.child[0].typ = &itype{cat: builtinT} + n.gen = c0.sym.builtin + c0.typ = &itype{cat: builtinT} if n.typ, err = nodeType(interp, sc, n); err != nil { return } @@ -872,10 +888,28 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { case n.anc.kind == returnStmt: // Store result directly to frame output location, to avoid a frame copy. n.findex = 0 + case bname == "cap" && isInConstOrTypeDecl(n): + switch n.child[1].typ.TypeOf().Kind() { + case reflect.Array, reflect.Chan: + capConst(n) + default: + err = n.cfgErrorf("cap argument is not an array or channel") + } + n.findex = notInFrame + n.gen = nop + case bname == "len" && isInConstOrTypeDecl(n): + switch n.child[1].typ.TypeOf().Kind() { + case reflect.Array, reflect.Chan, reflect.String: + lenConst(n) + default: + err = n.cfgErrorf("len argument is not an array, channel or string") + } + n.findex = notInFrame + n.gen = nop default: n.findex = sc.add(n.typ) } - if op, ok := constBltn[n.child[0].ident]; ok && n.anc.action != aAssign { + if op, ok := constBltn[bname]; ok && n.anc.action != aAssign { op(n) // pre-compute non-assigned constant : } case n.child[0].isType(sc): @@ -1863,6 +1897,7 @@ func (interp *Interpreter) cfg(root *node, importPath string) ([]*node, error) { return } } + for _, c := range n.child[:l] { var index int if sc.global { @@ -2326,6 +2361,20 @@ func isRecursiveField(n *node) bool { return false } +func isInConstOrTypeDecl(n *node) bool { + anc := n.anc + for anc != nil { + switch anc.kind { + case constDecl, typeDecl: + return true + case varDecl, funcDecl: + return false + } + anc = anc.anc + } + return false +} + // isNewDefine returns true if node refers to a new definition. func isNewDefine(n *node, sc *scope) bool { if n.ident == "_" { @@ -2350,6 +2399,10 @@ func isMethod(n *node) bool { return len(n.child[0].child) > 0 // receiver defined } +func isFuncField(n *node) bool { + return isField(n) && isFunc(n.typ) +} + func isMapEntry(n *node) bool { return n.action == aGetIndex && isMap(n.child[0].typ) } @@ -2485,6 +2538,10 @@ func compositeGenerator(n *node, typ *itype, rtyp reflect.Type) (gen bltnGenerat if rtyp == nil { rtyp = n.typ.rtype } + // TODO(mpl): I do not understand where this side-effect is coming from, and why it happens. quickfix for now. + if rtyp == nil { + rtyp = n.typ.val.rtype + } switch k := rtyp.Kind(); k { case reflect.Struct: if n.nleft == 1 { @@ -2534,28 +2591,22 @@ func isValueUntyped(v reflect.Value) bool { if v.CanSet() { return false } - t := v.Type() - if t.Implements(constVal) { - return true - } - return t.String() == t.Kind().String() + return v.Type().Implements(constVal) } // isArithmeticAction returns true if the node action is an arithmetic operator. func isArithmeticAction(n *node) bool { switch n.action { - case aAdd, aAnd, aAndNot, aBitNot, aMul, aQuo, aRem, aShl, aShr, aSub, aXor: + case aAdd, aAnd, aAndNot, aBitNot, aMul, aNeg, aOr, aPos, aQuo, aRem, aShl, aShr, aSub, aXor: return true - default: - return false } + return false } func isBoolAction(n *node) bool { switch n.action { case aEqual, aGreater, aGreaterEqual, aLand, aLor, aLower, aLowerEqual, aNot, aNotEqual: return true - default: - return false } + return false } diff --git a/vendor/github.com/traefik/yaegi/interp/gta.go b/vendor/github.com/traefik/yaegi/interp/gta.go index 19cef80..0880842 100644 --- a/vendor/github.com/traefik/yaegi/interp/gta.go +++ b/vendor/github.com/traefik/yaegi/interp/gta.go @@ -27,6 +27,7 @@ func (interp *Interpreter) gta(root *node, rpath, importPath string) ([]*node, e // values which may be used in further declarations. if _, err = interp.cfg(n, importPath); err != nil { // No error processing here, to allow recovery in subtree nodes. + // TODO(marc): check for a non recoverable error and return it for better diagnostic. err = nil } @@ -208,9 +209,12 @@ func (interp *Interpreter) gta(root *node, rpath, importPath string) ([]*node, e // imports in different source files of the same package. Therefore, we suffix // the key with the basename of the source file. name = filepath.Join(name, baseName) - if _, exists := sc.sym[name]; !exists { + if sym, exists := sc.sym[name]; !exists { sc.sym[name] = &symbol{kind: pkgSym, typ: &itype{cat: binPkgT, path: ipath, scope: sc}} break + } else if sym.kind == pkgSym && sym.typ.cat == srcPkgT && sym.typ.path == ipath { + // ignore re-import of identical package + break } // redeclaration error. Not caught by the parser. @@ -232,9 +236,12 @@ func (interp *Interpreter) gta(root *node, rpath, importPath string) ([]*node, e name = pkgName } name = filepath.Join(name, baseName) - if _, exists := sc.sym[name]; !exists { + if sym, exists := sc.sym[name]; !exists { sc.sym[name] = &symbol{kind: pkgSym, typ: &itype{cat: srcPkgT, path: ipath, scope: sc}} break + } else if sym.kind == pkgSym && sym.typ.cat == srcPkgT && sym.typ.path == ipath { + // ignore re-import of identical package + break } // redeclaration error diff --git a/vendor/github.com/traefik/yaegi/interp/interp.go b/vendor/github.com/traefik/yaegi/interp/interp.go index c73b060..9d66943 100644 --- a/vendor/github.com/traefik/yaegi/interp/interp.go +++ b/vendor/github.com/traefik/yaegi/interp/interp.go @@ -75,10 +75,10 @@ type frame struct { done reflect.SelectCase // for cancellation of channel operations } -func newFrame(anc *frame, len int, id uint64) *frame { +func newFrame(anc *frame, length int, id uint64) *frame { f := &frame{ anc: anc, - data: make([]reflect.Value, len), + data: make([]reflect.Value, length), id: id, } if anc == nil { @@ -92,18 +92,24 @@ func newFrame(anc *frame, len int, id uint64) *frame { func (f *frame) runid() uint64 { return atomic.LoadUint64(&f.id) } func (f *frame) setrunid(id uint64) { atomic.StoreUint64(&f.id, id) } -func (f *frame) clone() *frame { +func (f *frame) clone(fork bool) *frame { f.mutex.RLock() defer f.mutex.RUnlock() - return &frame{ + nf := &frame{ anc: f.anc, root: f.root, - data: f.data, deferred: f.deferred, recovered: f.recovered, id: f.runid(), done: f.done, } + if fork { + nf.data = make([]reflect.Value, len(f.data)) + copy(nf.data, f.data) + } else { + nf.data = f.data + } + return nf } // Exports stores the map of binary packages per package path. @@ -208,7 +214,7 @@ type Panic struct { } // TODO: Capture interpreter stack frames also and remove -// fmt.Println(n.cfgErrorf("panic")) in runCfg. +// fmt.Fprintln(n.interp.stderr, oNode.cfgErrorf("panic")) in runCfg. func (e Panic) Error() string { return fmt.Sprint(e.Value) } diff --git a/vendor/github.com/traefik/yaegi/interp/op.go b/vendor/github.com/traefik/yaegi/interp/op.go index 9fd2b7a..1672b64 100644 --- a/vendor/github.com/traefik/yaegi/interp/op.go +++ b/vendor/github.com/traefik/yaegi/interp/op.go @@ -1,6 +1,6 @@ package interp -// Code generated by 'go run ../internal/genop/genop.go'. DO NOT EDIT. +// Code generated by 'go run ../internal/cmd/genop/genop.go'. DO NOT EDIT. import ( "go/constant" @@ -13,12 +13,20 @@ import ( func add(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.String: switch { + case isInterface: + v0 := genValue(c0) + v1 := genValue(c1) + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(v0(f).String() + v1(f).String()).Convert(typ)) + return next + } case c0.rval.IsValid(): s0 := vString(c0.rval) v1 := genValue(c1) @@ -43,6 +51,15 @@ func add(n *node) { } case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i + j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -71,6 +88,15 @@ func add(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i + j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -99,6 +125,15 @@ func add(n *node) { } case reflect.Float32, reflect.Float64: switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i + j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -127,25 +162,32 @@ func add(n *node) { } case reflect.Complex64, reflect.Complex128: switch { + case isInterface: + v0 := genComplex(c0) + v1 := genComplex(c1) + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(v0(f) + v1(f)).Convert(typ)) + return next + } case c0.rval.IsValid(): r0 := vComplex(c0.rval) - v1 := genValue(c1) + v1 := genComplex(c1) n.exec = func(f *frame) bltn { - dest(f).SetComplex(r0 + v1(f).Complex()) + dest(f).SetComplex(r0 + v1(f)) return next } case c1.rval.IsValid(): r1 := vComplex(c1.rval) - v0 := genValue(c0) + v0 := genComplex(c0) n.exec = func(f *frame) bltn { - dest(f).SetComplex(v0(f).Complex() + r1) + dest(f).SetComplex(v0(f) + r1) return next } default: - v0 := genValue(c0) - v1 := genValue(c1) + v0 := genComplex(c0) + v1 := genComplex(c1) n.exec = func(f *frame) bltn { - dest(f).SetComplex(v0(f).Complex() + v1(f).Complex()) + dest(f).SetComplex(v0(f) + v1(f)) return next } } @@ -180,12 +222,22 @@ func addConst(n *node) { func and(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i & j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -214,6 +266,15 @@ func and(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i & j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -265,12 +326,22 @@ func andConst(n *node) { func andNot(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i &^ j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -299,6 +370,15 @@ func andNot(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i &^ j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -350,12 +430,22 @@ func andNotConst(n *node) { func mul(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i * j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -384,6 +474,15 @@ func mul(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i * j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -412,6 +511,15 @@ func mul(n *node) { } case reflect.Float32, reflect.Float64: switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i * j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -440,25 +548,32 @@ func mul(n *node) { } case reflect.Complex64, reflect.Complex128: switch { + case isInterface: + v0 := genComplex(c0) + v1 := genComplex(c1) + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(v0(f) * v1(f)).Convert(typ)) + return next + } case c0.rval.IsValid(): r0 := vComplex(c0.rval) - v1 := genValue(c1) + v1 := genComplex(c1) n.exec = func(f *frame) bltn { - dest(f).SetComplex(r0 * v1(f).Complex()) + dest(f).SetComplex(r0 * v1(f)) return next } case c1.rval.IsValid(): r1 := vComplex(c1.rval) - v0 := genValue(c0) + v0 := genComplex(c0) n.exec = func(f *frame) bltn { - dest(f).SetComplex(v0(f).Complex() * r1) + dest(f).SetComplex(v0(f) * r1) return next } default: - v0 := genValue(c0) - v1 := genValue(c1) + v0 := genComplex(c0) + v1 := genComplex(c1) n.exec = func(f *frame) bltn { - dest(f).SetComplex(v0(f).Complex() * v1(f).Complex()) + dest(f).SetComplex(v0(f) * v1(f)) return next } } @@ -491,12 +606,22 @@ func mulConst(n *node) { func or(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i | j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -525,6 +650,15 @@ func or(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i | j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -576,12 +710,22 @@ func orConst(n *node) { func quo(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i / j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -610,6 +754,15 @@ func quo(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i / j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -638,6 +791,15 @@ func quo(n *node) { } case reflect.Float32, reflect.Float64: switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i / j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -666,25 +828,32 @@ func quo(n *node) { } case reflect.Complex64, reflect.Complex128: switch { + case isInterface: + v0 := genComplex(c0) + v1 := genComplex(c1) + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(v0(f) / v1(f)).Convert(typ)) + return next + } case c0.rval.IsValid(): r0 := vComplex(c0.rval) - v1 := genValue(c1) + v1 := genComplex(c1) n.exec = func(f *frame) bltn { - dest(f).SetComplex(r0 / v1(f).Complex()) + dest(f).SetComplex(r0 / v1(f)) return next } case c1.rval.IsValid(): r1 := vComplex(c1.rval) - v0 := genValue(c0) + v0 := genComplex(c0) n.exec = func(f *frame) bltn { - dest(f).SetComplex(v0(f).Complex() / r1) + dest(f).SetComplex(v0(f) / r1) return next } default: - v0 := genValue(c0) - v1 := genValue(c1) + v0 := genComplex(c0) + v1 := genComplex(c1) n.exec = func(f *frame) bltn { - dest(f).SetComplex(v0(f).Complex() / v1(f).Complex()) + dest(f).SetComplex(v0(f) / v1(f)) return next } } @@ -726,12 +895,22 @@ func quoConst(n *node) { func rem(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i % j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -760,6 +939,15 @@ func rem(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i % j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -811,12 +999,22 @@ func remConst(n *node) { func shl(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i << j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueUint(c1) @@ -845,6 +1043,15 @@ func shl(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i << j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -896,12 +1103,22 @@ func shlConst(n *node) { func shr(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i >> j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueUint(c1) @@ -930,6 +1147,15 @@ func shr(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i >> j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -981,12 +1207,22 @@ func shrConst(n *node) { func sub(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i - j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -1015,6 +1251,15 @@ func sub(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i - j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -1043,6 +1288,15 @@ func sub(n *node) { } case reflect.Float32, reflect.Float64: switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i - j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -1071,25 +1325,32 @@ func sub(n *node) { } case reflect.Complex64, reflect.Complex128: switch { + case isInterface: + v0 := genComplex(c0) + v1 := genComplex(c1) + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(v0(f) - v1(f)).Convert(typ)) + return next + } case c0.rval.IsValid(): r0 := vComplex(c0.rval) - v1 := genValue(c1) + v1 := genComplex(c1) n.exec = func(f *frame) bltn { - dest(f).SetComplex(r0 - v1(f).Complex()) + dest(f).SetComplex(r0 - v1(f)) return next } case c1.rval.IsValid(): r1 := vComplex(c1.rval) - v0 := genValue(c0) + v0 := genComplex(c0) n.exec = func(f *frame) bltn { - dest(f).SetComplex(v0(f).Complex() - r1) + dest(f).SetComplex(v0(f) - r1) return next } default: - v0 := genValue(c0) - v1 := genValue(c1) + v0 := genComplex(c0) + v1 := genComplex(c1) n.exec = func(f *frame) bltn { - dest(f).SetComplex(v0(f).Complex() - v1(f).Complex()) + dest(f).SetComplex(v0(f) - v1(f)) return next } } @@ -1122,12 +1383,22 @@ func subConst(n *node) { func xor(n *node) { next := getExec(n.tnext) typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface dest := genValueOutput(n, typ) c0, c1 := n.child[0], n.child[1] switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i ^ j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vInt(c0.rval) v1 := genValueInt(c1) @@ -1156,6 +1427,15 @@ func xor(n *node) { } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, i := v0(f) + _, j := v1(f) + dest(f).Set(reflect.ValueOf(i ^ j).Convert(typ)) + return next + } case c0.rval.IsValid(): i := vUint(c0.rval) v1 := genValueUint(c1) @@ -2038,10 +2318,22 @@ func posConst(n *node) { func equal(n *node) { tnext := getExec(n.tnext) dest := genValueOutput(n, reflect.TypeOf(true)) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface c0, c1 := n.child[0], n.child[1] if c0.typ.cat == aliasT || c1.typ.cat == aliasT { switch { + case isInterface: + v0 := genValue(c0) + v1 := genValue(c1) + dest := genValue(n) + n.exec = func(f *frame) bltn { + i0 := v0(f).Interface() + i1 := v1(f).Interface() + dest(f).Set(reflect.ValueOf(i0 == i1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): i0 := c0.rval.Interface() v1 := genValue(c1) @@ -2117,9 +2409,18 @@ func equal(n *node) { switch t0, t1 := c0.typ.TypeOf(), c1.typ.TypeOf(); { case isString(t0) || isString(t1): switch { + case isInterface: + v0 := genValueString(c0) + v1 := genValueString(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 == s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vString(c0.rval) - v1 := genValueString(n.child[1]) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2140,7 +2441,7 @@ func equal(n *node) { } case c1.rval.IsValid(): s1 := vString(c1.rval) - v0 := genValueString(n.child[0]) + v0 := genValueString(c0) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2160,8 +2461,8 @@ func equal(n *node) { } } default: - v0 := genValueString(n.child[0]) - v1 := genValueString(n.child[1]) + v0 := genValueString(c0) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2185,6 +2486,15 @@ func equal(n *node) { } case isFloat(t0) || isFloat(t1): switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 == s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -2255,6 +2565,15 @@ func equal(n *node) { } case isUint(t0) || isUint(t1): switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 == s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vUint(c0.rval) v1 := genValueUint(c1) @@ -2326,6 +2645,15 @@ func equal(n *node) { } case isInt(t0) || isInt(t1): switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 == s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vInt(c0.rval) v1 := genValueInt(c1) @@ -2397,6 +2725,15 @@ func equal(n *node) { } case isComplex(t0) || isComplex(t1): switch { + case isInterface: + v0 := genComplex(c0) + v1 := genComplex(c1) + n.exec = func(f *frame) bltn { + s0 := v0(f) + s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 == s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vComplex(c0.rval) v1 := genComplex(c1) @@ -2441,8 +2778,8 @@ func equal(n *node) { } } default: - v0 := genComplex(n.child[0]) - v1 := genComplex(n.child[1]) + v0 := genComplex(c0) + v1 := genComplex(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2466,6 +2803,15 @@ func equal(n *node) { } default: switch { + case isInterface: + v0 := genValue(c0) + v1 := genValue(c1) + n.exec = func(f *frame) bltn { + i0 := v0(f).Interface() + i1 := v1(f).Interface() + dest(f).Set(reflect.ValueOf(i0 == i1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): i0 := c0.rval.Interface() v1 := genValue(c1) @@ -2541,14 +2887,25 @@ func equal(n *node) { func greater(n *node) { tnext := getExec(n.tnext) dest := genValueOutput(n, reflect.TypeOf(true)) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface c0, c1 := n.child[0], n.child[1] switch t0, t1 := c0.typ.TypeOf(), c1.typ.TypeOf(); { case isString(t0) || isString(t1): switch { + case isInterface: + v0 := genValueString(c0) + v1 := genValueString(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 > s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vString(c0.rval) - v1 := genValueString(n.child[1]) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2569,7 +2926,7 @@ func greater(n *node) { } case c1.rval.IsValid(): s1 := vString(c1.rval) - v0 := genValueString(n.child[0]) + v0 := genValueString(c0) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2589,8 +2946,8 @@ func greater(n *node) { } } default: - v0 := genValueString(n.child[0]) - v1 := genValueString(n.child[1]) + v0 := genValueString(c0) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2614,6 +2971,15 @@ func greater(n *node) { } case isFloat(t0) || isFloat(t1): switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 > s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -2684,6 +3050,15 @@ func greater(n *node) { } case isUint(t0) || isUint(t1): switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 > s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vUint(c0.rval) v1 := genValueUint(c1) @@ -2755,6 +3130,15 @@ func greater(n *node) { } case isInt(t0) || isInt(t1): switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 > s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vInt(c0.rval) v1 := genValueInt(c1) @@ -2830,14 +3214,25 @@ func greater(n *node) { func greaterEqual(n *node) { tnext := getExec(n.tnext) dest := genValueOutput(n, reflect.TypeOf(true)) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface c0, c1 := n.child[0], n.child[1] switch t0, t1 := c0.typ.TypeOf(), c1.typ.TypeOf(); { case isString(t0) || isString(t1): switch { + case isInterface: + v0 := genValueString(c0) + v1 := genValueString(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 >= s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vString(c0.rval) - v1 := genValueString(n.child[1]) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2858,7 +3253,7 @@ func greaterEqual(n *node) { } case c1.rval.IsValid(): s1 := vString(c1.rval) - v0 := genValueString(n.child[0]) + v0 := genValueString(c0) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2878,8 +3273,8 @@ func greaterEqual(n *node) { } } default: - v0 := genValueString(n.child[0]) - v1 := genValueString(n.child[1]) + v0 := genValueString(c0) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -2903,6 +3298,15 @@ func greaterEqual(n *node) { } case isFloat(t0) || isFloat(t1): switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 >= s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -2973,6 +3377,15 @@ func greaterEqual(n *node) { } case isUint(t0) || isUint(t1): switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 >= s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vUint(c0.rval) v1 := genValueUint(c1) @@ -3044,6 +3457,15 @@ func greaterEqual(n *node) { } case isInt(t0) || isInt(t1): switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 >= s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vInt(c0.rval) v1 := genValueInt(c1) @@ -3119,14 +3541,25 @@ func greaterEqual(n *node) { func lower(n *node) { tnext := getExec(n.tnext) dest := genValueOutput(n, reflect.TypeOf(true)) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface c0, c1 := n.child[0], n.child[1] switch t0, t1 := c0.typ.TypeOf(), c1.typ.TypeOf(); { case isString(t0) || isString(t1): switch { + case isInterface: + v0 := genValueString(c0) + v1 := genValueString(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 < s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vString(c0.rval) - v1 := genValueString(n.child[1]) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3147,7 +3580,7 @@ func lower(n *node) { } case c1.rval.IsValid(): s1 := vString(c1.rval) - v0 := genValueString(n.child[0]) + v0 := genValueString(c0) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3167,8 +3600,8 @@ func lower(n *node) { } } default: - v0 := genValueString(n.child[0]) - v1 := genValueString(n.child[1]) + v0 := genValueString(c0) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3192,6 +3625,15 @@ func lower(n *node) { } case isFloat(t0) || isFloat(t1): switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 < s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -3262,6 +3704,15 @@ func lower(n *node) { } case isUint(t0) || isUint(t1): switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 < s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vUint(c0.rval) v1 := genValueUint(c1) @@ -3333,6 +3784,15 @@ func lower(n *node) { } case isInt(t0) || isInt(t1): switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 < s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vInt(c0.rval) v1 := genValueInt(c1) @@ -3408,14 +3868,25 @@ func lower(n *node) { func lowerEqual(n *node) { tnext := getExec(n.tnext) dest := genValueOutput(n, reflect.TypeOf(true)) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface c0, c1 := n.child[0], n.child[1] switch t0, t1 := c0.typ.TypeOf(), c1.typ.TypeOf(); { case isString(t0) || isString(t1): switch { + case isInterface: + v0 := genValueString(c0) + v1 := genValueString(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 <= s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vString(c0.rval) - v1 := genValueString(n.child[1]) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3436,7 +3907,7 @@ func lowerEqual(n *node) { } case c1.rval.IsValid(): s1 := vString(c1.rval) - v0 := genValueString(n.child[0]) + v0 := genValueString(c0) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3456,8 +3927,8 @@ func lowerEqual(n *node) { } } default: - v0 := genValueString(n.child[0]) - v1 := genValueString(n.child[1]) + v0 := genValueString(c0) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3481,6 +3952,15 @@ func lowerEqual(n *node) { } case isFloat(t0) || isFloat(t1): switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 <= s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -3551,6 +4031,15 @@ func lowerEqual(n *node) { } case isUint(t0) || isUint(t1): switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 <= s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vUint(c0.rval) v1 := genValueUint(c1) @@ -3622,6 +4111,15 @@ func lowerEqual(n *node) { } case isInt(t0) || isInt(t1): switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 <= s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vInt(c0.rval) v1 := genValueInt(c1) @@ -3697,10 +4195,22 @@ func lowerEqual(n *node) { func notEqual(n *node) { tnext := getExec(n.tnext) dest := genValueOutput(n, reflect.TypeOf(true)) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface c0, c1 := n.child[0], n.child[1] if c0.typ.cat == aliasT || c1.typ.cat == aliasT { switch { + case isInterface: + v0 := genValue(c0) + v1 := genValue(c1) + dest := genValue(n) + n.exec = func(f *frame) bltn { + i0 := v0(f).Interface() + i1 := v1(f).Interface() + dest(f).Set(reflect.ValueOf(i0 != i1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): i0 := c0.rval.Interface() v1 := genValue(c1) @@ -3776,9 +4286,18 @@ func notEqual(n *node) { switch t0, t1 := c0.typ.TypeOf(), c1.typ.TypeOf(); { case isString(t0) || isString(t1): switch { + case isInterface: + v0 := genValueString(c0) + v1 := genValueString(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 != s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vString(c0.rval) - v1 := genValueString(n.child[1]) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3799,7 +4318,7 @@ func notEqual(n *node) { } case c1.rval.IsValid(): s1 := vString(c1.rval) - v0 := genValueString(n.child[0]) + v0 := genValueString(c0) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3819,8 +4338,8 @@ func notEqual(n *node) { } } default: - v0 := genValueString(n.child[0]) - v1 := genValueString(n.child[1]) + v0 := genValueString(c0) + v1 := genValueString(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -3844,6 +4363,15 @@ func notEqual(n *node) { } case isFloat(t0) || isFloat(t1): switch { + case isInterface: + v0 := genValueFloat(c0) + v1 := genValueFloat(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 != s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vFloat(c0.rval) v1 := genValueFloat(c1) @@ -3914,6 +4442,15 @@ func notEqual(n *node) { } case isUint(t0) || isUint(t1): switch { + case isInterface: + v0 := genValueUint(c0) + v1 := genValueUint(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 != s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vUint(c0.rval) v1 := genValueUint(c1) @@ -3985,6 +4522,15 @@ func notEqual(n *node) { } case isInt(t0) || isInt(t1): switch { + case isInterface: + v0 := genValueInt(c0) + v1 := genValueInt(c1) + n.exec = func(f *frame) bltn { + _, s0 := v0(f) + _, s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 != s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vInt(c0.rval) v1 := genValueInt(c1) @@ -4056,6 +4602,15 @@ func notEqual(n *node) { } case isComplex(t0) || isComplex(t1): switch { + case isInterface: + v0 := genComplex(c0) + v1 := genComplex(c1) + n.exec = func(f *frame) bltn { + s0 := v0(f) + s1 := v1(f) + dest(f).Set(reflect.ValueOf(s0 != s1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): s0 := vComplex(c0.rval) v1 := genComplex(c1) @@ -4100,8 +4655,8 @@ func notEqual(n *node) { } } default: - v0 := genComplex(n.child[0]) - v1 := genComplex(n.child[1]) + v0 := genComplex(c0) + v1 := genComplex(c1) if n.fnext != nil { fnext := getExec(n.fnext) n.exec = func(f *frame) bltn { @@ -4125,6 +4680,15 @@ func notEqual(n *node) { } default: switch { + case isInterface: + v0 := genValue(c0) + v1 := genValue(c1) + n.exec = func(f *frame) bltn { + i0 := v0(f).Interface() + i1 := v1(f).Interface() + dest(f).Set(reflect.ValueOf(i0 != i1).Convert(typ)) + return tnext + } case c0.rval.IsValid(): i0 := c0.rval.Interface() v1 := genValue(c1) diff --git a/vendor/github.com/traefik/yaegi/interp/run.go b/vendor/github.com/traefik/yaegi/interp/run.go index 3e4050b..24b71db 100644 --- a/vendor/github.com/traefik/yaegi/interp/run.go +++ b/vendor/github.com/traefik/yaegi/interp/run.go @@ -9,6 +9,7 @@ import ( "log" "reflect" "regexp" + "strings" "sync" "unsafe" ) @@ -179,7 +180,7 @@ func runCfg(n *node, f *frame) { if oNode == nil { oNode = n } - fmt.Println(oNode.cfgErrorf("panic")) + fmt.Fprintln(n.interp.stderr, oNode.cfgErrorf("panic")) f.mutex.Unlock() panic(f.recovered) } @@ -371,6 +372,40 @@ func typeAssert(n *node, withResult, withOk bool) { } return next } + // empty interface + case n.child[0].typ.cat == interfaceT && len(n.child[0].typ.field) == 0: + n.exec = func(f *frame) bltn { + var ok bool + if setStatus { + defer func() { + value1(f).SetBool(ok) + }() + } + val := value(f) + concrete := val.Interface() + ctyp := reflect.TypeOf(concrete) + + ok = canAssertTypes(ctyp, rtype) + if !ok { + if !withOk { + // TODO(mpl): think about whether this should ever happen. + if ctyp == nil { + panic(fmt.Sprintf("interface conversion: interface {} is nil, not %s", rtype.String())) + } + panic(fmt.Sprintf("interface conversion: interface {} is %s, not %s", ctyp.String(), rtype.String())) + } + return next + } + if withResult { + if isInterfaceSrc(typ) { + // TODO(mpl): this requires more work. the wrapped node is not complete enough. + value0(f).Set(reflect.ValueOf(valueInterface{n.child[0], reflect.ValueOf(concrete)})) + } else { + value0(f).Set(reflect.ValueOf(concrete)) + } + } + return next + } case n.child[0].typ.cat == valueT || n.child[0].typ.cat == errorT: n.exec = func(f *frame) bltn { v := value(f).Elem() @@ -416,13 +451,7 @@ func typeAssert(n *node, withResult, withOk bool) { return next } - styp := v.value.Type() - // TODO(mpl): probably also maps and others. and might have to recurse too. - if styp.String() == "[]interp.valueInterface" { - styp = v.node.typ.rtype - } - - ok = canAssertTypes(styp, rtype) + ok = canAssertTypes(v.value.Type(), rtype) if !ok { if !withOk { panic(fmt.Sprintf("interface conversion: interface {} is %s, not %s", v.value.Type().String(), rtype.String())) @@ -447,6 +476,9 @@ func canAssertTypes(src, dest reflect.Type) bool { if dest.Kind() == reflect.Interface && src.Implements(dest) { return true } + if src == nil { + return false + } if src.AssignableTo(dest) { return true } @@ -466,11 +498,12 @@ func firstMissingMethod(src, dest reflect.Type) string { func convert(n *node) { dest := genValue(n) c := n.child[1] - typ := n.child[0].typ.TypeOf() + typ := n.child[0].typ.frameType() next := getExec(n.tnext) if c.isNil() { // convert nil to type - if n.child[0].typ.cat == interfaceT { + // TODO(mpl): Try to completely remove, as maybe frameType already does the job for interfaces. + if n.child[0].typ.cat == interfaceT && len(n.child[0].typ.field) > 0 { typ = reflect.TypeOf((*valueInterface)(nil)).Elem() } n.exec = func(f *frame) bltn { @@ -559,7 +592,11 @@ func assign(n *node) { dest, src := n.child[i], n.child[sbase+i] switch { case dest.typ.cat == interfaceT: - svalue[i] = genValueInterface(src) + if len(dest.typ.field) > 0 { + svalue[i] = genValueInterface(src) + break + } + svalue[i] = genValue(src) case (dest.typ.cat == valueT || dest.typ.cat == errorT) && dest.typ.rtype.Kind() == reflect.Interface: svalue[i] = genInterfaceWrapper(src, dest.typ.rtype) case src.typ.cat == funcT && dest.typ.cat == valueT: @@ -595,6 +632,7 @@ func assign(n *node) { } if n.nleft == 1 { + // Single assign operation. switch s, d, i := svalue[0], dvalue[0], ivalue[0]; { case n.child[0].ident == "_": n.exec = func(f *frame) bltn { @@ -605,51 +643,84 @@ func assign(n *node) { d(f).SetMapIndex(i(f), s(f)) return next } + case n.kind == defineStmt: + l := n.level + ind := n.findex + n.exec = func(f *frame) bltn { + data := getFrame(f, l).data + data[ind] = reflect.New(data[ind].Type()).Elem() + data[ind].Set(s(f)) + return next + } default: n.exec = func(f *frame) bltn { d(f).Set(s(f)) return next } } - } else { - types := make([]reflect.Type, n.nright) - for i := range types { - var t reflect.Type - switch typ := n.child[sbase+i].typ; typ.cat { - case funcT: - t = reflect.TypeOf((*node)(nil)) - case interfaceT: - t = reflect.TypeOf((*valueInterface)(nil)).Elem() - default: - t = typ.TypeOf() - } - types[i] = t + return + } + + // Multi assign operation. + types := make([]reflect.Type, n.nright) + index := make([]int, n.nright) + level := make([]int, n.nright) + + for i := range types { + var t reflect.Type + switch typ := n.child[sbase+i].typ; typ.cat { + case funcT: + t = reflect.TypeOf((*node)(nil)) + case interfaceT: + t = reflect.TypeOf((*valueInterface)(nil)).Elem() + default: + t = typ.TypeOf() } + types[i] = t + index[i] = n.child[i].findex + level[i] = n.child[i].level + } - // To handle swap in multi-assign: - // evaluate and copy all values in assign right hand side into temporary - // then evaluate assign left hand side and copy temporary into it + if n.kind == defineStmt { + // Handle a multiple var declararation / assign. It cannot be a swap. n.exec = func(f *frame) bltn { - t := make([]reflect.Value, len(svalue)) for i, s := range svalue { if n.child[i].ident == "_" { continue } - t[i] = reflect.New(types[i]).Elem() - t[i].Set(s(f)) - } - for i, d := range dvalue { - if n.child[i].ident == "_" { - continue - } - if j := ivalue[i]; j != nil { - d(f).SetMapIndex(j(f), t[i]) // Assign a map entry - } else { - d(f).Set(t[i]) // Assign a var or array/slice entry - } + data := getFrame(f, level[i]).data + j := index[i] + data[j] = reflect.New(data[j].Type()).Elem() + data[j].Set(s(f)) } return next } + return + } + + // To handle possible swap in multi-assign: + // evaluate and copy all values in assign right hand side into temporary + // then evaluate assign left hand side and copy temporary into it + n.exec = func(f *frame) bltn { + t := make([]reflect.Value, len(svalue)) + for i, s := range svalue { + if n.child[i].ident == "_" { + continue + } + t[i] = reflect.New(types[i]).Elem() + t[i].Set(s(f)) + } + for i, d := range dvalue { + if n.child[i].ident == "_" { + continue + } + if j := ivalue[i]; j != nil { + d(f).SetMapIndex(j(f), t[i]) // Assign a map entry + } else { + d(f).Set(t[i]) // Assign a var or array/slice entry + } + } + return next } } @@ -682,12 +753,11 @@ func addr(n *node) { c0 := n.child[0] value := genValue(c0) switch c0.typ.cat { - case interfaceT: + case interfaceT, ptrT: i := n.findex l := n.level n.exec = func(f *frame) bltn { - v := value(f).Interface().(valueInterface).value - getFrame(f, l).data[i] = reflect.ValueOf(v.Interface()) + getFrame(f, l).data[i] = value(f).Addr() return next } default: @@ -767,11 +837,20 @@ func _recover(n *node) { n.exec = func(f *frame) bltn { if f.anc.recovered == nil { + // TODO(mpl): maybe we don't need that special case, and we're just forgetting to unwrap the valueInterface somewhere else. + if n.typ.cat == interfaceT && len(n.typ.field) == 0 { + return tnext + } dest(f).Set(reflect.ValueOf(valueInterface{})) + return tnext + } + + if n.typ.cat == interfaceT && len(n.typ.field) == 0 { + dest(f).Set(reflect.ValueOf(f.anc.recovered)) } else { dest(f).Set(reflect.ValueOf(valueInterface{n, reflect.ValueOf(f.anc.recovered)})) - f.anc.recovered = nil } + f.anc.recovered = nil return tnext } } @@ -847,7 +926,7 @@ func genFunctionWrapper(n *node) func(*frame) reflect.Value { funcType := n.typ.TypeOf() return func(f *frame) reflect.Value { - if n.frame != nil { // Use closure context if defined + if n.frame != nil { // Use closure context if defined. f = n.frame } return reflect.MakeFunc(funcType, func(in []reflect.Value) []reflect.Value { @@ -858,7 +937,7 @@ func genFunctionWrapper(n *node) func(*frame) reflect.Value { d[i] = reflect.New(t).Elem() } - // Copy method receiver as first argument, if defined + // Copy method receiver as first argument, if defined. if rcvr != nil { src, dest := rcvr(f), d[numRet] if src.Type().Kind() != dest.Type().Kind() { @@ -874,12 +953,16 @@ func genFunctionWrapper(n *node) func(*frame) reflect.Value { d = d[numRet:] } - // Copy function input arguments in local frame + // Copy function input arguments in local frame. for i, arg := range in { typ := def.typ.arg[i] switch { case typ.cat == interfaceT: - d[i].Set(reflect.ValueOf(valueInterface{value: arg.Elem()})) + if len(typ.field) > 0 { + d[i].Set(reflect.ValueOf(valueInterface{value: arg.Elem()})) + break + } + d[i].Set(arg) case typ.cat == funcT && arg.Kind() == reflect.Func: d[i].Set(reflect.ValueOf(genFunctionNode(arg))) default: @@ -887,7 +970,7 @@ func genFunctionWrapper(n *node) func(*frame) reflect.Value { } } - // Interpreter code execution + // Interpreter code execution. runCfg(start, fr) result := fr.data[:numRet] @@ -1024,7 +1107,12 @@ func call(n *node) { } switch { case arg.cat == interfaceT: - values = append(values, genValueInterface(c)) + if len(arg.field) > 0 { + values = append(values, genValueInterface(c)) + break + } + // empty interface, do not wrap it. + values = append(values, genValue(c)) case isRecursiveType(c.typ, c.typ.rtype): values = append(values, genValueRecursiveInterfacePtrValue(c)) default: @@ -1044,7 +1132,12 @@ func call(n *node) { case c.ident == "_": // Skip assigning return value to blank var. case c.typ.cat == interfaceT && rtypes[i].cat != interfaceT: - rvalues[i] = genValueInterfaceValue(c) + if len(c.typ.field) > 0 { + rvalues[i] = genValueInterfaceValue(c) + break + } + // empty interface, do not wrap + fallthrough default: rvalues[i] = genValue(c) } @@ -1055,7 +1148,7 @@ func call(n *node) { j := n.findex + i ret := n.child[0].typ.ret[i] callret := n.anc.val.(*node).typ.ret[i] - if callret.cat == interfaceT && ret.cat != interfaceT { + if callret.cat == interfaceT && len(callret.field) > 0 && ret.cat != interfaceT { // Wrap the returned value in a valueInterface in caller frame. rvalues[i] = func(f *frame) reflect.Value { v := reflect.New(ret.rtype).Elem() @@ -1241,16 +1334,18 @@ func callBin(n *node) { tnext := getExec(n.tnext) fnext := getExec(n.fnext) child := n.child[1:] - value := genValue(n.child[0]) + c0 := n.child[0] + value := genValue(c0) var values []func(*frame) reflect.Value - funcType := n.child[0].typ.rtype + funcType := c0.typ.rtype + wt := wrappedType(c0) variadic := -1 if funcType.IsVariadic() { variadic = funcType.NumIn() - 1 } // A method signature obtained from reflect.Type includes receiver as 1st arg, except for interface types. rcvrOffset := 0 - if recv := n.child[0].recv; recv != nil && !isInterface(recv.node.typ) { + if recv := c0.recv; recv != nil && !isInterface(recv.node.typ) { if variadic > 0 || funcType.NumIn() > len(child) { rcvrOffset = 1 } @@ -1299,15 +1394,29 @@ func callBin(n *node) { } } + if wt != nil && wt.arg[i].cat == interfaceT { + values = append(values, genValueInterface(c)) + break + } + switch c.typ.cat { case funcT: values = append(values, genFunctionWrapper(c)) case interfaceT: - values = append(values, genValueInterfaceValue(c)) + if len(c.typ.field) > 0 { + values = append(values, genValueInterfaceValue(c)) + break + } + // empty interface, do not wrap it. + values = append(values, genValue(c)) case arrayT, variadicT: switch c.typ.val.cat { case interfaceT: - values = append(values, genValueInterfaceArray(c)) + if len(c.typ.val.field) > 0 { + values = append(values, genValueInterfaceArray(c)) + break + } + values = append(values, genValueArray(c)) default: values = append(values, genInterfaceWrapper(c, defType)) } @@ -1533,15 +1642,22 @@ func getIndexMap(n *node) { case n.typ.cat == interfaceT: z = reflect.New(n.child[0].typ.val.frameType()).Elem() n.exec = func(f *frame) bltn { - if v := value0(f).MapIndex(mi); v.IsValid() { - if e := v.Elem(); e.Type().AssignableTo(valueInterfaceType) { - dest(f).Set(e) - } else { - dest(f).Set(reflect.ValueOf(valueInterface{n, e})) - } - } else { + v := value0(f).MapIndex(mi) + if !v.IsValid() { dest(f).Set(z) + return tnext + } + e := v.Elem() + if len(n.typ.field) == 0 { + // e is empty interface, do not wrap + dest(f).Set(e) + return tnext + } + if e.Type().AssignableTo(valueInterfaceType) { + dest(f).Set(e) + return tnext } + dest(f).Set(reflect.ValueOf(valueInterface{n, e})) return tnext } default: @@ -1684,12 +1800,14 @@ func getIndexMap2(n *node) { } } +const fork = true // Duplicate frame in frame.clone(). + func getFunc(n *node) { dest := genValue(n) next := getExec(n.tnext) n.exec = func(f *frame) bltn { - fr := f.clone() + fr := f.clone(fork) nod := *n nod.val = &nod nod.frame = fr @@ -1704,7 +1822,7 @@ func getMethod(n *node) { next := getExec(n.tnext) n.exec = func(f *frame) bltn { - fr := f.clone() + fr := f.clone(!fork) nod := *(n.val.(*node)) nod.val = &nod nod.recv = n.recv @@ -1740,7 +1858,7 @@ func getMethodByName(n *node) { return next } m, li := val.node.typ.lookupMethod(name) - fr := f.clone() + fr := f.clone(!fork) nod := *m nod.val = &nod nod.recv = &receiver{nil, val.value, li} @@ -1923,24 +2041,54 @@ func neg(n *node) { dest := genValue(n) value := genValue(n.child[0]) next := getExec(n.tnext) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface switch n.typ.TypeOf().Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + if isInterface { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(-value(f).Int()).Convert(typ)) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetInt(-value(f).Int()) return next } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + if isInterface { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(-value(f).Uint()).Convert(typ)) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetUint(-value(f).Uint()) return next } case reflect.Float32, reflect.Float64: + if isInterface { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(-value(f).Float()).Convert(typ)) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetFloat(-value(f).Float()) return next } case reflect.Complex64, reflect.Complex128: + if isInterface { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(-value(f).Complex()).Convert(typ)) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetComplex(-value(f).Complex()) return next @@ -1963,15 +2111,30 @@ func bitNot(n *node) { dest := genValue(n) value := genValue(n.child[0]) next := getExec(n.tnext) - typ := n.typ.TypeOf() + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface switch typ.Kind() { case reflect.Int, reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64: + if isInterface { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(^value(f).Int()).Convert(typ)) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetInt(^value(f).Int()) return next } case reflect.Uint, reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uintptr: + if isInterface { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(^value(f).Uint()).Convert(typ)) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetUint(^value(f).Uint()) return next @@ -1984,6 +2147,8 @@ func land(n *node) { value1 := genValue(n.child[1]) tnext := getExec(n.tnext) dest := genValue(n) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface if n.fnext != nil { fnext := getExec(n.fnext) @@ -1995,11 +2160,18 @@ func land(n *node) { dest(f).SetBool(false) return fnext } - } else { + return + } + if isInterface { n.exec = func(f *frame) bltn { - dest(f).SetBool(value0(f).Bool() && value1(f).Bool()) + dest(f).Set(reflect.ValueOf(value0(f).Bool() && value1(f).Bool()).Convert(typ)) return tnext } + return + } + n.exec = func(f *frame) bltn { + dest(f).SetBool(value0(f).Bool() && value1(f).Bool()) + return tnext } } @@ -2008,6 +2180,8 @@ func lor(n *node) { value1 := genValue(n.child[1]) tnext := getExec(n.tnext) dest := genValue(n) + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface if n.fnext != nil { fnext := getExec(n.fnext) @@ -2019,11 +2193,18 @@ func lor(n *node) { dest(f).SetBool(false) return fnext } - } else { + return + } + if isInterface { n.exec = func(f *frame) bltn { - dest(f).SetBool(value0(f).Bool() || value1(f).Bool()) + dest(f).Set(reflect.ValueOf(value0(f).Bool() || value1(f).Bool()).Convert(typ)) return tnext } + return + } + n.exec = func(f *frame) bltn { + dest(f).SetBool(value0(f).Bool() || value1(f).Bool()) + return tnext } } @@ -2065,6 +2246,13 @@ func _return(n *node) { case funcT: values[i] = genValue(c) case interfaceT: + if len(t.field) == 0 { + // empty interface case. + // we can't let genValueInterface deal with it, because we call on c, + // not on n, which means that the interfaceT knowledge is lost. + values[i] = genValue(c) + break + } values[i] = genValueInterface(c) case valueT: if t.rtype.Kind() == reflect.Interface { @@ -2130,7 +2318,7 @@ func arrayLit(n *node) { for i, c := range child { if c.kind == keyValueExpr { convertLiteralValue(c.child[1], rtype) - if n.typ.val.cat == interfaceT { + if n.typ.val.cat == interfaceT && len(n.typ.val.field) > 0 { values[i] = genValueInterface(c.child[1]) } else { values[i] = genValue(c.child[1]) @@ -2138,7 +2326,7 @@ func arrayLit(n *node) { index[i] = int(vInt(c.child[0].rval)) } else { convertLiteralValue(c, rtype) - if n.typ.val.cat == interfaceT { + if n.typ.val.cat == interfaceT && len(n.typ.val.field) > 0 { values[i] = genValueInterface(c) } else { values[i] = genValue(c) @@ -2162,11 +2350,7 @@ func arrayLit(n *node) { for i, v := range values { a.Index(index[i]).Set(v(f)) } - dest := value(f) - if _, ok := dest.Interface().(valueInterface); ok { - a = reflect.ValueOf(valueInterface{n, a}) - } - dest.Set(a) + value(f).Set(a) return next } } @@ -2189,7 +2373,7 @@ func mapLit(n *node) { } else { keys[i] = genValue(c.child[0]) } - if n.typ.val.cat == interfaceT { + if n.typ.val.cat == interfaceT && len(n.typ.val.field) > 0 { values[i] = genValueInterface(c.child[1]) } else { values[i] = genValue(c.child[1]) @@ -2220,7 +2404,12 @@ func compositeBinMap(n *node) { convertLiteralValue(c.child[0], typ.Key()) convertLiteralValue(c.child[1], typ.Elem()) keys[i] = genValue(c.child[0]) - values[i] = genValue(c.child[1]) + + if c.child[1].typ.cat == funcT { + values[i] = genFunctionWrapper(c.child[1]) + } else { + values[i] = genValue(c.child[1]) + } } n.exec = func(f *frame) bltn { @@ -2376,7 +2565,7 @@ func doComposite(n *node, hasType bool, keyed bool) { case val.typ.cat == nilT: values[fieldIndex] = func(*frame) reflect.Value { return reflect.New(rft).Elem() } case val.typ.cat == funcT: - values[fieldIndex] = genFunctionWrapper(val) + values[fieldIndex] = genValueAsFunctionWrapper(val) case isArray(val.typ) && val.typ.val != nil && val.typ.val.cat == interfaceT: values[fieldIndex] = genValueInterfaceArray(val) case isRecursiveType(ft, rft): @@ -2392,7 +2581,7 @@ func doComposite(n *node, hasType bool, keyed bool) { l := n.level n.exec = func(f *frame) bltn { typ.mu.Lock() - // No need to call zero() as doComposite is only called for a structT + // No need to call zero() as doComposite is only called for a structT. a := reflect.New(typ.TypeOf()).Elem() typ.mu.Unlock() for i, v := range values { @@ -2403,7 +2592,11 @@ func doComposite(n *node, hasType bool, keyed bool) { case d.Type().Kind() == reflect.Ptr: d.Set(a.Addr()) case destInterface: - d.Set(reflect.ValueOf(valueInterface{n, a})) + if len(destType(n).field) > 0 { + d.Set(reflect.ValueOf(valueInterface{n, a})) + break + } + d.Set(a) default: getFrame(f, l).data[frameIndex] = a } @@ -2517,18 +2710,35 @@ func rangeMap(n *node) { index1 := n.child[1].findex // map value location in frame value = genValue(n.child[2]) // map if n.child[1].typ.cat == interfaceT { - n.exec = func(f *frame) bltn { - iter := f.data[index2].Interface().(*reflect.MapIter) - if !iter.Next() { - return fnext + if len(n.child[1].typ.field) > 0 { + n.exec = func(f *frame) bltn { + iter := f.data[index2].Interface().(*reflect.MapIter) + if !iter.Next() { + return fnext + } + f.data[index0].Set(iter.Key()) + if e := iter.Value().Elem(); e.Type().AssignableTo(valueInterfaceType) { + f.data[index1].Set(e) + } else { + f.data[index1].Set(reflect.ValueOf(valueInterface{n, e})) + } + return tnext } - f.data[index0].Set(iter.Key()) - if e := iter.Value().Elem(); e.Type().AssignableTo(valueInterfaceType) { - f.data[index1].Set(e) - } else { - f.data[index1].Set(reflect.ValueOf(valueInterface{n, e})) + } else { + // empty interface, do not wrap + n.exec = func(f *frame) bltn { + iter := f.data[index2].Interface().(*reflect.MapIter) + if !iter.Next() { + return fnext + } + f.data[index0].Set(iter.Key()) + if iter.Value().Elem().IsValid() { + f.data[index1].Set(iter.Value().Elem()) + } else { + f.data[index1].Set(reflect.New(interf).Elem()) + } + return tnext } - return tnext } } else { n.exec = func(f *frame) bltn { @@ -2564,6 +2774,7 @@ func rangeMap(n *node) { func _case(n *node) { tnext := getExec(n.tnext) + // TODO(mpl): a lot of what is done in typeAssert should probably be redone/reused here. switch { case n.anc.anc.kind == typeSwitch: fnext := getExec(n.fnext) @@ -2573,81 +2784,115 @@ func _case(n *node) { types[i] = n.child[i].typ } srcValue := genValue(sn.child[1].lastChild().child[0]) - if len(sn.child[1].child) == 2 { - // assign in switch guard - destValue := genValue(n.lastChild().child[0]) - switch len(types) { - case 0: - // default clause: assign var to interface value - n.exec = func(f *frame) bltn { - destValue(f).Set(srcValue(f)) - return tnext - } - case 1: - // match against 1 type: assign var to concrete value - typ := types[0] + + if len(sn.child[1].child) != 2 { + // no assign in switch guard + if len(n.child) <= 1 { + n.exec = func(f *frame) bltn { return tnext } + } else { n.exec = func(f *frame) bltn { - v := srcValue(f) - if !v.IsValid() { - // match zero value against nil - if typ.cat == nilT { - return tnext - } - return fnext - } - if t := v.Type(); t.Kind() == reflect.Interface { - if typ.cat == nilT && v.IsNil() { - return tnext + ival := srcValue(f).Interface() + val, ok := ival.(valueInterface) + // TODO(mpl): I'm assuming here that !ok means that we're dealing with the empty + // interface case. But maybe we should make sure by checking the relevant cat + // instead? later. Use t := v.Type(); t.Kind() == reflect.Interface , like above. + if !ok { + var stype string + if ival != nil { + stype = strings.ReplaceAll(reflect.TypeOf(ival).String(), " {}", "{}") } - if typ.TypeOf().String() == t.String() { - destValue(f).Set(v.Elem()) - return tnext + for _, typ := range types { + // TODO(mpl): we should actually use canAssertTypes, but need to find a valid + // rtype for typ. Plus we need to refactor with typeAssert(). + // weak check instead for now. + if ival == nil { + if typ.cat == nilT { + return tnext + } + continue + } + if stype == typ.id() { + return tnext + } } return fnext } - vi := v.Interface().(valueInterface) - if vi.node == nil { - if typ.cat == nilT { - return tnext + if v := val.node; v != nil { + for _, typ := range types { + if v.typ.id() == typ.id() { + return tnext + } } - return fnext } - if vi.node.typ.id() == typ.id() { - destValue(f).Set(vi.value) + return fnext + } + } + break + } + + // assign in switch guard + destValue := genValue(n.lastChild().child[0]) + switch len(types) { + case 0: + // default clause: assign var to interface value + n.exec = func(f *frame) bltn { + destValue(f).Set(srcValue(f)) + return tnext + } + case 1: + // match against 1 type: assign var to concrete value + typ := types[0] + n.exec = func(f *frame) bltn { + v := srcValue(f) + if !v.IsValid() { + // match zero value against nil + if typ.cat == nilT { return tnext } return fnext } - default: - // match against multiple types: assign var to interface value - n.exec = func(f *frame) bltn { - val := srcValue(f) - if v := srcValue(f).Interface().(valueInterface).node; v != nil { - for _, typ := range types { - if v.typ.id() == typ.id() { - destValue(f).Set(val) - return tnext - } - } + if t := v.Type(); t.Kind() == reflect.Interface { + if typ.cat == nilT && v.IsNil() { + return tnext + } + if typ.TypeOf().String() == t.String() { + destValue(f).Set(v.Elem()) + return tnext + } + ival := v.Interface() + if ival != nil && typ.TypeOf().String() == reflect.TypeOf(ival).String() { + destValue(f).Set(v.Elem()) + return tnext } return fnext } + vi := v.Interface().(valueInterface) + if vi.node == nil { + if typ.cat == nilT { + return tnext + } + return fnext + } + if vi.node.typ.id() == typ.id() { + destValue(f).Set(vi.value) + return tnext + } + return fnext } - } else { - // no assign in switch guard - if len(n.child) <= 1 { - n.exec = func(f *frame) bltn { return tnext } - } else { - n.exec = func(f *frame) bltn { - if v := srcValue(f).Interface().(valueInterface).node; v != nil { - for _, typ := range types { - if v.typ.id() == typ.id() { - return tnext - } + default: + // TODO(mpl): probably needs to be fixed for empty interfaces, like above. + // match against multiple types: assign var to interface value + n.exec = func(f *frame) bltn { + val := srcValue(f) + if v := srcValue(f).Interface().(valueInterface).node; v != nil { + for _, typ := range types { + if v.typ.id() == typ.id() { + destValue(f).Set(val) + return tnext } } - return fnext } + return fnext } } @@ -2702,7 +2947,7 @@ func _append(n *node) { if len(n.child) == 3 { c1, c2 := n.child[1], n.child[2] if (c1.typ.cat == valueT || c2.typ.cat == valueT) && c1.typ.rtype == c2.typ.rtype || - c2.typ.cat == arrayT && c2.typ.val.id() == n.typ.val.id() || + (c2.typ.cat == arrayT || c2.typ.cat == variadicT) && c2.typ.val.id() == n.typ.val.id() || isByteArray(c1.typ.TypeOf()) && isString(c2.typ.TypeOf()) { appendSlice(n) return @@ -2720,7 +2965,11 @@ func _append(n *node) { for i, arg := range args { switch { case n.typ.val.cat == interfaceT: - values[i] = genValueInterface(arg) + if len(n.typ.val.field) > 0 { + values[i] = genValueInterface(arg) + break + } + values[i] = genValue(arg) case isRecursiveType(n.typ.val, n.typ.val.rtype): values[i] = genValueRecursiveInterface(arg, n.typ.val.rtype) case arg.typ.untyped: @@ -2742,7 +2991,11 @@ func _append(n *node) { var value0 func(*frame) reflect.Value switch { case n.typ.val.cat == interfaceT: - value0 = genValueInterface(n.child[2]) + if len(n.typ.val.field) > 0 { + value0 = genValueInterface(n.child[2]) + break + } + value0 = genValue(n.child[2]) case isRecursiveType(n.typ.val, n.typ.val.rtype): value0 = genValueRecursiveInterface(n.child[2], n.typ.val.rtype) case n.child[2].typ.untyped: @@ -2763,6 +3016,13 @@ func _cap(n *node) { value := genValue(n.child[1]) next := getExec(n.tnext) + if wantEmptyInterface(n) { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(value(f).Cap())) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetInt(int64(value(f).Cap())) return next @@ -2797,17 +3057,25 @@ func _complex(n *node) { value1 := genValue(c2) next := getExec(n.tnext) - if typ := n.typ.TypeOf(); isComplex(typ) { - n.exec = func(f *frame) bltn { - dest(f).SetComplex(complex(value0(f).Float(), value1(f).Float())) - return next + typ := n.typ.TypeOf() + if isComplex(typ) { + if wantEmptyInterface(n) { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(complex(value0(f).Float(), value1(f).Float()))) + return next + } + return } - } else { - // Not a complex type: ignore imaginary part n.exec = func(f *frame) bltn { - dest(f).Set(value0(f).Convert(typ)) + dest(f).SetComplex(complex(value0(f).Float(), value1(f).Float())) return next } + return + } + // Not a complex type: ignore imaginary part + n.exec = func(f *frame) bltn { + dest(f).Set(value0(f).Convert(typ)) + return next } } @@ -2817,6 +3085,13 @@ func _imag(n *node) { value := genValue(n.child[1]) next := getExec(n.tnext) + if wantEmptyInterface(n) { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(imag(value(f).Complex()))) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetFloat(imag(value(f).Complex())) return next @@ -2829,6 +3104,13 @@ func _real(n *node) { value := genValue(n.child[1]) next := getExec(n.tnext) + if wantEmptyInterface(n) { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(real(value(f).Complex()))) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetFloat(real(value(f).Complex())) return next @@ -2847,11 +3129,33 @@ func _delete(n *node) { }) } +func capConst(n *node) { + n.rval = reflect.New(reflect.TypeOf(int(0))).Elem() + // There is no Cap() method for reflect.Type, just return Len() instead. + n.rval.SetInt(int64(n.child[1].typ.TypeOf().Len())) +} + +func lenConst(n *node) { + n.rval = reflect.New(reflect.TypeOf(int(0))).Elem() + if c1 := n.child[1]; c1.rval.IsValid() { + n.rval.SetInt(int64(len(vString(c1.rval)))) + } else { + n.rval.SetInt(int64(c1.typ.TypeOf().Len())) + } +} + func _len(n *node) { dest := genValueOutput(n, reflect.TypeOf(int(0))) value := genValue(n.child[1]) next := getExec(n.tnext) + if wantEmptyInterface(n) { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(value(f).Len())) + return next + } + return + } n.exec = func(f *frame) bltn { dest(f).SetInt(int64(value(f).Len())) return next @@ -2882,8 +3186,8 @@ func _make(n *node) { switch len(n.child) { case 3: n.exec = func(f *frame) bltn { - len := int(vInt(value(f))) - dest(f).Set(reflect.MakeSlice(typ, len, len)) + length := int(vInt(value(f))) + dest(f).Set(reflect.MakeSlice(typ, length, length)) return next } case 4: @@ -3133,35 +3437,44 @@ func convertConstantValue(n *node) { // Write to a channel. func send(n *node) { next := getExec(n.tnext) - value0 := genValue(n.child[0]) // channel - convertLiteralValue(n.child[1], n.child[0].typ.val.TypeOf()) - value1 := genValue(n.child[1]) // value to send + c0, c1 := n.child[0], n.child[1] + value0 := genValue(c0) // Send channel. + convertLiteralValue(c1, c0.typ.val.TypeOf()) - if n.interp.cancelChan { - // Cancellable send - n.exec = func(f *frame) bltn { - ch, data := value0(f), value1(f) - // Fast: send on channel doesn't block - if ok := ch.TrySend(data); ok { - return next - } - // Slow: send on channel blocks, allow cancel - f.mutex.RLock() - done := f.done - f.mutex.RUnlock() + var value1 func(*frame) reflect.Value // Value to send. + switch { + case isInterfaceBin(c0.typ.val): + value1 = genInterfaceWrapper(c1, c0.typ.val.rtype) + default: + value1 = genValue(c1) + } - chosen, _, _ := reflect.Select([]reflect.SelectCase{done, {Dir: reflect.SelectSend, Chan: ch, Send: data}}) - if chosen == 0 { - return nil - } - return next - } - } else { - // Blocking send (less overhead) + if !n.interp.cancelChan { + // Send is non-cancellable, has the least overhead. n.exec = func(f *frame) bltn { value0(f).Send(value1(f)) return next } + return + } + + // Send is cancellable, may have some overhead. + n.exec = func(f *frame) bltn { + ch, data := value0(f), value1(f) + // Fast: send on channel doesn't block. + if ok := ch.TrySend(data); ok { + return next + } + // Slow: send on channel blocks, allow cancel. + f.mutex.RLock() + done := f.done + f.mutex.RUnlock() + + chosen, _, _ := reflect.Select([]reflect.SelectCase{done, {Dir: reflect.SelectSend, Chan: ch, Send: data}}) + if chosen == 0 { + return nil + } + return next } } @@ -3349,49 +3662,84 @@ func isNil(n *node) { } else { value = genValue(c0) } + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface tnext := getExec(n.tnext) dest := genValue(n) - if n.fnext != nil { - fnext := getExec(n.fnext) - if c0.typ.cat == interfaceT { - n.exec = func(f *frame) bltn { - v := value(f) - vi, ok := v.Interface().(valueInterface) - if ok && (vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) || v.IsNil() { - dest(f).SetBool(true) + if n.fnext == nil { + if c0.typ.cat != interfaceT { + if isInterface { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(value(f).IsNil()).Convert(typ)) return tnext } - dest(f).SetBool(false) - return fnext + return } - } else { n.exec = func(f *frame) bltn { - if value(f).IsNil() { - dest(f).SetBool(true) - return tnext - } - dest(f).SetBool(false) - return fnext + dest(f).SetBool(value(f).IsNil()) + return tnext } + return } - } else { - if c0.typ.cat == interfaceT { + if isInterface { n.exec = func(f *frame) bltn { v := value(f) + var r bool if vi, ok := v.Interface().(valueInterface); ok { - dest(f).SetBool(vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) + r = (vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) } else { - dest(f).SetBool(v.IsNil()) + r = v.IsNil() } + dest(f).Set(reflect.ValueOf(r).Convert(typ)) return tnext } - } else { - n.exec = func(f *frame) bltn { - dest(f).SetBool(value(f).IsNil()) + return + } + n.exec = func(f *frame) bltn { + v := value(f) + var r bool + if vi, ok := v.Interface().(valueInterface); ok { + r = (vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) + } else { + r = v.IsNil() + } + dest(f).SetBool(r) + return tnext + } + return + } + + fnext := getExec(n.fnext) + + if c0.typ.cat != interfaceT { + n.exec = func(f *frame) bltn { + if value(f).IsNil() { + dest(f).SetBool(true) + return tnext + } + dest(f).SetBool(false) + return fnext + } + return + } + + n.exec = func(f *frame) bltn { + v := value(f) + if vi, ok := v.Interface().(valueInterface); ok { + if (vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) { + dest(f).SetBool(true) return tnext } + dest(f).SetBool(false) + return fnext } + if v.IsNil() { + dest(f).SetBool(true) + return tnext + } + dest(f).SetBool(false) + return fnext } } @@ -3403,49 +3751,85 @@ func isNotNil(n *node) { } else { value = genValue(c0) } + typ := n.typ.concrete().TypeOf() + isInterface := n.typ.TypeOf().Kind() == reflect.Interface tnext := getExec(n.tnext) dest := genValue(n) - if n.fnext != nil { - fnext := getExec(n.fnext) - if c0.typ.cat == interfaceT { - n.exec = func(f *frame) bltn { - v := value(f) - vi, ok := v.Interface().(valueInterface) - if ok && (vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) || v.IsNil() { - dest(f).SetBool(false) - return fnext + if n.fnext == nil { + if c0.typ.cat != interfaceT { + if isInterface { + n.exec = func(f *frame) bltn { + dest(f).Set(reflect.ValueOf(!value(f).IsNil()).Convert(typ)) + return tnext } - dest(f).SetBool(true) - return tnext + return } - } else { n.exec = func(f *frame) bltn { - if value(f).IsNil() { - dest(f).SetBool(false) - return fnext - } - dest(f).SetBool(true) + dest(f).SetBool(!value(f).IsNil()) return tnext } + return } - } else { - if c0.typ.cat == interfaceT { + + if isInterface { n.exec = func(f *frame) bltn { v := value(f) + var r bool if vi, ok := v.Interface().(valueInterface); ok { - dest(f).SetBool(!(vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT)) + r = (vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) } else { - dest(f).SetBool(!v.IsNil()) + r = v.IsNil() } + dest(f).Set(reflect.ValueOf(!r).Convert(typ)) return tnext } - } else { - n.exec = func(f *frame) bltn { - dest(f).SetBool(!value(f).IsNil()) - return tnext + return + } + n.exec = func(f *frame) bltn { + v := value(f) + var r bool + if vi, ok := v.Interface().(valueInterface); ok { + r = (vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) + } else { + r = v.IsNil() } + dest(f).SetBool(!r) + return tnext + } + return + } + + fnext := getExec(n.fnext) + + if c0.typ.cat != interfaceT { + n.exec = func(f *frame) bltn { + if value(f).IsNil() { + dest(f).SetBool(false) + return fnext + } + dest(f).SetBool(true) + return tnext + } + return + } + + n.exec = func(f *frame) bltn { + v := value(f) + if vi, ok := v.Interface().(valueInterface); ok { + if (vi == valueInterface{} || vi.node.kind == basicLit && vi.node.typ.cat == nilT) { + dest(f).SetBool(false) + return fnext + } + dest(f).SetBool(true) + return tnext + } + if v.IsNil() { + dest(f).SetBool(false) + return fnext } + dest(f).SetBool(true) + return tnext } } diff --git a/vendor/github.com/traefik/yaegi/interp/src.go b/vendor/github.com/traefik/yaegi/interp/src.go index 0ed8312..3951d14 100644 --- a/vendor/github.com/traefik/yaegi/interp/src.go +++ b/vendor/github.com/traefik/yaegi/interp/src.go @@ -33,12 +33,12 @@ func (interp *Interpreter) importSrc(rPath, importPath string, skipTest bool) (s rPath = "." } dir = filepath.Join(filepath.Dir(interp.name), rPath, importPath) - } else if dir, rPath, err = pkgDir(interp.context.GOPATH, rPath, importPath); err != nil { + } else if dir, rPath, err = interp.pkgDir(interp.context.GOPATH, rPath, importPath); err != nil { // Try again, assuming a root dir at the source location. if rPath, err = interp.rootFromSourceLocation(); err != nil { return "", err } - if dir, rPath, err = pkgDir(interp.context.GOPATH, rPath, importPath); err != nil { + if dir, rPath, err = interp.pkgDir(interp.context.GOPATH, rPath, importPath); err != nil { return "", err } } @@ -181,7 +181,7 @@ func (interp *Interpreter) rootFromSourceLocation() (string, error) { // pkgDir returns the absolute path in filesystem for a package given its import path // and the root of the subtree dependencies. -func pkgDir(goPath string, root, importPath string) (string, string, error) { +func (interp *Interpreter) pkgDir(goPath string, root, importPath string) (string, string, error) { rPath := filepath.Join(root, "vendor") dir := filepath.Join(goPath, "src", rPath, importPath) @@ -196,6 +196,9 @@ func pkgDir(goPath string, root, importPath string) (string, string, error) { } if len(root) == 0 { + if interp.context.GOPATH == "" { + return "", "", fmt.Errorf("unable to find source related to: %q. Either the GOPATH environment variable, or the Interpreter.Options.GoPath needs to be set", importPath) + } return "", "", fmt.Errorf("unable to find source related to: %q", importPath) } @@ -205,7 +208,7 @@ func pkgDir(goPath string, root, importPath string) (string, string, error) { return "", "", err } - return pkgDir(goPath, prevRoot, importPath) + return interp.pkgDir(goPath, prevRoot, importPath) } const vendor = "vendor" diff --git a/vendor/github.com/traefik/yaegi/interp/type.go b/vendor/github.com/traefik/yaegi/interp/type.go index 6fde115..37ce854 100644 --- a/vendor/github.com/traefik/yaegi/interp/type.go +++ b/vendor/github.com/traefik/yaegi/interp/type.go @@ -134,6 +134,10 @@ func untypedInt() *itype { return &itype{cat: intT, name: "int", untyped: tr func untypedFloat() *itype { return &itype{cat: float64T, name: "float64", untyped: true} } func untypedComplex() *itype { return &itype{cat: complex128T, name: "complex128", untyped: true} } +func errorMethodType(sc *scope) *itype { + return &itype{cat: funcT, ret: []*itype{sc.getType("string")}} +} + // nodeType returns a type definition for the corresponding AST subtree. func nodeType(interp *Interpreter, sc *scope, n *node) (*itype, error) { if n.typ != nil && !n.typ.incomplete { @@ -198,7 +202,7 @@ func nodeType(interp *Interpreter, sc *scope, n *node) (*itype, error) { if sym.kind != constSym { return nil, c0.cfgErrorf("non-constant array bound %q", c0.ident) } - if sym.typ == nil || sym.typ.cat != intT { + if sym.typ == nil || sym.typ.cat != intT || !sym.rval.IsValid() { t.incomplete = true break } @@ -274,8 +278,33 @@ func nodeType(interp *Interpreter, sc *scope, n *node) (*itype, error) { t = t1 } } + + // Because an empty interface concrete type "mutates" as different values are + // assigned to it, we need to make a new itype from scratch everytime a new + // assignment is made, and not let different nodes (of the same variable) share the + // same itype. Otherwise they would overwrite each other. + if n.anc.kind == assignStmt && isInterface(n.anc.child[0].typ) && len(n.anc.child[0].typ.field) == 0 { + // TODO(mpl): do the indexes properly for multiple assignments on the same line. + // Also, maybe we should use nodeType to figure out dt.cat? but isn't it always + // gonna be an interfaceT anyway? + dt := new(itype) + dt.cat = interfaceT + val := new(itype) + val.cat = t.cat + dt.val = val + // TODO(mpl): do the indexes properly for multiple assignments on the same line. + // Also, maybe we should use nodeType to figure out dt.cat? but isn't it always + // gonna be an interfaceT anyway? + n.anc.child[0].typ = dt + // TODO(mpl): not sure yet whether we should do that last step. It doesn't seem + // to change anything either way though. + // t = dt + break + } + // If the node is to be assigned or returned, the node type is the destination type. dt := t + switch a := n.anc; { case a.kind == defineStmt && len(a.child) > a.nleft+a.nright: if dt, err = nodeType(interp, sc, a.child[a.nleft]); err != nil { @@ -487,21 +516,28 @@ func nodeType(interp *Interpreter, sc *scope, n *node) (*itype, error) { } } for _, field := range n.child[0].child { + f0 := field.child[0] if len(field.child) == 1 { - typ, err := nodeType(interp, sc, field.child[0]) - if err != nil { - return nil, err + if f0.ident == "error" { + // Unwrap error interface inplace rather than embedding it, because + // "error" is lower case which may cause problems with reflect for method lookup. + t.field = append(t.field, structField{name: "Error", typ: errorMethodType(sc)}) + continue } - t.field = append(t.field, structField{name: fieldName(field.child[0]), embed: true, typ: typ}) - incomplete = incomplete || typ.incomplete - } else { - typ, err := nodeType(interp, sc, field.child[1]) + typ, err := nodeType(interp, sc, f0) if err != nil { return nil, err } - t.field = append(t.field, structField{name: field.child[0].ident, typ: typ}) + t.field = append(t.field, structField{name: fieldName(f0), embed: true, typ: typ}) incomplete = incomplete || typ.incomplete + continue + } + typ, err := nodeType(interp, sc, field.child[1]) + if err != nil { + return nil, err } + t.field = append(t.field, structField{name: f0.ident, typ: typ}) + incomplete = incomplete || typ.incomplete } t.incomplete = incomplete @@ -943,6 +979,10 @@ func (t *itype) assignableTo(o *itype) bool { return true } + if isInterface(o) && t.implements(o) { + return true + } + n := t.node if n == nil || !n.rval.IsValid() { return false @@ -1041,7 +1081,7 @@ func (t *itype) methods() methodSet { } case valueT, errorT: // Get method from corresponding reflect.Type. - for i := typ.rtype.NumMethod() - 1; i >= 0; i-- { + for i := typ.TypeOf().NumMethod() - 1; i >= 0; i-- { m := typ.rtype.Method(i) res[m.Name] = m.Type.String() } @@ -1414,7 +1454,7 @@ func (t *itype) refType(defined map[string]*itype, wrapRecursive bool) reflect.T t.rtype = reflect.TypeOf(new(error)).Elem() case funcT: if t.name != "" { - defined[name] = t + defined[name] = t // TODO(marc): make sure that key is name and not t.name. } variadic := false in := make([]reflect.Type, len(t.arg)) @@ -1435,10 +1475,11 @@ func (t *itype) refType(defined map[string]*itype, wrapRecursive bool) reflect.T t.rtype = reflect.PtrTo(t.val.refType(defined, wrapRecursive)) case structT: if t.name != "" { - if defined[name] != nil { + // Check against local t.name and not name to catch recursive type definitions. + if defined[t.name] != nil { recursive = true } - defined[name] = t + defined[t.name] = t } var fields []reflect.StructField // TODO(mpl): make Anonymous work for recursive types too. Maybe not worth the @@ -1486,7 +1527,14 @@ func (t *itype) frameType() (r reflect.Type) { case funcT: r = reflect.TypeOf((*node)(nil)) case interfaceT: + if len(t.field) == 0 { + // empty interface, do not wrap it + r = reflect.TypeOf((*interface{})(nil)).Elem() + break + } r = reflect.TypeOf((*valueInterface)(nil)).Elem() + case ptrT: + r = reflect.PtrTo(t.val.frameType()) default: r = t.TypeOf() } @@ -1501,10 +1549,25 @@ func (t *itype) implements(it *itype) bool { } // defaultType returns the default type of an untyped type. -func (t *itype) defaultType() *itype { +func (t *itype) defaultType(v reflect.Value) *itype { if !t.untyped { return t } + // The default type can also be derived from a constant value. + if v.IsValid() && t.TypeOf().Implements(constVal) { + switch v.Interface().(constant.Value).Kind() { + case constant.String: + t = untypedString() + case constant.Bool: + t = untypedBool() + case constant.Int: + t = untypedInt() + case constant.Float: + t = untypedFloat() + case constant.Complex: + t = untypedComplex() + } + } typ := *t typ.untyped = false return &typ @@ -1583,6 +1646,13 @@ func defRecvType(n *node) *itype { return nil } +func wrappedType(n *node) *itype { + if n.typ.cat != valueT { + return nil + } + return n.typ.val +} + func isShiftNode(n *node) bool { switch n.action { case aShl, aShr, aShlAssign, aShrAssign: @@ -1624,6 +1694,10 @@ func isInterfaceSrc(t *itype) bool { return t.cat == interfaceT || (t.cat == aliasT && isInterfaceSrc(t.val)) } +func isInterfaceBin(t *itype) bool { + return t.cat == valueT && t.rtype.Kind() == reflect.Interface +} + func isInterface(t *itype) bool { return isInterfaceSrc(t) || t.TypeOf() != nil && t.TypeOf().Kind() == reflect.Interface } diff --git a/vendor/github.com/traefik/yaegi/interp/typecheck.go b/vendor/github.com/traefik/yaegi/interp/typecheck.go index e98ed64..1fa7b0c 100644 --- a/vendor/github.com/traefik/yaegi/interp/typecheck.go +++ b/vendor/github.com/traefik/yaegi/interp/typecheck.go @@ -37,7 +37,7 @@ func (check typecheck) assignment(n *node, typ *itype, context string) error { if typ == nil && n.typ.cat == nilT { return n.cfgErrorf("use of untyped nil in %s", context) } - typ = n.typ.defaultType() + typ = n.typ.defaultType(n.rval) } if err := check.convertUntyped(n, typ); err != nil { return err @@ -48,6 +48,10 @@ func (check typecheck) assignment(n *node, typ *itype, context string) error { return nil } + if typ.isRecursive() || typ.val != nil && typ.val.isRecursive() { + return nil + } + if !n.typ.assignableTo(typ) { if context == "" { return n.cfgErrorf("cannot use type %s as type %s", n.typ.id(), typ.id()) @@ -65,7 +69,7 @@ func (check typecheck) assignExpr(n, dest, src *node) error { isConst := n.anc.kind == constDecl if !isConst { // var operations must be typed - dest.typ = dest.typ.defaultType() + dest.typ = dest.typ.defaultType(src.rval) } return check.assignment(src, dest.typ, "assignment") @@ -636,7 +640,7 @@ func (check typecheck) conversion(n *node, typ *itype) error { return nil } if isInterface(typ) || !isConstType(typ) { - typ = n.typ.defaultType() + typ = n.typ.defaultType(n.rval) } return check.convertUntyped(n, typ) } @@ -1037,9 +1041,8 @@ func (check typecheck) convertUntyped(n *node, typ *itype) error { if len(n.typ.methods()) > 0 { // untyped cannot be set to iface return convErr } - ityp = n.typ.defaultType() + ityp = n.typ.defaultType(n.rval) rtyp = ntyp - case isArray(typ) || isMap(typ) || isChan(typ) || isFunc(typ) || isPtr(typ): // TODO(nick): above we are acting on itype, but really it is an rtype check. This is not clear which type // plain we are in. Fix this later. diff --git a/vendor/github.com/traefik/yaegi/interp/value.go b/vendor/github.com/traefik/yaegi/interp/value.go index 63830ec..b83db7f 100644 --- a/vendor/github.com/traefik/yaegi/interp/value.go +++ b/vendor/github.com/traefik/yaegi/interp/value.go @@ -45,21 +45,35 @@ func genValueBinMethodOnInterface(n *node, defaultGen func(*frame) reflect.Value n.child[0].child == nil || n.child[0].child[0] == nil { return defaultGen } - if n.child[0].child[1] == nil || n.child[0].child[1].ident == "" { + c0 := n.child[0] + if c0.child[1] == nil || c0.child[1].ident == "" { return defaultGen } - value0 := genValue(n.child[0].child[0]) + value0 := genValue(c0.child[0]) return func(f *frame) reflect.Value { - val, ok := value0(f).Interface().(valueInterface) - if !ok { + v := value0(f) + var nod *node + + for v.IsValid() { + // Traverse interface indirections to find out concrete type. + vi, ok := v.Interface().(valueInterface) + if !ok { + break + } + v = vi.value + nod = vi.node + } + + if nod == nil { return defaultGen(f) } - typ := val.node.typ + + typ := nod.typ if typ.node != nil || typ.cat != valueT { return defaultGen(f) } - meth, _ := typ.rtype.MethodByName(n.child[0].child[1].ident) + meth, _ := typ.rtype.MethodByName(c0.child[1].ident) return meth.Func } } @@ -221,21 +235,25 @@ func genValueRangeArray(n *node) func(*frame) reflect.Value { return value(f).Elem() } case n.typ.val != nil && n.typ.val.cat == interfaceT: - return func(f *frame) reflect.Value { - val := value(f) - v := []valueInterface{} - for i := 0; i < val.Len(); i++ { - switch av := val.Index(i).Interface().(type) { - case []valueInterface: - v = append(v, av...) - case valueInterface: - v = append(v, av) - default: - panic(n.cfgErrorf("invalid type %v", val.Index(i).Type())) + if len(n.typ.val.field) > 0 { + return func(f *frame) reflect.Value { + val := value(f) + v := []valueInterface{} + for i := 0; i < val.Len(); i++ { + switch av := val.Index(i).Interface().(type) { + case []valueInterface: + v = append(v, av...) + case valueInterface: + v = append(v, av) + default: + panic(n.cfgErrorf("invalid type %v", val.Index(i).Type())) + } } + return reflect.ValueOf(v) } - return reflect.ValueOf(v) } + // empty interface, do not wrap. + fallthrough default: return func(f *frame) reflect.Value { // This is necessary to prevent changes in the returned @@ -265,6 +283,7 @@ func genValueInterface(n *node) func(*frame) reflect.Value { return func(f *frame) reflect.Value { v := value(f) nod := n + for v.IsValid() { // traverse interface indirections to find out concrete type vi, ok := v.Interface().(valueInterface) @@ -274,6 +293,12 @@ func genValueInterface(n *node) func(*frame) reflect.Value { v = vi.value nod = vi.node } + + // empty interface, do not wrap. + if nod.typ.cat == interfaceT && len(nod.typ.field) == 0 { + return v + } + return reflect.ValueOf(valueInterface{nod, v}) } } @@ -284,12 +309,26 @@ func zeroInterfaceValue() reflect.Value { return reflect.ValueOf(valueInterface{n, v}) } +func wantEmptyInterface(n *node) bool { + return n.typ.cat == interfaceT && len(n.typ.field) == 0 || + n.anc.action == aAssign && n.anc.typ.cat == interfaceT && len(n.anc.typ.field) == 0 || + n.anc.kind == returnStmt && n.anc.val.(*node).typ.ret[0].cat == interfaceT && len(n.anc.val.(*node).typ.ret[0].field) == 0 +} + func genValueOutput(n *node, t reflect.Type) func(*frame) reflect.Value { value := genValue(n) switch { case n.anc.action == aAssign && n.anc.typ.cat == interfaceT: + if len(n.anc.typ.field) == 0 { + // empty interface, do not wrap + return value + } fallthrough case n.anc.kind == returnStmt && n.anc.val.(*node).typ.ret[0].cat == interfaceT: + if len(n.anc.val.(*node).typ.ret[0].field) == 0 { + // empty interface, do not wrap + return value + } // The result of the builtin has to be returned as an interface type. // Wrap it in a valueInterface and return the dereferenced value. return func(f *frame) reflect.Value { diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_pe.go b/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_pe.go deleted file mode 100644 index c9821cb..0000000 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_pe.go +++ /dev/null @@ -1,74 +0,0 @@ -// Code generated by 'yaegi extract debug/pe'. DO NOT EDIT. - -// +build go1.14,!go1.15 - -package stdlib - -import ( - "debug/pe" - "go/constant" - "go/token" - "reflect" -) - -func init() { - Symbols["debug/pe"] = map[string]reflect.Value{ - // function, constant and variable definitions - "COFFSymbolSize": reflect.ValueOf(constant.MakeFromLiteral("18", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_ARCHITECTURE": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_BASERELOC": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT": reflect.ValueOf(constant.MakeFromLiteral("11", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR": reflect.ValueOf(constant.MakeFromLiteral("14", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_DEBUG": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT": reflect.ValueOf(constant.MakeFromLiteral("13", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_EXCEPTION": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_EXPORT": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_GLOBALPTR": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_IAT": reflect.ValueOf(constant.MakeFromLiteral("12", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_IMPORT": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG": reflect.ValueOf(constant.MakeFromLiteral("10", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_RESOURCE": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_SECURITY": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), - "IMAGE_DIRECTORY_ENTRY_TLS": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)), - "IMAGE_FILE_MACHINE_AM33": reflect.ValueOf(constant.MakeFromLiteral("467", token.INT, 0)), - "IMAGE_FILE_MACHINE_AMD64": reflect.ValueOf(constant.MakeFromLiteral("34404", token.INT, 0)), - "IMAGE_FILE_MACHINE_ARM": reflect.ValueOf(constant.MakeFromLiteral("448", token.INT, 0)), - "IMAGE_FILE_MACHINE_ARM64": reflect.ValueOf(constant.MakeFromLiteral("43620", token.INT, 0)), - "IMAGE_FILE_MACHINE_ARMNT": reflect.ValueOf(constant.MakeFromLiteral("452", token.INT, 0)), - "IMAGE_FILE_MACHINE_EBC": reflect.ValueOf(constant.MakeFromLiteral("3772", token.INT, 0)), - "IMAGE_FILE_MACHINE_I386": reflect.ValueOf(constant.MakeFromLiteral("332", token.INT, 0)), - "IMAGE_FILE_MACHINE_IA64": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), - "IMAGE_FILE_MACHINE_M32R": reflect.ValueOf(constant.MakeFromLiteral("36929", token.INT, 0)), - "IMAGE_FILE_MACHINE_MIPS16": reflect.ValueOf(constant.MakeFromLiteral("614", token.INT, 0)), - "IMAGE_FILE_MACHINE_MIPSFPU": reflect.ValueOf(constant.MakeFromLiteral("870", token.INT, 0)), - "IMAGE_FILE_MACHINE_MIPSFPU16": reflect.ValueOf(constant.MakeFromLiteral("1126", token.INT, 0)), - "IMAGE_FILE_MACHINE_POWERPC": reflect.ValueOf(constant.MakeFromLiteral("496", token.INT, 0)), - "IMAGE_FILE_MACHINE_POWERPCFP": reflect.ValueOf(constant.MakeFromLiteral("497", token.INT, 0)), - "IMAGE_FILE_MACHINE_R4000": reflect.ValueOf(constant.MakeFromLiteral("358", token.INT, 0)), - "IMAGE_FILE_MACHINE_SH3": reflect.ValueOf(constant.MakeFromLiteral("418", token.INT, 0)), - "IMAGE_FILE_MACHINE_SH3DSP": reflect.ValueOf(constant.MakeFromLiteral("419", token.INT, 0)), - "IMAGE_FILE_MACHINE_SH4": reflect.ValueOf(constant.MakeFromLiteral("422", token.INT, 0)), - "IMAGE_FILE_MACHINE_SH5": reflect.ValueOf(constant.MakeFromLiteral("424", token.INT, 0)), - "IMAGE_FILE_MACHINE_THUMB": reflect.ValueOf(constant.MakeFromLiteral("450", token.INT, 0)), - "IMAGE_FILE_MACHINE_UNKNOWN": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), - "IMAGE_FILE_MACHINE_WCEMIPSV2": reflect.ValueOf(constant.MakeFromLiteral("361", token.INT, 0)), - "NewFile": reflect.ValueOf(pe.NewFile), - "Open": reflect.ValueOf(pe.Open), - - // type definitions - "COFFSymbol": reflect.ValueOf((*pe.COFFSymbol)(nil)), - "DataDirectory": reflect.ValueOf((*pe.DataDirectory)(nil)), - "File": reflect.ValueOf((*pe.File)(nil)), - "FileHeader": reflect.ValueOf((*pe.FileHeader)(nil)), - "FormatError": reflect.ValueOf((*pe.FormatError)(nil)), - "ImportDirectory": reflect.ValueOf((*pe.ImportDirectory)(nil)), - "OptionalHeader32": reflect.ValueOf((*pe.OptionalHeader32)(nil)), - "OptionalHeader64": reflect.ValueOf((*pe.OptionalHeader64)(nil)), - "Reloc": reflect.ValueOf((*pe.Reloc)(nil)), - "Section": reflect.ValueOf((*pe.Section)(nil)), - "SectionHeader": reflect.ValueOf((*pe.SectionHeader)(nil)), - "SectionHeader32": reflect.ValueOf((*pe.SectionHeader32)(nil)), - "StringTable": reflect.ValueOf((*pe.StringTable)(nil)), - "Symbol": reflect.ValueOf((*pe.Symbol)(nil)), - } -} diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_os.go b/vendor/github.com/traefik/yaegi/stdlib/go1_14_os.go deleted file mode 100644 index ce409c6..0000000 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_os.go +++ /dev/null @@ -1,156 +0,0 @@ -// Code generated by 'yaegi extract os'. DO NOT EDIT. - -// +build go1.14,!go1.15 - -package stdlib - -import ( - "go/constant" - "go/token" - "os" - "reflect" - "time" -) - -func init() { - Symbols["os"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Args": reflect.ValueOf(&os.Args).Elem(), - "Chdir": reflect.ValueOf(os.Chdir), - "Chmod": reflect.ValueOf(os.Chmod), - "Chown": reflect.ValueOf(os.Chown), - "Chtimes": reflect.ValueOf(os.Chtimes), - "Clearenv": reflect.ValueOf(os.Clearenv), - "Create": reflect.ValueOf(os.Create), - "DevNull": reflect.ValueOf(constant.MakeFromLiteral("\"/dev/null\"", token.STRING, 0)), - "Environ": reflect.ValueOf(os.Environ), - "ErrClosed": reflect.ValueOf(&os.ErrClosed).Elem(), - "ErrExist": reflect.ValueOf(&os.ErrExist).Elem(), - "ErrInvalid": reflect.ValueOf(&os.ErrInvalid).Elem(), - "ErrNoDeadline": reflect.ValueOf(&os.ErrNoDeadline).Elem(), - "ErrNotExist": reflect.ValueOf(&os.ErrNotExist).Elem(), - "ErrPermission": reflect.ValueOf(&os.ErrPermission).Elem(), - "Executable": reflect.ValueOf(os.Executable), - "Exit": reflect.ValueOf(osExit), - "Expand": reflect.ValueOf(os.Expand), - "ExpandEnv": reflect.ValueOf(os.ExpandEnv), - "FindProcess": reflect.ValueOf(osFindProcess), - "Getegid": reflect.ValueOf(os.Getegid), - "Getenv": reflect.ValueOf(os.Getenv), - "Geteuid": reflect.ValueOf(os.Geteuid), - "Getgid": reflect.ValueOf(os.Getgid), - "Getgroups": reflect.ValueOf(os.Getgroups), - "Getpagesize": reflect.ValueOf(os.Getpagesize), - "Getpid": reflect.ValueOf(os.Getpid), - "Getppid": reflect.ValueOf(os.Getppid), - "Getuid": reflect.ValueOf(os.Getuid), - "Getwd": reflect.ValueOf(os.Getwd), - "Hostname": reflect.ValueOf(os.Hostname), - "Interrupt": reflect.ValueOf(&os.Interrupt).Elem(), - "IsExist": reflect.ValueOf(os.IsExist), - "IsNotExist": reflect.ValueOf(os.IsNotExist), - "IsPathSeparator": reflect.ValueOf(os.IsPathSeparator), - "IsPermission": reflect.ValueOf(os.IsPermission), - "IsTimeout": reflect.ValueOf(os.IsTimeout), - "Kill": reflect.ValueOf(&os.Kill).Elem(), - "Lchown": reflect.ValueOf(os.Lchown), - "Link": reflect.ValueOf(os.Link), - "LookupEnv": reflect.ValueOf(os.LookupEnv), - "Lstat": reflect.ValueOf(os.Lstat), - "Mkdir": reflect.ValueOf(os.Mkdir), - "MkdirAll": reflect.ValueOf(os.MkdirAll), - "ModeAppend": reflect.ValueOf(os.ModeAppend), - "ModeCharDevice": reflect.ValueOf(os.ModeCharDevice), - "ModeDevice": reflect.ValueOf(os.ModeDevice), - "ModeDir": reflect.ValueOf(os.ModeDir), - "ModeExclusive": reflect.ValueOf(os.ModeExclusive), - "ModeIrregular": reflect.ValueOf(os.ModeIrregular), - "ModeNamedPipe": reflect.ValueOf(os.ModeNamedPipe), - "ModePerm": reflect.ValueOf(os.ModePerm), - "ModeSetgid": reflect.ValueOf(os.ModeSetgid), - "ModeSetuid": reflect.ValueOf(os.ModeSetuid), - "ModeSocket": reflect.ValueOf(os.ModeSocket), - "ModeSticky": reflect.ValueOf(os.ModeSticky), - "ModeSymlink": reflect.ValueOf(os.ModeSymlink), - "ModeTemporary": reflect.ValueOf(os.ModeTemporary), - "ModeType": reflect.ValueOf(os.ModeType), - "NewFile": reflect.ValueOf(os.NewFile), - "NewSyscallError": reflect.ValueOf(os.NewSyscallError), - "O_APPEND": reflect.ValueOf(os.O_APPEND), - "O_CREATE": reflect.ValueOf(os.O_CREATE), - "O_EXCL": reflect.ValueOf(os.O_EXCL), - "O_RDONLY": reflect.ValueOf(os.O_RDONLY), - "O_RDWR": reflect.ValueOf(os.O_RDWR), - "O_SYNC": reflect.ValueOf(os.O_SYNC), - "O_TRUNC": reflect.ValueOf(os.O_TRUNC), - "O_WRONLY": reflect.ValueOf(os.O_WRONLY), - "Open": reflect.ValueOf(os.Open), - "OpenFile": reflect.ValueOf(os.OpenFile), - "PathListSeparator": reflect.ValueOf(constant.MakeFromLiteral("58", token.INT, 0)), - "PathSeparator": reflect.ValueOf(constant.MakeFromLiteral("47", token.INT, 0)), - "Pipe": reflect.ValueOf(os.Pipe), - "Readlink": reflect.ValueOf(os.Readlink), - "Remove": reflect.ValueOf(os.Remove), - "RemoveAll": reflect.ValueOf(os.RemoveAll), - "Rename": reflect.ValueOf(os.Rename), - "SEEK_CUR": reflect.ValueOf(os.SEEK_CUR), - "SEEK_END": reflect.ValueOf(os.SEEK_END), - "SEEK_SET": reflect.ValueOf(os.SEEK_SET), - "SameFile": reflect.ValueOf(os.SameFile), - "Setenv": reflect.ValueOf(os.Setenv), - "StartProcess": reflect.ValueOf(os.StartProcess), - "Stat": reflect.ValueOf(os.Stat), - "Stderr": reflect.ValueOf(&os.Stderr).Elem(), - "Stdin": reflect.ValueOf(&os.Stdin).Elem(), - "Stdout": reflect.ValueOf(&os.Stdout).Elem(), - "Symlink": reflect.ValueOf(os.Symlink), - "TempDir": reflect.ValueOf(os.TempDir), - "Truncate": reflect.ValueOf(os.Truncate), - "Unsetenv": reflect.ValueOf(os.Unsetenv), - "UserCacheDir": reflect.ValueOf(os.UserCacheDir), - "UserConfigDir": reflect.ValueOf(os.UserConfigDir), - "UserHomeDir": reflect.ValueOf(os.UserHomeDir), - - // type definitions - "File": reflect.ValueOf((*os.File)(nil)), - "FileInfo": reflect.ValueOf((*os.FileInfo)(nil)), - "FileMode": reflect.ValueOf((*os.FileMode)(nil)), - "LinkError": reflect.ValueOf((*os.LinkError)(nil)), - "PathError": reflect.ValueOf((*os.PathError)(nil)), - "ProcAttr": reflect.ValueOf((*os.ProcAttr)(nil)), - "Process": reflect.ValueOf((*os.Process)(nil)), - "ProcessState": reflect.ValueOf((*os.ProcessState)(nil)), - "Signal": reflect.ValueOf((*os.Signal)(nil)), - "SyscallError": reflect.ValueOf((*os.SyscallError)(nil)), - - // interface wrapper definitions - "_FileInfo": reflect.ValueOf((*_os_FileInfo)(nil)), - "_Signal": reflect.ValueOf((*_os_Signal)(nil)), - } -} - -// _os_FileInfo is an interface wrapper for FileInfo type -type _os_FileInfo struct { - WIsDir func() bool - WModTime func() time.Time - WMode func() os.FileMode - WName func() string - WSize func() int64 - WSys func() interface{} -} - -func (W _os_FileInfo) IsDir() bool { return W.WIsDir() } -func (W _os_FileInfo) ModTime() time.Time { return W.WModTime() } -func (W _os_FileInfo) Mode() os.FileMode { return W.WMode() } -func (W _os_FileInfo) Name() string { return W.WName() } -func (W _os_FileInfo) Size() int64 { return W.WSize() } -func (W _os_FileInfo) Sys() interface{} { return W.WSys() } - -// _os_Signal is an interface wrapper for Signal type -type _os_Signal struct { - WSignal func() - WString func() string -} - -func (W _os_Signal) Signal() { W.WSignal() } -func (W _os_Signal) String() string { return W.WString() } diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_os_signal.go b/vendor/github.com/traefik/yaegi/stdlib/go1_14_os_signal.go deleted file mode 100644 index 49e1f39..0000000 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_os_signal.go +++ /dev/null @@ -1,21 +0,0 @@ -// Code generated by 'yaegi extract os/signal'. DO NOT EDIT. - -// +build go1.14,!go1.15 - -package stdlib - -import ( - "os/signal" - "reflect" -) - -func init() { - Symbols["os/signal"] = map[string]reflect.Value{ - // function, constant and variable definitions - "Ignore": reflect.ValueOf(signal.Ignore), - "Ignored": reflect.ValueOf(signal.Ignored), - "Notify": reflect.ValueOf(signal.Notify), - "Reset": reflect.ValueOf(signal.Reset), - "Stop": reflect.ValueOf(signal.Stop), - } -} diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_tar.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_tar.go index 46e20d5..cf36f2f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_tar.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_tar.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract archive/tar'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_zip.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_zip.go index 3218c08..f1467b4 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_zip.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_archive_zip.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract archive/zip'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_bufio.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_bufio.go index c5cc82c..f1a4fbc 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_bufio.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_bufio.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract bufio'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_bytes.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_bytes.go index de20508..46ae0d5 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_bytes.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_bytes.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract bytes'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_bzip2.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_bzip2.go index 61b4e00..231d72d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_bzip2.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_bzip2.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/bzip2'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_flate.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_flate.go index 8c96c87..512b7d3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_flate.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_flate.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/flate'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_gzip.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_gzip.go index 4e64ac9..6371f00 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_gzip.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_gzip.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/gzip'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_lzw.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_lzw.go index 2920445..25ef551 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_lzw.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_lzw.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/lzw'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_zlib.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_zlib.go index 1a42608..36d8d7d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_zlib.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_zlib.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/zlib'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_heap.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_heap.go index a3c7b5d..275f5b0 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_heap.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_heap.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract container/heap'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_list.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_list.go index 831b4c2..196696e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_list.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_list.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract container/list'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_ring.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_ring.go index 9ed5afd..6fe34ad 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_ring.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_container_ring.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract container/ring'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_context.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_context.go index 114b0b3..aa2d3a9 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_context.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_context.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract context'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto.go index cfdb339..4f9efc3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_aes.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_aes.go index 42cf2ec..92f02ad 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_aes.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_aes.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/aes'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_cipher.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_cipher.go index ba9edea..f0b3bcc 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_cipher.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_cipher.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/cipher'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_des.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_des.go index 33a14ee..3a0717f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_des.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_des.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/des'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_dsa.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_dsa.go index d5fd5c8..e22314a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_dsa.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_dsa.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/dsa'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ecdsa.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ecdsa.go index c0b38a3..087aa91 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ecdsa.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ecdsa.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/ecdsa'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ed25519.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ed25519.go index 3bd352d..3da5f4c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ed25519.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ed25519.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_elliptic.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_elliptic.go index 7a47f6f..fa6ce5a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_elliptic.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_elliptic.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/elliptic'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_hmac.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_hmac.go index 3cea567..23a674e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_hmac.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_hmac.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/hmac'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_md5.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_md5.go index 2513a91..6b86b79 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_md5.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_md5.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/md5'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rand.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rand.go index 44a61ca..5a83e12 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rand.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rand.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rc4.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rc4.go index 4908078..2777e05 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rc4.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rc4.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/rc4'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rsa.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rsa.go index aa94a38..b625781 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rsa.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rsa.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/rsa'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha1.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha1.go index 66f0ccd..8c710d8 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha1.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha1.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha256.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha256.go index 2bad675..508ce97 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha256.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha256.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha512.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha512.go index 94eb17f..5bacb1a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha512.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha512.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/sha512'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_subtle.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_subtle.go index b204758..82249ab 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_subtle.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_subtle.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/subtle'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_tls.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_tls.go index 80dfc31..e56b8bb 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_tls.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_tls.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/tls'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509.go index 0a4e669..d90250e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/x509'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509_pkix.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509_pkix.go index b3f87c6..ebc9294 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509_pkix.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_x509_pkix.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/x509/pkix'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_database_sql.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_database_sql.go index d278fa9..5ac2208 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_database_sql.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_database_sql.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract database/sql'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_database_sql_driver.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_database_sql_driver.go index 8d4eb66..7ba5d3f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_database_sql_driver.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_database_sql_driver.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract database/sql/driver'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_dwarf.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_dwarf.go index ddf7a13..1d289cb 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_dwarf.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_dwarf.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/dwarf'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_elf.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_elf.go index 0630af7..2b1719e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_elf.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_elf.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/elf'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_gosym.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_gosym.go index 1728795..a06dfad 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_gosym.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_gosym.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/gosym'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_macho.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_macho.go index 620c807..d4a03d7 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_macho.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_macho.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/macho'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_pe.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_pe.go index 31785ce..41bc652 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_pe.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_pe.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/pe'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_plan9obj.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_plan9obj.go index ee49b00..29ab308 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_plan9obj.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_debug_plan9obj.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/plan9obj'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding.go index 2f1b6d2..8b4fc83 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_ascii85.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_ascii85.go index 6bb752d..9886d76 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_ascii85.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_ascii85.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/ascii85'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_asn1.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_asn1.go index 9567147..a42662f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_asn1.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_asn1.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/asn1'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base32.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base32.go index 5c4eaed..410df14 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base32.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base32.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/base32'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base64.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base64.go index af62cff..a741ca2 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base64.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base64.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/base64'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_binary.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_binary.go index e4d6018..8c1af0b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_binary.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_binary.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/binary'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_csv.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_csv.go index a9e2548..ee1796d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_csv.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_csv.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/csv'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_gob.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_gob.go index 60e4529..41a37bd 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_gob.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_gob.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/gob'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_hex.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_hex.go index 63e7c29..f15310d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_hex.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_hex.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/hex'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_json.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_json.go index 92c053a..c1fdd9f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_json.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_json.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/json'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_pem.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_pem.go index dac0357..e5521f7 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_pem.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_pem.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/pem'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_xml.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_xml.go index cfdbaad..88f665f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_xml.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_xml.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/xml'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_errors.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_errors.go index db66186..35480b9 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_errors.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_errors.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract errors'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_expvar.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_expvar.go index d262113..a988d81 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_expvar.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_expvar.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract expvar'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_flag.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_flag.go index fbc4b1b..e259dd3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_flag.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_flag.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract flag'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_fmt.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_fmt.go index 5012b08..fdd172f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_fmt.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_fmt.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract fmt'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_ast.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_ast.go index 35b9021..3574f16 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_ast.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_ast.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/ast'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_build.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_build.go index a2918a9..0baa2d3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_build.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_build.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/build'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_constant.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_constant.go index b61e641..93f77a3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_constant.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_constant.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/constant'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_doc.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_doc.go index 73db667..d8ea9b1 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_doc.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_doc.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/doc'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_format.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_format.go index 5f06c0b..f9310cb 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_format.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_format.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/format'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_importer.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_importer.go index 8343566..d3bedcd 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_importer.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_importer.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/importer'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_parser.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_parser.go index b18fc12..9312cf0 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_parser.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_parser.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/parser'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_printer.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_printer.go index 755fb97..59df347 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_printer.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_printer.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/printer'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_scanner.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_scanner.go index 92bcff4..a7fa186 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_scanner.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_scanner.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/scanner'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_token.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_token.go index 9c861b8..ccf004b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_token.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_token.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/token'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_types.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_types.go index 5a327a5..525ebdb 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_types.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_go_types.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/types'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash.go index d6c9c47..77578e2 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_adler32.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_adler32.go index 39d1795..40c8667 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_adler32.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_adler32.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/adler32'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc32.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc32.go index a3965d1..bf5724b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc32.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc32.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/crc32'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc64.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc64.go index 58298d8..b2ddd1f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc64.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc64.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_fnv.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_fnv.go index 9280be3..2bfe4d5 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_fnv.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_fnv.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/fnv'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_maphash.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_maphash.go index 07ffc2b..0ae671c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_maphash.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_maphash.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/maphash'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_html.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_html.go index 038c59e..91d4b88 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_html.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_html.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract html'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_html_template.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_html_template.go index f139e7d..da5346a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_html_template.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_html_template.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract html/template'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image.go index 0787034..4210908 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color.go index 9b6bcd5..7780555 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/color'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color_palette.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color_palette.go index afaf44f..952115d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color_palette.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color_palette.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/color/palette'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_draw.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_draw.go index eb5ae6c..123c1c6 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_draw.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_draw.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/draw'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_gif.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_gif.go index 5599174..6948716 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_gif.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_gif.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/gif'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_jpeg.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_jpeg.go index e60c18b..eb3d03b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_jpeg.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_jpeg.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/jpeg'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_png.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_png.go index 97cb96f..a03414f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_png.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_image_png.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/png'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_index_suffixarray.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_index_suffixarray.go index c7fd64e..18c426a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_index_suffixarray.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_index_suffixarray.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract index/suffixarray'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_io.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_io.go index b5b8075..db24be1 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_io.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_io.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract io'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_io_ioutil.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_io_ioutil.go index 25b6023..3e07985 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_io_ioutil.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_io_ioutil.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract io/ioutil'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_log.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_log.go index d1bcf6a..1b8eacc 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_log.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_log.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract log'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_log_syslog.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_log_syslog.go index efef546..e9bfedc 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_log_syslog.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_log_syslog.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract log/syslog'. DO NOT EDIT. -// +build go1.15,!windows,!nacl,!plan9 +// +build go1.15,!go1.16,!windows,!nacl,!plan9 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math.go index 3a60bfb..6010672 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_big.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_big.go index 08cb20c..348bbd2 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_big.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_big.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math/big'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_bits.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_bits.go index fa4afbc..beb4818 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_bits.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_bits.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math/bits'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_cmplx.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_cmplx.go index 52b63b5..d5c8509 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_cmplx.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_cmplx.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math/cmplx'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_rand.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_rand.go index 836dfea..24a6fad 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_rand.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_math_rand.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math/rand'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime.go index cd9d58b..9f0b03b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract mime'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_multipart.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_multipart.go index 1b5b007..e3501c7 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_multipart.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_multipart.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract mime/multipart'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_quotedprintable.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_quotedprintable.go index 39e2749..7c0bcb4 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_quotedprintable.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_quotedprintable.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract mime/quotedprintable'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net.go index 88a55aa..2977d9a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http.go index 9d7ced8..3693127 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cgi.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cgi.go index 0681ed3..7a3d63d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cgi.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cgi.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/cgi'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cookiejar.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cookiejar.go index e1744a1..10eb3b3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cookiejar.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cookiejar.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/cookiejar'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_fcgi.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_fcgi.go index 8d608b3..62dc7ec 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_fcgi.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_fcgi.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/fcgi'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptest.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptest.go index 9e3f215..c145d6e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptest.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptest.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/httptest'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptrace.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptrace.go index e23b131..7241609 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptrace.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptrace.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/httptrace'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httputil.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httputil.go index d17b1d3..80c6505 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httputil.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httputil.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/httputil'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_pprof.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_pprof.go index 1833894..8011f95 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_pprof.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_pprof.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/pprof'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_mail.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_mail.go index 80032ef..85322ee 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_mail.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_mail.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/mail'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc.go index 55a69f8..e79e45c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/rpc'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc_jsonrpc.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc_jsonrpc.go index b963539..2159599 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc_jsonrpc.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc_jsonrpc.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/rpc/jsonrpc'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_smtp.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_smtp.go index 7029253..cc1b7cc 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_smtp.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_smtp.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/smtp'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_textproto.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_textproto.go index 85894e1..ccc3e52 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_textproto.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_textproto.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/textproto'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_url.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_url.go index 22394cf..f815079 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_url.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_net_url.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/url'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_os.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_os.go index a54338a..1f5fe57 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_os.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_os.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract os'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_signal.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_signal.go index bf03266..8fe5b59 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_signal.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_signal.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract os/signal'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_user.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_user.go index f549579..ce82db3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_user.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_os_user.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract os/user'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_path.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_path.go index 00bbeca..e61ebbe 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_path.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_path.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract path'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_path_filepath.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_path_filepath.go index 2eb3340..1b01595 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_path_filepath.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_path_filepath.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract path/filepath'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_reflect.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_reflect.go index 35fc7de..47f4c23 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_reflect.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_reflect.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract reflect'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp.go index 1c4c631..23955e2 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract regexp'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp_syntax.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp_syntax.go index 2355395..f66fe08 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp_syntax.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp_syntax.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract regexp/syntax'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime.go index 9f4eadf..564ff30 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract runtime'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_debug.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_debug.go index 02c4e98..1d34cab 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_debug.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_debug.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_pprof.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_pprof.go index f1d1276..756d690 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_pprof.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_pprof.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract runtime/pprof'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_trace.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_trace.go index 2233409..d78a25a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_trace.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_trace.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_sort.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_sort.go index 1cd9dfa..02cd095 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_sort.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_sort.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract sort'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_strconv.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_strconv.go index 57bed5c..8fee295 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_strconv.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_strconv.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract strconv'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_strings.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_strings.go index 5d62052..e3620ed 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_strings.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_strings.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract strings'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync.go index 5a745c8..6d6ef98 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract sync'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync_atomic.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync_atomic.go index 3048692..1fa6d4e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync_atomic.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_sync_atomic.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract sync/atomic'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing.go index 022a997..6add2df 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract testing'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib @@ -47,38 +47,38 @@ func init() { // _testing_TB is an interface wrapper for TB type type _testing_TB struct { WCleanup func(a0 func()) - WError func(args []interface{}) - WErrorf func(format string, args []interface{}) + WError func(args ...interface{}) + WErrorf func(format string, args ...interface{}) WFail func() WFailNow func() WFailed func() bool - WFatal func(args []interface{}) - WFatalf func(format string, args []interface{}) + WFatal func(args ...interface{}) + WFatalf func(format string, args ...interface{}) WHelper func() - WLog func(args []interface{}) - WLogf func(format string, args []interface{}) + WLog func(args ...interface{}) + WLogf func(format string, args ...interface{}) WName func() string - WSkip func(args []interface{}) + WSkip func(args ...interface{}) WSkipNow func() - WSkipf func(format string, args []interface{}) + WSkipf func(format string, args ...interface{}) WSkipped func() bool WTempDir func() string } -func (W _testing_TB) Cleanup(a0 func()) { W.WCleanup(a0) } -func (W _testing_TB) Error(args []interface{}) { W.WError(args) } -func (W _testing_TB) Errorf(format string, args []interface{}) { W.WErrorf(format, args) } -func (W _testing_TB) Fail() { W.WFail() } -func (W _testing_TB) FailNow() { W.WFailNow() } -func (W _testing_TB) Failed() bool { return W.WFailed() } -func (W _testing_TB) Fatal(args []interface{}) { W.WFatal(args) } -func (W _testing_TB) Fatalf(format string, args []interface{}) { W.WFatalf(format, args) } -func (W _testing_TB) Helper() { W.WHelper() } -func (W _testing_TB) Log(args []interface{}) { W.WLog(args) } -func (W _testing_TB) Logf(format string, args []interface{}) { W.WLogf(format, args) } -func (W _testing_TB) Name() string { return W.WName() } -func (W _testing_TB) Skip(args []interface{}) { W.WSkip(args) } -func (W _testing_TB) SkipNow() { W.WSkipNow() } -func (W _testing_TB) Skipf(format string, args []interface{}) { W.WSkipf(format, args) } -func (W _testing_TB) Skipped() bool { return W.WSkipped() } -func (W _testing_TB) TempDir() string { return W.WTempDir() } +func (W _testing_TB) Cleanup(a0 func()) { W.WCleanup(a0) } +func (W _testing_TB) Error(args ...interface{}) { W.WError(args...) } +func (W _testing_TB) Errorf(format string, args ...interface{}) { W.WErrorf(format, args...) } +func (W _testing_TB) Fail() { W.WFail() } +func (W _testing_TB) FailNow() { W.WFailNow() } +func (W _testing_TB) Failed() bool { return W.WFailed() } +func (W _testing_TB) Fatal(args ...interface{}) { W.WFatal(args...) } +func (W _testing_TB) Fatalf(format string, args ...interface{}) { W.WFatalf(format, args...) } +func (W _testing_TB) Helper() { W.WHelper() } +func (W _testing_TB) Log(args ...interface{}) { W.WLog(args...) } +func (W _testing_TB) Logf(format string, args ...interface{}) { W.WLogf(format, args...) } +func (W _testing_TB) Name() string { return W.WName() } +func (W _testing_TB) Skip(args ...interface{}) { W.WSkip(args...) } +func (W _testing_TB) SkipNow() { W.WSkipNow() } +func (W _testing_TB) Skipf(format string, args ...interface{}) { W.WSkipf(format, args...) } +func (W _testing_TB) Skipped() bool { return W.WSkipped() } +func (W _testing_TB) TempDir() string { return W.WTempDir() } diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_iotest.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_iotest.go index b7c966f..9d2b081 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_iotest.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_iotest.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract testing/iotest'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_quick.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_quick.go index 228cf3f..14463ab 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_quick.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_quick.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract testing/quick'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_scanner.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_scanner.go index 0921df9..8ce7ddf 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_scanner.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_scanner.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract text/scanner'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_tabwriter.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_tabwriter.go index f07d549..e63652f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_tabwriter.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_tabwriter.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract text/tabwriter'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template.go index 7147619..10c51fa 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract text/template'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template_parse.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template_parse.go index 4d0e949..6522c80 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template_parse.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_text_template_parse.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract text/template/parse'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_time.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_time.go index c6a6fba..96dd814 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_time.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_time.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract time'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode.go index 9520609..5f433ad 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract unicode'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf16.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf16.go index 36ea96d..630741b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf16.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf16.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract unicode/utf16'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf8.go b/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf8.go index ec8bfa7..beea317 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf8.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf8.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract unicode/utf8'. DO NOT EDIT. -// +build go1.15 +// +build go1.15,!go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_archive_tar.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_archive_tar.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_archive_tar.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_archive_tar.go index 97e8e25..125f5c1 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_archive_tar.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_archive_tar.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract archive/tar'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_archive_zip.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_archive_zip.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_archive_zip.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_archive_zip.go index b9971b9..e522da5 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_archive_zip.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_archive_zip.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract archive/zip'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_bufio.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_bufio.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_bufio.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_bufio.go index 47e6f2d..7ad464a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_bufio.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_bufio.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract bufio'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -15,6 +15,7 @@ func init() { Symbols["bufio"] = map[string]reflect.Value{ // function, constant and variable definitions "ErrAdvanceTooFar": reflect.ValueOf(&bufio.ErrAdvanceTooFar).Elem(), + "ErrBadReadCount": reflect.ValueOf(&bufio.ErrBadReadCount).Elem(), "ErrBufferFull": reflect.ValueOf(&bufio.ErrBufferFull).Elem(), "ErrFinalToken": reflect.ValueOf(&bufio.ErrFinalToken).Elem(), "ErrInvalidUnreadByte": reflect.ValueOf(&bufio.ErrInvalidUnreadByte).Elem(), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_bytes.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_bytes.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_bytes.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_bytes.go index 4f5c209..2f046cb 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_bytes.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_bytes.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract bytes'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_bzip2.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_bzip2.go similarity index 93% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_bzip2.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_bzip2.go index ffaf93d..1d38467 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_bzip2.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_bzip2.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/bzip2'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_flate.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_flate.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_flate.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_flate.go index 3e30a3e..9b36e57 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_flate.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_flate.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/flate'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_gzip.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_gzip.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_gzip.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_gzip.go index 8fef1d5..1898a3d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_gzip.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_gzip.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/gzip'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_lzw.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_lzw.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_lzw.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_lzw.go index a61eec6..eb32a29 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_lzw.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_lzw.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/lzw'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_zlib.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_zlib.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_zlib.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_zlib.go index 70d4872..2133a85 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_compress_zlib.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_zlib.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract compress/zlib'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_container_heap.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_heap.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_container_heap.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_container_heap.go index 81c92af..a0ea285 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_container_heap.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_heap.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract container/heap'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_container_list.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_list.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_container_list.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_container_list.go index 1d770a8..73fd1cf 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_container_list.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_list.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract container/list'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_container_ring.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_ring.go similarity index 93% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_container_ring.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_container_ring.go index 83d22b6..f7dd4cf 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_container_ring.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_container_ring.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract container/ring'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_context.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_context.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_context.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_context.go index da32093..6220a7c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_context.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_context.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract context'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto.go index 7fa2a9c..2bdbd51 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_aes.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_aes.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_aes.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_aes.go index 5e8647b..cc3bdd7 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_aes.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_aes.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/aes'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_cipher.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_cipher.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_cipher.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_cipher.go index 28952e3..0bac1d1 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_cipher.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_cipher.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/cipher'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_des.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_des.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_des.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_des.go index c6ca42f..dc31139 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_des.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_des.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/des'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_dsa.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_dsa.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_dsa.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_dsa.go index dc7d972..d7743ba 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_dsa.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_dsa.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/dsa'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_ecdsa.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ecdsa.go similarity index 81% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_ecdsa.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ecdsa.go index 724d58f..bf6b0d9 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_ecdsa.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ecdsa.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/ecdsa'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -14,7 +14,9 @@ func init() { // function, constant and variable definitions "GenerateKey": reflect.ValueOf(ecdsa.GenerateKey), "Sign": reflect.ValueOf(ecdsa.Sign), + "SignASN1": reflect.ValueOf(ecdsa.SignASN1), "Verify": reflect.ValueOf(ecdsa.Verify), + "VerifyASN1": reflect.ValueOf(ecdsa.VerifyASN1), // type definitions "PrivateKey": reflect.ValueOf((*ecdsa.PrivateKey)(nil)), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_ed25519.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ed25519.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_ed25519.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ed25519.go index 59fc16a..4c9a37d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_ed25519.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ed25519.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/ed25519'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_elliptic.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_elliptic.go similarity index 75% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_elliptic.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_elliptic.go index 34f960e..33aa647 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_elliptic.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_elliptic.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/elliptic'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -13,13 +13,15 @@ import ( func init() { Symbols["crypto/elliptic"] = map[string]reflect.Value{ // function, constant and variable definitions - "GenerateKey": reflect.ValueOf(elliptic.GenerateKey), - "Marshal": reflect.ValueOf(elliptic.Marshal), - "P224": reflect.ValueOf(elliptic.P224), - "P256": reflect.ValueOf(elliptic.P256), - "P384": reflect.ValueOf(elliptic.P384), - "P521": reflect.ValueOf(elliptic.P521), - "Unmarshal": reflect.ValueOf(elliptic.Unmarshal), + "GenerateKey": reflect.ValueOf(elliptic.GenerateKey), + "Marshal": reflect.ValueOf(elliptic.Marshal), + "MarshalCompressed": reflect.ValueOf(elliptic.MarshalCompressed), + "P224": reflect.ValueOf(elliptic.P224), + "P256": reflect.ValueOf(elliptic.P256), + "P384": reflect.ValueOf(elliptic.P384), + "P521": reflect.ValueOf(elliptic.P521), + "Unmarshal": reflect.ValueOf(elliptic.Unmarshal), + "UnmarshalCompressed": reflect.ValueOf(elliptic.UnmarshalCompressed), // type definitions "Curve": reflect.ValueOf((*elliptic.Curve)(nil)), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_hmac.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_hmac.go similarity index 92% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_hmac.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_hmac.go index aa6eea6..b67a34b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_hmac.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_hmac.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/hmac'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_md5.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_md5.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_md5.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_md5.go index 0d70458..298e182 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_md5.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_md5.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/md5'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rand.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rand.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rand.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rand.go index 3602b5c..0c09087 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rand.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rand.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rc4.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rc4.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rc4.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rc4.go index c19a105..af317ed 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rc4.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rc4.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/rc4'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rsa.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rsa.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rsa.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rsa.go index e48feab..06169a0 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_rsa.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rsa.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/rsa'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha1.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha1.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha1.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha1.go index 4d5ac03..00ce818 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha1.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha1.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha256.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha256.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha256.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha256.go index e1ef4aa..295004a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha256.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha256.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha512.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha512.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha512.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha512.go index 33f8353..a0c8686 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_sha512.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha512.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/sha512'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_subtle.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_subtle.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_subtle.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_subtle.go index 3c7e947..69df53a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_subtle.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_subtle.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/subtle'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_tls.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_tls.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_tls.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_tls.go index 5e49102..4aae4a0 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_tls.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_tls.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/tls'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -96,6 +96,7 @@ func init() { "Conn": reflect.ValueOf((*tls.Conn)(nil)), "ConnectionState": reflect.ValueOf((*tls.ConnectionState)(nil)), "CurveID": reflect.ValueOf((*tls.CurveID)(nil)), + "Dialer": reflect.ValueOf((*tls.Dialer)(nil)), "RecordHeaderError": reflect.ValueOf((*tls.RecordHeaderError)(nil)), "RenegotiationSupport": reflect.ValueOf((*tls.RenegotiationSupport)(nil)), "SignatureScheme": reflect.ValueOf((*tls.SignatureScheme)(nil)), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_x509.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_x509.go similarity index 75% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_x509.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_x509.go index af200ac..60e4b1c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_x509.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_x509.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/x509'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -12,30 +12,31 @@ import ( func init() { Symbols["crypto/x509"] = map[string]reflect.Value{ // function, constant and variable definitions - "CANotAuthorizedForExtKeyUsage": reflect.ValueOf(x509.CANotAuthorizedForExtKeyUsage), - "CANotAuthorizedForThisName": reflect.ValueOf(x509.CANotAuthorizedForThisName), - "CreateCertificate": reflect.ValueOf(x509.CreateCertificate), - "CreateCertificateRequest": reflect.ValueOf(x509.CreateCertificateRequest), - "DSA": reflect.ValueOf(x509.DSA), - "DSAWithSHA1": reflect.ValueOf(x509.DSAWithSHA1), - "DSAWithSHA256": reflect.ValueOf(x509.DSAWithSHA256), - "DecryptPEMBlock": reflect.ValueOf(x509.DecryptPEMBlock), - "ECDSA": reflect.ValueOf(x509.ECDSA), - "ECDSAWithSHA1": reflect.ValueOf(x509.ECDSAWithSHA1), - "ECDSAWithSHA256": reflect.ValueOf(x509.ECDSAWithSHA256), - "ECDSAWithSHA384": reflect.ValueOf(x509.ECDSAWithSHA384), - "ECDSAWithSHA512": reflect.ValueOf(x509.ECDSAWithSHA512), - "Ed25519": reflect.ValueOf(x509.Ed25519), - "EncryptPEMBlock": reflect.ValueOf(x509.EncryptPEMBlock), - "ErrUnsupportedAlgorithm": reflect.ValueOf(&x509.ErrUnsupportedAlgorithm).Elem(), - "Expired": reflect.ValueOf(x509.Expired), - "ExtKeyUsageAny": reflect.ValueOf(x509.ExtKeyUsageAny), - "ExtKeyUsageClientAuth": reflect.ValueOf(x509.ExtKeyUsageClientAuth), - "ExtKeyUsageCodeSigning": reflect.ValueOf(x509.ExtKeyUsageCodeSigning), - "ExtKeyUsageEmailProtection": reflect.ValueOf(x509.ExtKeyUsageEmailProtection), - "ExtKeyUsageIPSECEndSystem": reflect.ValueOf(x509.ExtKeyUsageIPSECEndSystem), - "ExtKeyUsageIPSECTunnel": reflect.ValueOf(x509.ExtKeyUsageIPSECTunnel), - "ExtKeyUsageIPSECUser": reflect.ValueOf(x509.ExtKeyUsageIPSECUser), + "CANotAuthorizedForExtKeyUsage": reflect.ValueOf(x509.CANotAuthorizedForExtKeyUsage), + "CANotAuthorizedForThisName": reflect.ValueOf(x509.CANotAuthorizedForThisName), + "CreateCertificate": reflect.ValueOf(x509.CreateCertificate), + "CreateCertificateRequest": reflect.ValueOf(x509.CreateCertificateRequest), + "CreateRevocationList": reflect.ValueOf(x509.CreateRevocationList), + "DSA": reflect.ValueOf(x509.DSA), + "DSAWithSHA1": reflect.ValueOf(x509.DSAWithSHA1), + "DSAWithSHA256": reflect.ValueOf(x509.DSAWithSHA256), + "DecryptPEMBlock": reflect.ValueOf(x509.DecryptPEMBlock), + "ECDSA": reflect.ValueOf(x509.ECDSA), + "ECDSAWithSHA1": reflect.ValueOf(x509.ECDSAWithSHA1), + "ECDSAWithSHA256": reflect.ValueOf(x509.ECDSAWithSHA256), + "ECDSAWithSHA384": reflect.ValueOf(x509.ECDSAWithSHA384), + "ECDSAWithSHA512": reflect.ValueOf(x509.ECDSAWithSHA512), + "Ed25519": reflect.ValueOf(x509.Ed25519), + "EncryptPEMBlock": reflect.ValueOf(x509.EncryptPEMBlock), + "ErrUnsupportedAlgorithm": reflect.ValueOf(&x509.ErrUnsupportedAlgorithm).Elem(), + "Expired": reflect.ValueOf(x509.Expired), + "ExtKeyUsageAny": reflect.ValueOf(x509.ExtKeyUsageAny), + "ExtKeyUsageClientAuth": reflect.ValueOf(x509.ExtKeyUsageClientAuth), + "ExtKeyUsageCodeSigning": reflect.ValueOf(x509.ExtKeyUsageCodeSigning), + "ExtKeyUsageEmailProtection": reflect.ValueOf(x509.ExtKeyUsageEmailProtection), + "ExtKeyUsageIPSECEndSystem": reflect.ValueOf(x509.ExtKeyUsageIPSECEndSystem), + "ExtKeyUsageIPSECTunnel": reflect.ValueOf(x509.ExtKeyUsageIPSECTunnel), + "ExtKeyUsageIPSECUser": reflect.ValueOf(x509.ExtKeyUsageIPSECUser), "ExtKeyUsageMicrosoftCommercialCodeSigning": reflect.ValueOf(x509.ExtKeyUsageMicrosoftCommercialCodeSigning), "ExtKeyUsageMicrosoftKernelCodeSigning": reflect.ValueOf(x509.ExtKeyUsageMicrosoftKernelCodeSigning), "ExtKeyUsageMicrosoftServerGatedCrypto": reflect.ValueOf(x509.ExtKeyUsageMicrosoftServerGatedCrypto), @@ -110,6 +111,7 @@ func init() { "KeyUsage": reflect.ValueOf((*x509.KeyUsage)(nil)), "PEMCipher": reflect.ValueOf((*x509.PEMCipher)(nil)), "PublicKeyAlgorithm": reflect.ValueOf((*x509.PublicKeyAlgorithm)(nil)), + "RevocationList": reflect.ValueOf((*x509.RevocationList)(nil)), "SignatureAlgorithm": reflect.ValueOf((*x509.SignatureAlgorithm)(nil)), "SystemRootsError": reflect.ValueOf((*x509.SystemRootsError)(nil)), "UnhandledCriticalExtension": reflect.ValueOf((*x509.UnhandledCriticalExtension)(nil)), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_x509_pkix.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_x509_pkix.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_x509_pkix.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_x509_pkix.go index 6120092..316db98 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_crypto_x509_pkix.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_x509_pkix.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract crypto/x509/pkix'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_database_sql.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_database_sql.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_database_sql.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_database_sql.go index 42fbf1a..8f0c476 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_database_sql.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_database_sql.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract database/sql'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_database_sql_driver.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_database_sql_driver.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_database_sql_driver.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_database_sql_driver.go index fab615e..a79d475 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_database_sql_driver.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_database_sql_driver.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract database/sql/driver'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -57,6 +57,7 @@ func init() { "StmtQueryContext": reflect.ValueOf((*driver.StmtQueryContext)(nil)), "Tx": reflect.ValueOf((*driver.Tx)(nil)), "TxOptions": reflect.ValueOf((*driver.TxOptions)(nil)), + "Validator": reflect.ValueOf((*driver.Validator)(nil)), "Value": reflect.ValueOf((*driver.Value)(nil)), "ValueConverter": reflect.ValueOf((*driver.ValueConverter)(nil)), "Valuer": reflect.ValueOf((*driver.Valuer)(nil)), @@ -88,6 +89,7 @@ func init() { "_StmtExecContext": reflect.ValueOf((*_database_sql_driver_StmtExecContext)(nil)), "_StmtQueryContext": reflect.ValueOf((*_database_sql_driver_StmtQueryContext)(nil)), "_Tx": reflect.ValueOf((*_database_sql_driver_Tx)(nil)), + "_Validator": reflect.ValueOf((*_database_sql_driver_Validator)(nil)), "_Value": reflect.ValueOf((*_database_sql_driver_Value)(nil)), "_ValueConverter": reflect.ValueOf((*_database_sql_driver_ValueConverter)(nil)), "_Valuer": reflect.ValueOf((*_database_sql_driver_Valuer)(nil)), @@ -386,6 +388,13 @@ type _database_sql_driver_Tx struct { func (W _database_sql_driver_Tx) Commit() error { return W.WCommit() } func (W _database_sql_driver_Tx) Rollback() error { return W.WRollback() } +// _database_sql_driver_Validator is an interface wrapper for Validator type +type _database_sql_driver_Validator struct { + WIsValid func() bool +} + +func (W _database_sql_driver_Validator) IsValid() bool { return W.WIsValid() } + // _database_sql_driver_Value is an interface wrapper for Value type type _database_sql_driver_Value struct { } diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_dwarf.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_dwarf.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_dwarf.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_dwarf.go index e54996d..ea12774 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_dwarf.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_dwarf.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/dwarf'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_elf.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_elf.go similarity index 92% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_elf.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_elf.go index 6d3f279..dc88df5 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_elf.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_elf.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/elf'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -25,13 +25,29 @@ func init() { "DF_STATIC_TLS": reflect.ValueOf(elf.DF_STATIC_TLS), "DF_SYMBOLIC": reflect.ValueOf(elf.DF_SYMBOLIC), "DF_TEXTREL": reflect.ValueOf(elf.DF_TEXTREL), + "DT_ADDRRNGHI": reflect.ValueOf(elf.DT_ADDRRNGHI), + "DT_ADDRRNGLO": reflect.ValueOf(elf.DT_ADDRRNGLO), + "DT_AUDIT": reflect.ValueOf(elf.DT_AUDIT), + "DT_AUXILIARY": reflect.ValueOf(elf.DT_AUXILIARY), "DT_BIND_NOW": reflect.ValueOf(elf.DT_BIND_NOW), + "DT_CHECKSUM": reflect.ValueOf(elf.DT_CHECKSUM), + "DT_CONFIG": reflect.ValueOf(elf.DT_CONFIG), "DT_DEBUG": reflect.ValueOf(elf.DT_DEBUG), + "DT_DEPAUDIT": reflect.ValueOf(elf.DT_DEPAUDIT), "DT_ENCODING": reflect.ValueOf(elf.DT_ENCODING), + "DT_FEATURE": reflect.ValueOf(elf.DT_FEATURE), + "DT_FILTER": reflect.ValueOf(elf.DT_FILTER), "DT_FINI": reflect.ValueOf(elf.DT_FINI), "DT_FINI_ARRAY": reflect.ValueOf(elf.DT_FINI_ARRAY), "DT_FINI_ARRAYSZ": reflect.ValueOf(elf.DT_FINI_ARRAYSZ), "DT_FLAGS": reflect.ValueOf(elf.DT_FLAGS), + "DT_FLAGS_1": reflect.ValueOf(elf.DT_FLAGS_1), + "DT_GNU_CONFLICT": reflect.ValueOf(elf.DT_GNU_CONFLICT), + "DT_GNU_CONFLICTSZ": reflect.ValueOf(elf.DT_GNU_CONFLICTSZ), + "DT_GNU_HASH": reflect.ValueOf(elf.DT_GNU_HASH), + "DT_GNU_LIBLIST": reflect.ValueOf(elf.DT_GNU_LIBLIST), + "DT_GNU_LIBLISTSZ": reflect.ValueOf(elf.DT_GNU_LIBLISTSZ), + "DT_GNU_PRELINKED": reflect.ValueOf(elf.DT_GNU_PRELINKED), "DT_HASH": reflect.ValueOf(elf.DT_HASH), "DT_HIOS": reflect.ValueOf(elf.DT_HIOS), "DT_HIPROC": reflect.ValueOf(elf.DT_HIPROC), @@ -41,28 +57,100 @@ func init() { "DT_JMPREL": reflect.ValueOf(elf.DT_JMPREL), "DT_LOOS": reflect.ValueOf(elf.DT_LOOS), "DT_LOPROC": reflect.ValueOf(elf.DT_LOPROC), + "DT_MIPS_AUX_DYNAMIC": reflect.ValueOf(elf.DT_MIPS_AUX_DYNAMIC), + "DT_MIPS_BASE_ADDRESS": reflect.ValueOf(elf.DT_MIPS_BASE_ADDRESS), + "DT_MIPS_COMPACT_SIZE": reflect.ValueOf(elf.DT_MIPS_COMPACT_SIZE), + "DT_MIPS_CONFLICT": reflect.ValueOf(elf.DT_MIPS_CONFLICT), + "DT_MIPS_CONFLICTNO": reflect.ValueOf(elf.DT_MIPS_CONFLICTNO), + "DT_MIPS_CXX_FLAGS": reflect.ValueOf(elf.DT_MIPS_CXX_FLAGS), + "DT_MIPS_DELTA_CLASS": reflect.ValueOf(elf.DT_MIPS_DELTA_CLASS), + "DT_MIPS_DELTA_CLASSSYM": reflect.ValueOf(elf.DT_MIPS_DELTA_CLASSSYM), + "DT_MIPS_DELTA_CLASSSYM_NO": reflect.ValueOf(elf.DT_MIPS_DELTA_CLASSSYM_NO), + "DT_MIPS_DELTA_CLASS_NO": reflect.ValueOf(elf.DT_MIPS_DELTA_CLASS_NO), + "DT_MIPS_DELTA_INSTANCE": reflect.ValueOf(elf.DT_MIPS_DELTA_INSTANCE), + "DT_MIPS_DELTA_INSTANCE_NO": reflect.ValueOf(elf.DT_MIPS_DELTA_INSTANCE_NO), + "DT_MIPS_DELTA_RELOC": reflect.ValueOf(elf.DT_MIPS_DELTA_RELOC), + "DT_MIPS_DELTA_RELOC_NO": reflect.ValueOf(elf.DT_MIPS_DELTA_RELOC_NO), + "DT_MIPS_DELTA_SYM": reflect.ValueOf(elf.DT_MIPS_DELTA_SYM), + "DT_MIPS_DELTA_SYM_NO": reflect.ValueOf(elf.DT_MIPS_DELTA_SYM_NO), + "DT_MIPS_DYNSTR_ALIGN": reflect.ValueOf(elf.DT_MIPS_DYNSTR_ALIGN), + "DT_MIPS_FLAGS": reflect.ValueOf(elf.DT_MIPS_FLAGS), + "DT_MIPS_GOTSYM": reflect.ValueOf(elf.DT_MIPS_GOTSYM), + "DT_MIPS_GP_VALUE": reflect.ValueOf(elf.DT_MIPS_GP_VALUE), + "DT_MIPS_HIDDEN_GOTIDX": reflect.ValueOf(elf.DT_MIPS_HIDDEN_GOTIDX), + "DT_MIPS_HIPAGENO": reflect.ValueOf(elf.DT_MIPS_HIPAGENO), + "DT_MIPS_ICHECKSUM": reflect.ValueOf(elf.DT_MIPS_ICHECKSUM), + "DT_MIPS_INTERFACE": reflect.ValueOf(elf.DT_MIPS_INTERFACE), + "DT_MIPS_INTERFACE_SIZE": reflect.ValueOf(elf.DT_MIPS_INTERFACE_SIZE), + "DT_MIPS_IVERSION": reflect.ValueOf(elf.DT_MIPS_IVERSION), + "DT_MIPS_LIBLIST": reflect.ValueOf(elf.DT_MIPS_LIBLIST), + "DT_MIPS_LIBLISTNO": reflect.ValueOf(elf.DT_MIPS_LIBLISTNO), + "DT_MIPS_LOCALPAGE_GOTIDX": reflect.ValueOf(elf.DT_MIPS_LOCALPAGE_GOTIDX), + "DT_MIPS_LOCAL_GOTIDX": reflect.ValueOf(elf.DT_MIPS_LOCAL_GOTIDX), + "DT_MIPS_LOCAL_GOTNO": reflect.ValueOf(elf.DT_MIPS_LOCAL_GOTNO), + "DT_MIPS_MSYM": reflect.ValueOf(elf.DT_MIPS_MSYM), + "DT_MIPS_OPTIONS": reflect.ValueOf(elf.DT_MIPS_OPTIONS), + "DT_MIPS_PERF_SUFFIX": reflect.ValueOf(elf.DT_MIPS_PERF_SUFFIX), + "DT_MIPS_PIXIE_INIT": reflect.ValueOf(elf.DT_MIPS_PIXIE_INIT), + "DT_MIPS_PLTGOT": reflect.ValueOf(elf.DT_MIPS_PLTGOT), + "DT_MIPS_PROTECTED_GOTIDX": reflect.ValueOf(elf.DT_MIPS_PROTECTED_GOTIDX), + "DT_MIPS_RLD_MAP": reflect.ValueOf(elf.DT_MIPS_RLD_MAP), + "DT_MIPS_RLD_MAP_REL": reflect.ValueOf(elf.DT_MIPS_RLD_MAP_REL), + "DT_MIPS_RLD_TEXT_RESOLVE_ADDR": reflect.ValueOf(elf.DT_MIPS_RLD_TEXT_RESOLVE_ADDR), + "DT_MIPS_RLD_VERSION": reflect.ValueOf(elf.DT_MIPS_RLD_VERSION), + "DT_MIPS_RWPLT": reflect.ValueOf(elf.DT_MIPS_RWPLT), + "DT_MIPS_SYMBOL_LIB": reflect.ValueOf(elf.DT_MIPS_SYMBOL_LIB), + "DT_MIPS_SYMTABNO": reflect.ValueOf(elf.DT_MIPS_SYMTABNO), + "DT_MIPS_TIME_STAMP": reflect.ValueOf(elf.DT_MIPS_TIME_STAMP), + "DT_MIPS_UNREFEXTNO": reflect.ValueOf(elf.DT_MIPS_UNREFEXTNO), + "DT_MOVEENT": reflect.ValueOf(elf.DT_MOVEENT), + "DT_MOVESZ": reflect.ValueOf(elf.DT_MOVESZ), + "DT_MOVETAB": reflect.ValueOf(elf.DT_MOVETAB), "DT_NEEDED": reflect.ValueOf(elf.DT_NEEDED), "DT_NULL": reflect.ValueOf(elf.DT_NULL), "DT_PLTGOT": reflect.ValueOf(elf.DT_PLTGOT), + "DT_PLTPAD": reflect.ValueOf(elf.DT_PLTPAD), + "DT_PLTPADSZ": reflect.ValueOf(elf.DT_PLTPADSZ), "DT_PLTREL": reflect.ValueOf(elf.DT_PLTREL), "DT_PLTRELSZ": reflect.ValueOf(elf.DT_PLTRELSZ), + "DT_POSFLAG_1": reflect.ValueOf(elf.DT_POSFLAG_1), + "DT_PPC64_GLINK": reflect.ValueOf(elf.DT_PPC64_GLINK), + "DT_PPC64_OPD": reflect.ValueOf(elf.DT_PPC64_OPD), + "DT_PPC64_OPDSZ": reflect.ValueOf(elf.DT_PPC64_OPDSZ), + "DT_PPC64_OPT": reflect.ValueOf(elf.DT_PPC64_OPT), + "DT_PPC_GOT": reflect.ValueOf(elf.DT_PPC_GOT), + "DT_PPC_OPT": reflect.ValueOf(elf.DT_PPC_OPT), "DT_PREINIT_ARRAY": reflect.ValueOf(elf.DT_PREINIT_ARRAY), "DT_PREINIT_ARRAYSZ": reflect.ValueOf(elf.DT_PREINIT_ARRAYSZ), "DT_REL": reflect.ValueOf(elf.DT_REL), "DT_RELA": reflect.ValueOf(elf.DT_RELA), + "DT_RELACOUNT": reflect.ValueOf(elf.DT_RELACOUNT), "DT_RELAENT": reflect.ValueOf(elf.DT_RELAENT), "DT_RELASZ": reflect.ValueOf(elf.DT_RELASZ), + "DT_RELCOUNT": reflect.ValueOf(elf.DT_RELCOUNT), "DT_RELENT": reflect.ValueOf(elf.DT_RELENT), "DT_RELSZ": reflect.ValueOf(elf.DT_RELSZ), "DT_RPATH": reflect.ValueOf(elf.DT_RPATH), "DT_RUNPATH": reflect.ValueOf(elf.DT_RUNPATH), "DT_SONAME": reflect.ValueOf(elf.DT_SONAME), + "DT_SPARC_REGISTER": reflect.ValueOf(elf.DT_SPARC_REGISTER), "DT_STRSZ": reflect.ValueOf(elf.DT_STRSZ), "DT_STRTAB": reflect.ValueOf(elf.DT_STRTAB), "DT_SYMBOLIC": reflect.ValueOf(elf.DT_SYMBOLIC), "DT_SYMENT": reflect.ValueOf(elf.DT_SYMENT), + "DT_SYMINENT": reflect.ValueOf(elf.DT_SYMINENT), + "DT_SYMINFO": reflect.ValueOf(elf.DT_SYMINFO), + "DT_SYMINSZ": reflect.ValueOf(elf.DT_SYMINSZ), "DT_SYMTAB": reflect.ValueOf(elf.DT_SYMTAB), + "DT_SYMTAB_SHNDX": reflect.ValueOf(elf.DT_SYMTAB_SHNDX), "DT_TEXTREL": reflect.ValueOf(elf.DT_TEXTREL), + "DT_TLSDESC_GOT": reflect.ValueOf(elf.DT_TLSDESC_GOT), + "DT_TLSDESC_PLT": reflect.ValueOf(elf.DT_TLSDESC_PLT), + "DT_USED": reflect.ValueOf(elf.DT_USED), + "DT_VALRNGHI": reflect.ValueOf(elf.DT_VALRNGHI), + "DT_VALRNGLO": reflect.ValueOf(elf.DT_VALRNGLO), + "DT_VERDEF": reflect.ValueOf(elf.DT_VERDEF), + "DT_VERDEFNUM": reflect.ValueOf(elf.DT_VERDEFNUM), "DT_VERNEED": reflect.ValueOf(elf.DT_VERNEED), "DT_VERNEEDNUM": reflect.ValueOf(elf.DT_VERNEEDNUM), "DT_VERSYM": reflect.ValueOf(elf.DT_VERSYM), @@ -308,17 +396,38 @@ func init() { "PF_R": reflect.ValueOf(elf.PF_R), "PF_W": reflect.ValueOf(elf.PF_W), "PF_X": reflect.ValueOf(elf.PF_X), + "PT_AARCH64_ARCHEXT": reflect.ValueOf(elf.PT_AARCH64_ARCHEXT), + "PT_AARCH64_UNWIND": reflect.ValueOf(elf.PT_AARCH64_UNWIND), + "PT_ARM_ARCHEXT": reflect.ValueOf(elf.PT_ARM_ARCHEXT), + "PT_ARM_EXIDX": reflect.ValueOf(elf.PT_ARM_EXIDX), "PT_DYNAMIC": reflect.ValueOf(elf.PT_DYNAMIC), + "PT_GNU_EH_FRAME": reflect.ValueOf(elf.PT_GNU_EH_FRAME), + "PT_GNU_MBIND_HI": reflect.ValueOf(elf.PT_GNU_MBIND_HI), + "PT_GNU_MBIND_LO": reflect.ValueOf(elf.PT_GNU_MBIND_LO), + "PT_GNU_PROPERTY": reflect.ValueOf(elf.PT_GNU_PROPERTY), + "PT_GNU_RELRO": reflect.ValueOf(elf.PT_GNU_RELRO), + "PT_GNU_STACK": reflect.ValueOf(elf.PT_GNU_STACK), "PT_HIOS": reflect.ValueOf(elf.PT_HIOS), "PT_HIPROC": reflect.ValueOf(elf.PT_HIPROC), "PT_INTERP": reflect.ValueOf(elf.PT_INTERP), "PT_LOAD": reflect.ValueOf(elf.PT_LOAD), "PT_LOOS": reflect.ValueOf(elf.PT_LOOS), "PT_LOPROC": reflect.ValueOf(elf.PT_LOPROC), + "PT_MIPS_ABIFLAGS": reflect.ValueOf(elf.PT_MIPS_ABIFLAGS), + "PT_MIPS_OPTIONS": reflect.ValueOf(elf.PT_MIPS_OPTIONS), + "PT_MIPS_REGINFO": reflect.ValueOf(elf.PT_MIPS_REGINFO), + "PT_MIPS_RTPROC": reflect.ValueOf(elf.PT_MIPS_RTPROC), "PT_NOTE": reflect.ValueOf(elf.PT_NOTE), "PT_NULL": reflect.ValueOf(elf.PT_NULL), + "PT_OPENBSD_BOOTDATA": reflect.ValueOf(elf.PT_OPENBSD_BOOTDATA), + "PT_OPENBSD_RANDOMIZE": reflect.ValueOf(elf.PT_OPENBSD_RANDOMIZE), + "PT_OPENBSD_WXNEEDED": reflect.ValueOf(elf.PT_OPENBSD_WXNEEDED), + "PT_PAX_FLAGS": reflect.ValueOf(elf.PT_PAX_FLAGS), "PT_PHDR": reflect.ValueOf(elf.PT_PHDR), + "PT_S390_PGSTE": reflect.ValueOf(elf.PT_S390_PGSTE), "PT_SHLIB": reflect.ValueOf(elf.PT_SHLIB), + "PT_SUNWSTACK": reflect.ValueOf(elf.PT_SUNWSTACK), + "PT_SUNW_EH_FRAME": reflect.ValueOf(elf.PT_SUNW_EH_FRAME), "PT_TLS": reflect.ValueOf(elf.PT_TLS), "R_386_16": reflect.ValueOf(elf.R_386_16), "R_386_32": reflect.ValueOf(elf.R_386_32), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_gosym.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_gosym.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_gosym.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_gosym.go index 98920d5..068178f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_gosym.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_gosym.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/gosym'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_macho.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_macho.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_macho.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_macho.go index c146241..da19d92 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_macho.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_macho.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/macho'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_pe.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_pe.go new file mode 100644 index 0000000..46fc2ce --- /dev/null +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_pe.go @@ -0,0 +1,114 @@ +// Code generated by 'yaegi extract debug/pe'. DO NOT EDIT. + +// +build go1.16 + +package stdlib + +import ( + "debug/pe" + "go/constant" + "go/token" + "reflect" +) + +func init() { + Symbols["debug/pe"] = map[string]reflect.Value{ + // function, constant and variable definitions + "COFFSymbolSize": reflect.ValueOf(constant.MakeFromLiteral("18", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_ARCHITECTURE": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_BASERELOC": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_BOUND_IMPORT": reflect.ValueOf(constant.MakeFromLiteral("11", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_COM_DESCRIPTOR": reflect.ValueOf(constant.MakeFromLiteral("14", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_DEBUG": reflect.ValueOf(constant.MakeFromLiteral("6", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT": reflect.ValueOf(constant.MakeFromLiteral("13", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_EXCEPTION": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_EXPORT": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_GLOBALPTR": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_IAT": reflect.ValueOf(constant.MakeFromLiteral("12", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_IMPORT": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_LOAD_CONFIG": reflect.ValueOf(constant.MakeFromLiteral("10", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_RESOURCE": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_SECURITY": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "IMAGE_DIRECTORY_ENTRY_TLS": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_APPCONTAINER": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_DYNAMIC_BASE": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_FORCE_INTEGRITY": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_GUARD_CF": reflect.ValueOf(constant.MakeFromLiteral("16384", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_HIGH_ENTROPY_VA": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_NO_BIND": reflect.ValueOf(constant.MakeFromLiteral("2048", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_NO_ISOLATION": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_NO_SEH": reflect.ValueOf(constant.MakeFromLiteral("1024", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_NX_COMPAT": reflect.ValueOf(constant.MakeFromLiteral("256", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE": reflect.ValueOf(constant.MakeFromLiteral("32768", token.INT, 0)), + "IMAGE_DLLCHARACTERISTICS_WDM_DRIVER": reflect.ValueOf(constant.MakeFromLiteral("8192", token.INT, 0)), + "IMAGE_FILE_32BIT_MACHINE": reflect.ValueOf(constant.MakeFromLiteral("256", token.INT, 0)), + "IMAGE_FILE_AGGRESIVE_WS_TRIM": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), + "IMAGE_FILE_BYTES_REVERSED_HI": reflect.ValueOf(constant.MakeFromLiteral("32768", token.INT, 0)), + "IMAGE_FILE_BYTES_REVERSED_LO": reflect.ValueOf(constant.MakeFromLiteral("128", token.INT, 0)), + "IMAGE_FILE_DEBUG_STRIPPED": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), + "IMAGE_FILE_DLL": reflect.ValueOf(constant.MakeFromLiteral("8192", token.INT, 0)), + "IMAGE_FILE_EXECUTABLE_IMAGE": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "IMAGE_FILE_LARGE_ADDRESS_AWARE": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), + "IMAGE_FILE_LINE_NUMS_STRIPPED": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), + "IMAGE_FILE_LOCAL_SYMS_STRIPPED": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "IMAGE_FILE_MACHINE_AM33": reflect.ValueOf(constant.MakeFromLiteral("467", token.INT, 0)), + "IMAGE_FILE_MACHINE_AMD64": reflect.ValueOf(constant.MakeFromLiteral("34404", token.INT, 0)), + "IMAGE_FILE_MACHINE_ARM": reflect.ValueOf(constant.MakeFromLiteral("448", token.INT, 0)), + "IMAGE_FILE_MACHINE_ARM64": reflect.ValueOf(constant.MakeFromLiteral("43620", token.INT, 0)), + "IMAGE_FILE_MACHINE_ARMNT": reflect.ValueOf(constant.MakeFromLiteral("452", token.INT, 0)), + "IMAGE_FILE_MACHINE_EBC": reflect.ValueOf(constant.MakeFromLiteral("3772", token.INT, 0)), + "IMAGE_FILE_MACHINE_I386": reflect.ValueOf(constant.MakeFromLiteral("332", token.INT, 0)), + "IMAGE_FILE_MACHINE_IA64": reflect.ValueOf(constant.MakeFromLiteral("512", token.INT, 0)), + "IMAGE_FILE_MACHINE_M32R": reflect.ValueOf(constant.MakeFromLiteral("36929", token.INT, 0)), + "IMAGE_FILE_MACHINE_MIPS16": reflect.ValueOf(constant.MakeFromLiteral("614", token.INT, 0)), + "IMAGE_FILE_MACHINE_MIPSFPU": reflect.ValueOf(constant.MakeFromLiteral("870", token.INT, 0)), + "IMAGE_FILE_MACHINE_MIPSFPU16": reflect.ValueOf(constant.MakeFromLiteral("1126", token.INT, 0)), + "IMAGE_FILE_MACHINE_POWERPC": reflect.ValueOf(constant.MakeFromLiteral("496", token.INT, 0)), + "IMAGE_FILE_MACHINE_POWERPCFP": reflect.ValueOf(constant.MakeFromLiteral("497", token.INT, 0)), + "IMAGE_FILE_MACHINE_R4000": reflect.ValueOf(constant.MakeFromLiteral("358", token.INT, 0)), + "IMAGE_FILE_MACHINE_SH3": reflect.ValueOf(constant.MakeFromLiteral("418", token.INT, 0)), + "IMAGE_FILE_MACHINE_SH3DSP": reflect.ValueOf(constant.MakeFromLiteral("419", token.INT, 0)), + "IMAGE_FILE_MACHINE_SH4": reflect.ValueOf(constant.MakeFromLiteral("422", token.INT, 0)), + "IMAGE_FILE_MACHINE_SH5": reflect.ValueOf(constant.MakeFromLiteral("424", token.INT, 0)), + "IMAGE_FILE_MACHINE_THUMB": reflect.ValueOf(constant.MakeFromLiteral("450", token.INT, 0)), + "IMAGE_FILE_MACHINE_UNKNOWN": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "IMAGE_FILE_MACHINE_WCEMIPSV2": reflect.ValueOf(constant.MakeFromLiteral("361", token.INT, 0)), + "IMAGE_FILE_NET_RUN_FROM_SWAP": reflect.ValueOf(constant.MakeFromLiteral("2048", token.INT, 0)), + "IMAGE_FILE_RELOCS_STRIPPED": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "IMAGE_FILE_REMOVABLE_RUN_FROM_SWAP": reflect.ValueOf(constant.MakeFromLiteral("1024", token.INT, 0)), + "IMAGE_FILE_SYSTEM": reflect.ValueOf(constant.MakeFromLiteral("4096", token.INT, 0)), + "IMAGE_FILE_UP_SYSTEM_ONLY": reflect.ValueOf(constant.MakeFromLiteral("16384", token.INT, 0)), + "IMAGE_SUBSYSTEM_EFI_APPLICATION": reflect.ValueOf(constant.MakeFromLiteral("10", token.INT, 0)), + "IMAGE_SUBSYSTEM_EFI_BOOT_SERVICE_DRIVER": reflect.ValueOf(constant.MakeFromLiteral("11", token.INT, 0)), + "IMAGE_SUBSYSTEM_EFI_ROM": reflect.ValueOf(constant.MakeFromLiteral("13", token.INT, 0)), + "IMAGE_SUBSYSTEM_EFI_RUNTIME_DRIVER": reflect.ValueOf(constant.MakeFromLiteral("12", token.INT, 0)), + "IMAGE_SUBSYSTEM_NATIVE": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), + "IMAGE_SUBSYSTEM_NATIVE_WINDOWS": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), + "IMAGE_SUBSYSTEM_OS2_CUI": reflect.ValueOf(constant.MakeFromLiteral("5", token.INT, 0)), + "IMAGE_SUBSYSTEM_POSIX_CUI": reflect.ValueOf(constant.MakeFromLiteral("7", token.INT, 0)), + "IMAGE_SUBSYSTEM_UNKNOWN": reflect.ValueOf(constant.MakeFromLiteral("0", token.INT, 0)), + "IMAGE_SUBSYSTEM_WINDOWS_BOOT_APPLICATION": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), + "IMAGE_SUBSYSTEM_WINDOWS_CE_GUI": reflect.ValueOf(constant.MakeFromLiteral("9", token.INT, 0)), + "IMAGE_SUBSYSTEM_WINDOWS_CUI": reflect.ValueOf(constant.MakeFromLiteral("3", token.INT, 0)), + "IMAGE_SUBSYSTEM_WINDOWS_GUI": reflect.ValueOf(constant.MakeFromLiteral("2", token.INT, 0)), + "IMAGE_SUBSYSTEM_XBOX": reflect.ValueOf(constant.MakeFromLiteral("14", token.INT, 0)), + "NewFile": reflect.ValueOf(pe.NewFile), + "Open": reflect.ValueOf(pe.Open), + + // type definitions + "COFFSymbol": reflect.ValueOf((*pe.COFFSymbol)(nil)), + "DataDirectory": reflect.ValueOf((*pe.DataDirectory)(nil)), + "File": reflect.ValueOf((*pe.File)(nil)), + "FileHeader": reflect.ValueOf((*pe.FileHeader)(nil)), + "FormatError": reflect.ValueOf((*pe.FormatError)(nil)), + "ImportDirectory": reflect.ValueOf((*pe.ImportDirectory)(nil)), + "OptionalHeader32": reflect.ValueOf((*pe.OptionalHeader32)(nil)), + "OptionalHeader64": reflect.ValueOf((*pe.OptionalHeader64)(nil)), + "Reloc": reflect.ValueOf((*pe.Reloc)(nil)), + "Section": reflect.ValueOf((*pe.Section)(nil)), + "SectionHeader": reflect.ValueOf((*pe.SectionHeader)(nil)), + "SectionHeader32": reflect.ValueOf((*pe.SectionHeader32)(nil)), + "StringTable": reflect.ValueOf((*pe.StringTable)(nil)), + "Symbol": reflect.ValueOf((*pe.Symbol)(nil)), + } +} diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_plan9obj.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_plan9obj.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_plan9obj.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_plan9obj.go index ca8b759..003b7ed 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_debug_plan9obj.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_debug_plan9obj.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract debug/plan9obj'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_16_embed.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_embed.go new file mode 100644 index 0000000..9b6c7dc --- /dev/null +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_embed.go @@ -0,0 +1,17 @@ +// Code generated by 'yaegi extract embed'. DO NOT EDIT. + +// +build go1.16 + +package stdlib + +import ( + "embed" + "reflect" +) + +func init() { + Symbols["embed"] = map[string]reflect.Value{ + // type definitions + "FS": reflect.ValueOf((*embed.FS)(nil)), + } +} diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding.go index b7bb0c8..4d95e02 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_ascii85.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_ascii85.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_ascii85.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_ascii85.go index f28507a..36878c3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_ascii85.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_ascii85.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/ascii85'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_asn1.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_asn1.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_asn1.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_asn1.go index 5cb0731..ad4477c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_asn1.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_asn1.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/asn1'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_base32.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base32.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_base32.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base32.go index ddefc03..d0ec9f0 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_base32.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base32.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/base32'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_base64.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base64.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_base64.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base64.go index 84f1f48..74cadfb 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_base64.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base64.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/base64'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_binary.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_binary.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_binary.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_binary.go index 91811dc..e944754 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_binary.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_binary.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/binary'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_csv.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_csv.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_csv.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_csv.go index 22d01c6..b4fe1e2 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_csv.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_csv.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/csv'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_gob.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_gob.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_gob.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_gob.go index dd6dd00..0e01192 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_gob.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_gob.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/gob'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_hex.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_hex.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_hex.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_hex.go index 6f970cf..f00c070 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_hex.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_hex.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/hex'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_json.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_json.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_json.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_json.go index ea43cab..5c3f2aa 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_json.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_json.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/json'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_pem.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_pem.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_pem.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_pem.go index f8dc50c..bffbfd3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_pem.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_pem.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/pem'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_xml.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_xml.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_xml.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_xml.go index 4ca9827..96bef1f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_encoding_xml.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_xml.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract encoding/xml'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_errors.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_errors.go similarity index 93% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_errors.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_errors.go index 7fd3e48..31651f6 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_errors.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_errors.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract errors'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_expvar.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_expvar.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_expvar.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_expvar.go index f26df8e..6cad346 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_expvar.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_expvar.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract expvar'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_flag.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_flag.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_flag.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_flag.go index 38a4371..077b7ee 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_flag.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_flag.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract flag'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -24,6 +24,7 @@ func init() { "ExitOnError": reflect.ValueOf(flag.ExitOnError), "Float64": reflect.ValueOf(flag.Float64), "Float64Var": reflect.ValueOf(flag.Float64Var), + "Func": reflect.ValueOf(flag.Func), "Int": reflect.ValueOf(flag.Int), "Int64": reflect.ValueOf(flag.Int64), "Int64Var": reflect.ValueOf(flag.Int64Var), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_fmt.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_fmt.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_fmt.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_fmt.go index 2c1374b..794eb93 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_fmt.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_fmt.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract fmt'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -52,10 +52,10 @@ func init() { // _fmt_Formatter is an interface wrapper for Formatter type type _fmt_Formatter struct { - WFormat func(f fmt.State, c rune) + WFormat func(f fmt.State, verb rune) } -func (W _fmt_Formatter) Format(f fmt.State, c rune) { W.WFormat(f, c) } +func (W _fmt_Formatter) Format(f fmt.State, verb rune) { W.WFormat(f, verb) } // _fmt_GoStringer is an interface wrapper for GoStringer type type _fmt_GoStringer struct { diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_ast.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_ast.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_ast.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_ast.go index 9077f98..96f66c9 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_ast.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_ast.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/ast'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_build.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_build.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_build.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_build.go index e965205..4a9d433 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_build.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_build.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/build'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_constant.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_constant.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_constant.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_constant.go index cc33169..74b3f6a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_constant.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_constant.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/constant'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_doc.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_doc.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_doc.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_doc.go index 25e55aa..83ca5b4 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_doc.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_doc.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/doc'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_format.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_format.go similarity index 92% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_format.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_format.go index ca604fc..9d5aeb7 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_format.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_format.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/format'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_importer.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_importer.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_importer.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_importer.go index aee3a62..368d071 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_importer.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_importer.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/importer'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_parser.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_parser.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_parser.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_parser.go index 25fc3fe..5f7759b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_parser.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_parser.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/parser'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_printer.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_printer.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_printer.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_printer.go index 23a3aa8..0bc8ec4 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_printer.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_printer.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/printer'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_scanner.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_scanner.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_scanner.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_scanner.go index 6c8e0ac..843df1f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_scanner.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_scanner.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/scanner'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_token.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_token.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_token.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_token.go index 3a7db2f..af1b741 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_token.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_token.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/token'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_types.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_types.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_go_types.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_go_types.go index d6418c9..173566e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_go_types.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_go_types.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract go/types'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_hash.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_hash.go index b054c48..66830d5 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_adler32.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_adler32.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_adler32.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_adler32.go index 7633497..436f899 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_adler32.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_adler32.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/adler32'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_crc32.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc32.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_crc32.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc32.go index dcc7030..36d8441 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_crc32.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc32.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/crc32'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_crc64.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc64.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_crc64.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc64.go index 6720297..52711d1 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_crc64.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc64.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_fnv.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_fnv.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_fnv.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_fnv.go index 367fd3b..55f53de 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_fnv.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_fnv.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/fnv'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_maphash.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_maphash.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_maphash.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_maphash.go index 7f9c416..0d127cb 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_hash_maphash.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_maphash.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract hash/maphash'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_html.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_html.go similarity index 92% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_html.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_html.go index a1a4427..576a39e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_html.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_html.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract html'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_html_template.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_html_template.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_html_template.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_html_template.go index dcb6309..155b098 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_html_template.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_html_template.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract html/template'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -33,6 +33,7 @@ func init() { "Must": reflect.ValueOf(template.Must), "New": reflect.ValueOf(template.New), "OK": reflect.ValueOf(template.OK), + "ParseFS": reflect.ValueOf(template.ParseFS), "ParseFiles": reflect.ValueOf(template.ParseFiles), "ParseGlob": reflect.ValueOf(template.ParseGlob), "URLQueryEscaper": reflect.ValueOf(template.URLQueryEscaper), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_image.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_image.go index 141ea02..ab66da4 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_color.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_color.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_image_color.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_image_color.go index ea8640c..4e38559 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_color.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_color.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/color'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_color_palette.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_color_palette.go similarity index 93% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_image_color_palette.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_image_color_palette.go index d2e2206..40ca4d3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_color_palette.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_color_palette.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/color/palette'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_draw.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_draw.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_image_draw.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_image_draw.go index 7234695..52a181c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_draw.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_draw.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/draw'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_gif.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_gif.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_image_gif.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_image_gif.go index 34ce7c1..b95828e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_gif.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_gif.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/gif'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_jpeg.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_jpeg.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_image_jpeg.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_image_jpeg.go index 157a63f..d68af2f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_jpeg.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_jpeg.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/jpeg'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_png.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_png.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_image_png.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_image_png.go index d33c223..6dbc172 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_image_png.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_image_png.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract image/png'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_index_suffixarray.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_index_suffixarray.go similarity index 93% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_index_suffixarray.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_index_suffixarray.go index 4194ac8..82d1cb4 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_index_suffixarray.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_index_suffixarray.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract index/suffixarray'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_io.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_io.go similarity index 92% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_io.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_io.go index f8b40c7..11a5d3b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_io.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_io.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract io'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -17,6 +17,7 @@ func init() { "Copy": reflect.ValueOf(io.Copy), "CopyBuffer": reflect.ValueOf(io.CopyBuffer), "CopyN": reflect.ValueOf(io.CopyN), + "Discard": reflect.ValueOf(&io.Discard).Elem(), "EOF": reflect.ValueOf(&io.EOF).Elem(), "ErrClosedPipe": reflect.ValueOf(&io.ErrClosedPipe).Elem(), "ErrNoProgress": reflect.ValueOf(&io.ErrNoProgress).Elem(), @@ -27,7 +28,9 @@ func init() { "MultiReader": reflect.ValueOf(io.MultiReader), "MultiWriter": reflect.ValueOf(io.MultiWriter), "NewSectionReader": reflect.ValueOf(io.NewSectionReader), + "NopCloser": reflect.ValueOf(io.NopCloser), "Pipe": reflect.ValueOf(io.Pipe), + "ReadAll": reflect.ValueOf(io.ReadAll), "ReadAtLeast": reflect.ValueOf(io.ReadAtLeast), "ReadFull": reflect.ValueOf(io.ReadFull), "SeekCurrent": reflect.ValueOf(constant.MakeFromLiteral("1", token.INT, 0)), @@ -45,6 +48,7 @@ func init() { "PipeReader": reflect.ValueOf((*io.PipeReader)(nil)), "PipeWriter": reflect.ValueOf((*io.PipeWriter)(nil)), "ReadCloser": reflect.ValueOf((*io.ReadCloser)(nil)), + "ReadSeekCloser": reflect.ValueOf((*io.ReadSeekCloser)(nil)), "ReadSeeker": reflect.ValueOf((*io.ReadSeeker)(nil)), "ReadWriteCloser": reflect.ValueOf((*io.ReadWriteCloser)(nil)), "ReadWriteSeeker": reflect.ValueOf((*io.ReadWriteSeeker)(nil)), @@ -69,6 +73,7 @@ func init() { "_ByteWriter": reflect.ValueOf((*_io_ByteWriter)(nil)), "_Closer": reflect.ValueOf((*_io_Closer)(nil)), "_ReadCloser": reflect.ValueOf((*_io_ReadCloser)(nil)), + "_ReadSeekCloser": reflect.ValueOf((*_io_ReadSeekCloser)(nil)), "_ReadSeeker": reflect.ValueOf((*_io_ReadSeeker)(nil)), "_ReadWriteCloser": reflect.ValueOf((*_io_ReadWriteCloser)(nil)), "_ReadWriteSeeker": reflect.ValueOf((*_io_ReadWriteSeeker)(nil)), @@ -127,6 +132,19 @@ type _io_ReadCloser struct { func (W _io_ReadCloser) Close() error { return W.WClose() } func (W _io_ReadCloser) Read(p []byte) (n int, err error) { return W.WRead(p) } +// _io_ReadSeekCloser is an interface wrapper for ReadSeekCloser type +type _io_ReadSeekCloser struct { + WClose func() error + WRead func(p []byte) (n int, err error) + WSeek func(offset int64, whence int) (int64, error) +} + +func (W _io_ReadSeekCloser) Close() error { return W.WClose() } +func (W _io_ReadSeekCloser) Read(p []byte) (n int, err error) { return W.WRead(p) } +func (W _io_ReadSeekCloser) Seek(offset int64, whence int) (int64, error) { + return W.WSeek(offset, whence) +} + // _io_ReadSeeker is an interface wrapper for ReadSeeker type type _io_ReadSeeker struct { WRead func(p []byte) (n int, err error) diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_io_ioutil.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_io_ioutil.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_io_ioutil.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_io_ioutil.go index f9bed37..3796b9c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_io_ioutil.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_io_ioutil.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract io/ioutil'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_log.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_log.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_log.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_log.go index 3108749..c409ca2 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_log.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_log.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract log'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -14,6 +14,7 @@ import ( func init() { Symbols["log"] = map[string]reflect.Value{ // function, constant and variable definitions + "Default": reflect.ValueOf(log.Default), "Fatal": reflect.ValueOf(logFatal), "Fatalf": reflect.ValueOf(logFatalf), "Fatalln": reflect.ValueOf(logFatalln), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_log_syslog.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_log_syslog.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_log_syslog.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_log_syslog.go index a64ed6c..87d6250 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_log_syslog.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_log_syslog.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract log/syslog'. DO NOT EDIT. -// +build go1.14,!go1.15,!windows,!nacl,!plan9 +// +build go1.16,!windows,!nacl,!plan9 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_math.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_math.go index 3dcd923..4c5bf74 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math_big.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_big.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_math_big.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_math_big.go index b464374..6ee45a3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math_big.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_big.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math/big'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math_bits.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_bits.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_math_bits.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_math_bits.go index 70ff4ab..3f2296e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math_bits.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_bits.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math/bits'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math_cmplx.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_cmplx.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_math_cmplx.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_math_cmplx.go index 72f8e42..80a3dd8 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math_cmplx.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_cmplx.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math/cmplx'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math_rand.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_rand.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_math_rand.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_math_rand.go index 7ad0e77..ec56a75 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_math_rand.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_math_rand.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract math/rand'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_mime.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_mime.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_mime.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_mime.go index 54f7275..f50a118 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_mime.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_mime.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract mime'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_mime_multipart.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_mime_multipart.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_mime_multipart.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_mime_multipart.go index 57c9991..7aee147 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_mime_multipart.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_mime_multipart.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract mime/multipart'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_mime_quotedprintable.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_mime_quotedprintable.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_mime_quotedprintable.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_mime_quotedprintable.go index 5c695c4..9b8c08b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_mime_quotedprintable.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_mime_quotedprintable.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract mime/quotedprintable'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net.go index f0de3b9..335b054 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -23,6 +23,7 @@ func init() { "DialTimeout": reflect.ValueOf(net.DialTimeout), "DialUDP": reflect.ValueOf(net.DialUDP), "DialUnix": reflect.ValueOf(net.DialUnix), + "ErrClosed": reflect.ValueOf(&net.ErrClosed).Elem(), "ErrWriteToConnected": reflect.ValueOf(&net.ErrWriteToConnected).Elem(), "FileConn": reflect.ValueOf(net.FileConn), "FileListener": reflect.ValueOf(net.FileListener), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http.go index f9162f8..237fe44 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -8,10 +8,10 @@ import ( "bufio" "go/constant" "go/token" + "io/fs" "net" "net/http" "net/url" - "os" "reflect" ) @@ -47,6 +47,7 @@ func init() { "ErrUseLastResponse": reflect.ValueOf(&http.ErrUseLastResponse).Elem(), "ErrWriteAfterFlush": reflect.ValueOf(&http.ErrWriteAfterFlush).Elem(), "Error": reflect.ValueOf(http.Error), + "FS": reflect.ValueOf(http.FS), "FileServer": reflect.ValueOf(http.FileServer), "Get": reflect.ValueOf(http.Get), "Handle": reflect.ValueOf(http.Handle), @@ -227,16 +228,16 @@ func (W _net_http_CookieJar) SetCookies(u *url.URL, cookies []*http.Cookie) { type _net_http_File struct { WClose func() error WRead func(p []byte) (n int, err error) - WReaddir func(count int) ([]os.FileInfo, error) + WReaddir func(count int) ([]fs.FileInfo, error) WSeek func(offset int64, whence int) (int64, error) - WStat func() (os.FileInfo, error) + WStat func() (fs.FileInfo, error) } func (W _net_http_File) Close() error { return W.WClose() } func (W _net_http_File) Read(p []byte) (n int, err error) { return W.WRead(p) } -func (W _net_http_File) Readdir(count int) ([]os.FileInfo, error) { return W.WReaddir(count) } +func (W _net_http_File) Readdir(count int) ([]fs.FileInfo, error) { return W.WReaddir(count) } func (W _net_http_File) Seek(offset int64, whence int) (int64, error) { return W.WSeek(offset, whence) } -func (W _net_http_File) Stat() (os.FileInfo, error) { return W.WStat() } +func (W _net_http_File) Stat() (fs.FileInfo, error) { return W.WStat() } // _net_http_FileSystem is an interface wrapper for FileSystem type type _net_http_FileSystem struct { diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_cgi.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cgi.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_cgi.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cgi.go index a5ebd10..425b13a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_cgi.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cgi.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/cgi'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_cookiejar.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cookiejar.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_cookiejar.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cookiejar.go index 1d51a70..cd659fa 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_cookiejar.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cookiejar.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/cookiejar'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_fcgi.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_fcgi.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_fcgi.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_fcgi.go index c291c5f..36be1b2 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_fcgi.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_fcgi.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/fcgi'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httptest.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptest.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httptest.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptest.go index 134b4f2..3900102 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httptest.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptest.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/httptest'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httptrace.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptrace.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httptrace.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptrace.go index c2d8967..691d81b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httptrace.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptrace.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/httptrace'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httputil.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httputil.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httputil.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httputil.go index c08beb8..4b638d3 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_httputil.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httputil.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/httputil'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_pprof.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_pprof.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_pprof.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_pprof.go index 613a162..ec88495 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_http_pprof.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_pprof.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/http/pprof'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_mail.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_mail.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_mail.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_mail.go index 13cdf1f..5ee0ab6 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_mail.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_mail.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/mail'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_rpc.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_rpc.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_rpc.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_rpc.go index 56b1d7f..8c98b6f 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_rpc.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_rpc.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/rpc'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_rpc_jsonrpc.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_rpc_jsonrpc.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_rpc_jsonrpc.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_rpc_jsonrpc.go index 1c86c48..d79b3c6 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_rpc_jsonrpc.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_rpc_jsonrpc.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/rpc/jsonrpc'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_smtp.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_smtp.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_smtp.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_smtp.go index b050fad..6973ed0 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_smtp.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_smtp.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/smtp'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_textproto.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_textproto.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_textproto.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_textproto.go index d841e9e..507e4a0 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_textproto.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_textproto.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/textproto'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_url.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_url.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_net_url.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_net_url.go index 5d6408e..638e3c6 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_net_url.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_net_url.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract net/url'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_16_os.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_os.go new file mode 100644 index 0000000..cb9acdf --- /dev/null +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_os.go @@ -0,0 +1,180 @@ +// Code generated by 'yaegi extract os'. DO NOT EDIT. + +// +build go1.16 + +package stdlib + +import ( + "go/constant" + "go/token" + "io/fs" + "os" + "reflect" + "time" +) + +func init() { + Symbols["os"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Args": reflect.ValueOf(&os.Args).Elem(), + "Chdir": reflect.ValueOf(os.Chdir), + "Chmod": reflect.ValueOf(os.Chmod), + "Chown": reflect.ValueOf(os.Chown), + "Chtimes": reflect.ValueOf(os.Chtimes), + "Clearenv": reflect.ValueOf(os.Clearenv), + "Create": reflect.ValueOf(os.Create), + "CreateTemp": reflect.ValueOf(os.CreateTemp), + "DevNull": reflect.ValueOf(constant.MakeFromLiteral("\"/dev/null\"", token.STRING, 0)), + "DirFS": reflect.ValueOf(os.DirFS), + "Environ": reflect.ValueOf(os.Environ), + "ErrClosed": reflect.ValueOf(&os.ErrClosed).Elem(), + "ErrDeadlineExceeded": reflect.ValueOf(&os.ErrDeadlineExceeded).Elem(), + "ErrExist": reflect.ValueOf(&os.ErrExist).Elem(), + "ErrInvalid": reflect.ValueOf(&os.ErrInvalid).Elem(), + "ErrNoDeadline": reflect.ValueOf(&os.ErrNoDeadline).Elem(), + "ErrNotExist": reflect.ValueOf(&os.ErrNotExist).Elem(), + "ErrPermission": reflect.ValueOf(&os.ErrPermission).Elem(), + "ErrProcessDone": reflect.ValueOf(&os.ErrProcessDone).Elem(), + "Executable": reflect.ValueOf(os.Executable), + "Exit": reflect.ValueOf(osExit), + "Expand": reflect.ValueOf(os.Expand), + "ExpandEnv": reflect.ValueOf(os.ExpandEnv), + "FindProcess": reflect.ValueOf(osFindProcess), + "Getegid": reflect.ValueOf(os.Getegid), + "Getenv": reflect.ValueOf(os.Getenv), + "Geteuid": reflect.ValueOf(os.Geteuid), + "Getgid": reflect.ValueOf(os.Getgid), + "Getgroups": reflect.ValueOf(os.Getgroups), + "Getpagesize": reflect.ValueOf(os.Getpagesize), + "Getpid": reflect.ValueOf(os.Getpid), + "Getppid": reflect.ValueOf(os.Getppid), + "Getuid": reflect.ValueOf(os.Getuid), + "Getwd": reflect.ValueOf(os.Getwd), + "Hostname": reflect.ValueOf(os.Hostname), + "Interrupt": reflect.ValueOf(&os.Interrupt).Elem(), + "IsExist": reflect.ValueOf(os.IsExist), + "IsNotExist": reflect.ValueOf(os.IsNotExist), + "IsPathSeparator": reflect.ValueOf(os.IsPathSeparator), + "IsPermission": reflect.ValueOf(os.IsPermission), + "IsTimeout": reflect.ValueOf(os.IsTimeout), + "Kill": reflect.ValueOf(&os.Kill).Elem(), + "Lchown": reflect.ValueOf(os.Lchown), + "Link": reflect.ValueOf(os.Link), + "LookupEnv": reflect.ValueOf(os.LookupEnv), + "Lstat": reflect.ValueOf(os.Lstat), + "Mkdir": reflect.ValueOf(os.Mkdir), + "MkdirAll": reflect.ValueOf(os.MkdirAll), + "MkdirTemp": reflect.ValueOf(os.MkdirTemp), + "ModeAppend": reflect.ValueOf(os.ModeAppend), + "ModeCharDevice": reflect.ValueOf(os.ModeCharDevice), + "ModeDevice": reflect.ValueOf(os.ModeDevice), + "ModeDir": reflect.ValueOf(os.ModeDir), + "ModeExclusive": reflect.ValueOf(os.ModeExclusive), + "ModeIrregular": reflect.ValueOf(os.ModeIrregular), + "ModeNamedPipe": reflect.ValueOf(os.ModeNamedPipe), + "ModePerm": reflect.ValueOf(os.ModePerm), + "ModeSetgid": reflect.ValueOf(os.ModeSetgid), + "ModeSetuid": reflect.ValueOf(os.ModeSetuid), + "ModeSocket": reflect.ValueOf(os.ModeSocket), + "ModeSticky": reflect.ValueOf(os.ModeSticky), + "ModeSymlink": reflect.ValueOf(os.ModeSymlink), + "ModeTemporary": reflect.ValueOf(os.ModeTemporary), + "ModeType": reflect.ValueOf(os.ModeType), + "NewFile": reflect.ValueOf(os.NewFile), + "NewSyscallError": reflect.ValueOf(os.NewSyscallError), + "O_APPEND": reflect.ValueOf(os.O_APPEND), + "O_CREATE": reflect.ValueOf(os.O_CREATE), + "O_EXCL": reflect.ValueOf(os.O_EXCL), + "O_RDONLY": reflect.ValueOf(os.O_RDONLY), + "O_RDWR": reflect.ValueOf(os.O_RDWR), + "O_SYNC": reflect.ValueOf(os.O_SYNC), + "O_TRUNC": reflect.ValueOf(os.O_TRUNC), + "O_WRONLY": reflect.ValueOf(os.O_WRONLY), + "Open": reflect.ValueOf(os.Open), + "OpenFile": reflect.ValueOf(os.OpenFile), + "PathListSeparator": reflect.ValueOf(constant.MakeFromLiteral("58", token.INT, 0)), + "PathSeparator": reflect.ValueOf(constant.MakeFromLiteral("47", token.INT, 0)), + "Pipe": reflect.ValueOf(os.Pipe), + "ReadDir": reflect.ValueOf(os.ReadDir), + "ReadFile": reflect.ValueOf(os.ReadFile), + "Readlink": reflect.ValueOf(os.Readlink), + "Remove": reflect.ValueOf(os.Remove), + "RemoveAll": reflect.ValueOf(os.RemoveAll), + "Rename": reflect.ValueOf(os.Rename), + "SEEK_CUR": reflect.ValueOf(os.SEEK_CUR), + "SEEK_END": reflect.ValueOf(os.SEEK_END), + "SEEK_SET": reflect.ValueOf(os.SEEK_SET), + "SameFile": reflect.ValueOf(os.SameFile), + "Setenv": reflect.ValueOf(os.Setenv), + "StartProcess": reflect.ValueOf(os.StartProcess), + "Stat": reflect.ValueOf(os.Stat), + "Stderr": reflect.ValueOf(&os.Stderr).Elem(), + "Stdin": reflect.ValueOf(&os.Stdin).Elem(), + "Stdout": reflect.ValueOf(&os.Stdout).Elem(), + "Symlink": reflect.ValueOf(os.Symlink), + "TempDir": reflect.ValueOf(os.TempDir), + "Truncate": reflect.ValueOf(os.Truncate), + "Unsetenv": reflect.ValueOf(os.Unsetenv), + "UserCacheDir": reflect.ValueOf(os.UserCacheDir), + "UserConfigDir": reflect.ValueOf(os.UserConfigDir), + "UserHomeDir": reflect.ValueOf(os.UserHomeDir), + "WriteFile": reflect.ValueOf(os.WriteFile), + + // type definitions + "DirEntry": reflect.ValueOf((*os.DirEntry)(nil)), + "File": reflect.ValueOf((*os.File)(nil)), + "FileInfo": reflect.ValueOf((*os.FileInfo)(nil)), + "FileMode": reflect.ValueOf((*os.FileMode)(nil)), + "LinkError": reflect.ValueOf((*os.LinkError)(nil)), + "PathError": reflect.ValueOf((*os.PathError)(nil)), + "ProcAttr": reflect.ValueOf((*os.ProcAttr)(nil)), + "Process": reflect.ValueOf((*os.Process)(nil)), + "ProcessState": reflect.ValueOf((*os.ProcessState)(nil)), + "Signal": reflect.ValueOf((*os.Signal)(nil)), + "SyscallError": reflect.ValueOf((*os.SyscallError)(nil)), + + // interface wrapper definitions + "_DirEntry": reflect.ValueOf((*_os_DirEntry)(nil)), + "_FileInfo": reflect.ValueOf((*_os_FileInfo)(nil)), + "_Signal": reflect.ValueOf((*_os_Signal)(nil)), + } +} + +// _os_DirEntry is an interface wrapper for DirEntry type +type _os_DirEntry struct { + WInfo func() (fs.FileInfo, error) + WIsDir func() bool + WName func() string + WType func() fs.FileMode +} + +func (W _os_DirEntry) Info() (fs.FileInfo, error) { return W.WInfo() } +func (W _os_DirEntry) IsDir() bool { return W.WIsDir() } +func (W _os_DirEntry) Name() string { return W.WName() } +func (W _os_DirEntry) Type() fs.FileMode { return W.WType() } + +// _os_FileInfo is an interface wrapper for FileInfo type +type _os_FileInfo struct { + WIsDir func() bool + WModTime func() time.Time + WMode func() fs.FileMode + WName func() string + WSize func() int64 + WSys func() interface{} +} + +func (W _os_FileInfo) IsDir() bool { return W.WIsDir() } +func (W _os_FileInfo) ModTime() time.Time { return W.WModTime() } +func (W _os_FileInfo) Mode() fs.FileMode { return W.WMode() } +func (W _os_FileInfo) Name() string { return W.WName() } +func (W _os_FileInfo) Size() int64 { return W.WSize() } +func (W _os_FileInfo) Sys() interface{} { return W.WSys() } + +// _os_Signal is an interface wrapper for Signal type +type _os_Signal struct { + WSignal func() + WString func() string +} + +func (W _os_Signal) Signal() { W.WSignal() } +func (W _os_Signal) String() string { return W.WString() } diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_16_os_signal.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_os_signal.go new file mode 100644 index 0000000..94b36ff --- /dev/null +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_os_signal.go @@ -0,0 +1,22 @@ +// Code generated by 'yaegi extract os/signal'. DO NOT EDIT. + +// +build go1.16 + +package stdlib + +import ( + "os/signal" + "reflect" +) + +func init() { + Symbols["os/signal"] = map[string]reflect.Value{ + // function, constant and variable definitions + "Ignore": reflect.ValueOf(signal.Ignore), + "Ignored": reflect.ValueOf(signal.Ignored), + "Notify": reflect.ValueOf(signal.Notify), + "NotifyContext": reflect.ValueOf(signal.NotifyContext), + "Reset": reflect.ValueOf(signal.Reset), + "Stop": reflect.ValueOf(signal.Stop), + } +} diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_os_user.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_os_user.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_os_user.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_os_user.go index 77e2697..5009517 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_os_user.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_os_user.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract os/user'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_path.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_path.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_path.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_path.go index 9ae76cc..088b93d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_path.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_path.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract path'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_path_filepath.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_path_filepath.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_path_filepath.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_path_filepath.go index 3689620..a274377 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_path_filepath.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_path_filepath.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract path/filepath'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -36,6 +36,7 @@ func init() { "ToSlash": reflect.ValueOf(filepath.ToSlash), "VolumeName": reflect.ValueOf(filepath.VolumeName), "Walk": reflect.ValueOf(filepath.Walk), + "WalkDir": reflect.ValueOf(filepath.WalkDir), // type definitions "WalkFunc": reflect.ValueOf((*filepath.WalkFunc)(nil)), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_reflect.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_reflect.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_reflect.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_reflect.go index 2d62033..827d0c1 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_reflect.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_reflect.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract reflect'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_regexp.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_regexp.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_regexp.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_regexp.go index 70a24ad..af97f28 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_regexp.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_regexp.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract regexp'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_regexp_syntax.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_regexp_syntax.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_regexp_syntax.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_regexp_syntax.go index 0599785..ff41131 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_regexp_syntax.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_regexp_syntax.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract regexp/syntax'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime.go index 576ed78..50cc147 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract runtime'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_debug.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_debug.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_debug.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_debug.go index 904836a..398dd6a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_debug.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_debug.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract runtime/debug'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_pprof.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_pprof.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_pprof.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_pprof.go index 04cec87..e20a82a 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_pprof.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_pprof.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract runtime/pprof'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_trace.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_trace.go similarity index 96% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_trace.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_trace.go index a72d007..78e82d5 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_runtime_trace.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_trace.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_sort.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_sort.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_sort.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_sort.go index 579133a..0d5fb82 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_sort.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_sort.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract sort'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_strconv.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_strconv.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_strconv.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_strconv.go index d34df3d..94d1889 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_strconv.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_strconv.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract strconv'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -29,6 +29,7 @@ func init() { "ErrRange": reflect.ValueOf(&strconv.ErrRange).Elem(), "ErrSyntax": reflect.ValueOf(&strconv.ErrSyntax).Elem(), "FormatBool": reflect.ValueOf(strconv.FormatBool), + "FormatComplex": reflect.ValueOf(strconv.FormatComplex), "FormatFloat": reflect.ValueOf(strconv.FormatFloat), "FormatInt": reflect.ValueOf(strconv.FormatInt), "FormatUint": reflect.ValueOf(strconv.FormatUint), @@ -37,6 +38,7 @@ func init() { "IsPrint": reflect.ValueOf(strconv.IsPrint), "Itoa": reflect.ValueOf(strconv.Itoa), "ParseBool": reflect.ValueOf(strconv.ParseBool), + "ParseComplex": reflect.ValueOf(strconv.ParseComplex), "ParseFloat": reflect.ValueOf(strconv.ParseFloat), "ParseInt": reflect.ValueOf(strconv.ParseInt), "ParseUint": reflect.ValueOf(strconv.ParseUint), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_strings.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_strings.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_strings.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_strings.go index 6a42105..f155416 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_strings.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_strings.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract strings'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_sync.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_sync.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_sync.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_sync.go index dba722a..ff0c11b 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_sync.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_sync.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract sync'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_sync_atomic.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_sync_atomic.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_sync_atomic.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_sync_atomic.go index 98b4149..0d7c2b5 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_sync_atomic.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_sync_atomic.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract sync/atomic'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_testing.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing.go similarity index 51% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_testing.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_testing.go index 11eadd2..2dabb01 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_testing.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract testing'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -47,36 +47,38 @@ func init() { // _testing_TB is an interface wrapper for TB type type _testing_TB struct { WCleanup func(a0 func()) - WError func(args []interface{}) - WErrorf func(format string, args []interface{}) + WError func(args ...interface{}) + WErrorf func(format string, args ...interface{}) WFail func() WFailNow func() WFailed func() bool - WFatal func(args []interface{}) - WFatalf func(format string, args []interface{}) + WFatal func(args ...interface{}) + WFatalf func(format string, args ...interface{}) WHelper func() - WLog func(args []interface{}) - WLogf func(format string, args []interface{}) + WLog func(args ...interface{}) + WLogf func(format string, args ...interface{}) WName func() string - WSkip func(args []interface{}) + WSkip func(args ...interface{}) WSkipNow func() - WSkipf func(format string, args []interface{}) + WSkipf func(format string, args ...interface{}) WSkipped func() bool + WTempDir func() string } -func (W _testing_TB) Cleanup(a0 func()) { W.WCleanup(a0) } -func (W _testing_TB) Error(args []interface{}) { W.WError(args) } -func (W _testing_TB) Errorf(format string, args []interface{}) { W.WErrorf(format, args) } -func (W _testing_TB) Fail() { W.WFail() } -func (W _testing_TB) FailNow() { W.WFailNow() } -func (W _testing_TB) Failed() bool { return W.WFailed() } -func (W _testing_TB) Fatal(args []interface{}) { W.WFatal(args) } -func (W _testing_TB) Fatalf(format string, args []interface{}) { W.WFatalf(format, args) } -func (W _testing_TB) Helper() { W.WHelper() } -func (W _testing_TB) Log(args []interface{}) { W.WLog(args) } -func (W _testing_TB) Logf(format string, args []interface{}) { W.WLogf(format, args) } -func (W _testing_TB) Name() string { return W.WName() } -func (W _testing_TB) Skip(args []interface{}) { W.WSkip(args) } -func (W _testing_TB) SkipNow() { W.WSkipNow() } -func (W _testing_TB) Skipf(format string, args []interface{}) { W.WSkipf(format, args) } -func (W _testing_TB) Skipped() bool { return W.WSkipped() } +func (W _testing_TB) Cleanup(a0 func()) { W.WCleanup(a0) } +func (W _testing_TB) Error(args ...interface{}) { W.WError(args...) } +func (W _testing_TB) Errorf(format string, args ...interface{}) { W.WErrorf(format, args...) } +func (W _testing_TB) Fail() { W.WFail() } +func (W _testing_TB) FailNow() { W.WFailNow() } +func (W _testing_TB) Failed() bool { return W.WFailed() } +func (W _testing_TB) Fatal(args ...interface{}) { W.WFatal(args...) } +func (W _testing_TB) Fatalf(format string, args ...interface{}) { W.WFatalf(format, args...) } +func (W _testing_TB) Helper() { W.WHelper() } +func (W _testing_TB) Log(args ...interface{}) { W.WLog(args...) } +func (W _testing_TB) Logf(format string, args ...interface{}) { W.WLogf(format, args...) } +func (W _testing_TB) Name() string { return W.WName() } +func (W _testing_TB) Skip(args ...interface{}) { W.WSkip(args...) } +func (W _testing_TB) SkipNow() { W.WSkipNow() } +func (W _testing_TB) Skipf(format string, args ...interface{}) { W.WSkipf(format, args...) } +func (W _testing_TB) Skipped() bool { return W.WSkipped() } +func (W _testing_TB) TempDir() string { return W.WTempDir() } diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_testing_iotest.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_iotest.go similarity index 84% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_testing_iotest.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_iotest.go index 89db80e..7c852fb 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_testing_iotest.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_iotest.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract testing/iotest'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -13,11 +13,13 @@ func init() { Symbols["testing/iotest"] = map[string]reflect.Value{ // function, constant and variable definitions "DataErrReader": reflect.ValueOf(iotest.DataErrReader), + "ErrReader": reflect.ValueOf(iotest.ErrReader), "ErrTimeout": reflect.ValueOf(&iotest.ErrTimeout).Elem(), "HalfReader": reflect.ValueOf(iotest.HalfReader), "NewReadLogger": reflect.ValueOf(iotest.NewReadLogger), "NewWriteLogger": reflect.ValueOf(iotest.NewWriteLogger), "OneByteReader": reflect.ValueOf(iotest.OneByteReader), + "TestReader": reflect.ValueOf(iotest.TestReader), "TimeoutReader": reflect.ValueOf(iotest.TimeoutReader), "TruncateWriter": reflect.ValueOf(iotest.TruncateWriter), } diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_testing_quick.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_quick.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_testing_quick.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_quick.go index a9baf47..34be869 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_testing_quick.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_quick.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract testing/quick'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_text_scanner.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_scanner.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_text_scanner.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_text_scanner.go index 6ef741c..8d8562c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_text_scanner.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_scanner.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract text/scanner'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_text_tabwriter.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_tabwriter.go similarity index 97% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_text_tabwriter.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_text_tabwriter.go index 5a5d1a1..c86930e 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_text_tabwriter.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_tabwriter.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract text/tabwriter'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_text_template.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_template.go similarity index 94% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_text_template.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_text_template.go index 381aaae..f15e830 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_text_template.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_template.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract text/template'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -21,6 +21,7 @@ func init() { "JSEscaper": reflect.ValueOf(template.JSEscaper), "Must": reflect.ValueOf(template.Must), "New": reflect.ValueOf(template.New), + "ParseFS": reflect.ValueOf(template.ParseFS), "ParseFiles": reflect.ValueOf(template.ParseFiles), "ParseGlob": reflect.ValueOf(template.ParseGlob), "URLQueryEscaper": reflect.ValueOf(template.URLQueryEscaper), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_text_template_parse.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_template_parse.go similarity index 93% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_text_template_parse.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_text_template_parse.go index 0ef93a7..0f57b17 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_text_template_parse.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_text_template_parse.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract text/template/parse'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -19,6 +19,7 @@ func init() { "NodeBool": reflect.ValueOf(parse.NodeBool), "NodeChain": reflect.ValueOf(parse.NodeChain), "NodeCommand": reflect.ValueOf(parse.NodeCommand), + "NodeComment": reflect.ValueOf(parse.NodeComment), "NodeDot": reflect.ValueOf(parse.NodeDot), "NodeField": reflect.ValueOf(parse.NodeField), "NodeIdentifier": reflect.ValueOf(parse.NodeIdentifier), @@ -34,6 +35,7 @@ func init() { "NodeVariable": reflect.ValueOf(parse.NodeVariable), "NodeWith": reflect.ValueOf(parse.NodeWith), "Parse": reflect.ValueOf(parse.Parse), + "ParseComments": reflect.ValueOf(parse.ParseComments), // type definitions "ActionNode": reflect.ValueOf((*parse.ActionNode)(nil)), @@ -41,11 +43,13 @@ func init() { "BranchNode": reflect.ValueOf((*parse.BranchNode)(nil)), "ChainNode": reflect.ValueOf((*parse.ChainNode)(nil)), "CommandNode": reflect.ValueOf((*parse.CommandNode)(nil)), + "CommentNode": reflect.ValueOf((*parse.CommentNode)(nil)), "DotNode": reflect.ValueOf((*parse.DotNode)(nil)), "FieldNode": reflect.ValueOf((*parse.FieldNode)(nil)), "IdentifierNode": reflect.ValueOf((*parse.IdentifierNode)(nil)), "IfNode": reflect.ValueOf((*parse.IfNode)(nil)), "ListNode": reflect.ValueOf((*parse.ListNode)(nil)), + "Mode": reflect.ValueOf((*parse.Mode)(nil)), "NilNode": reflect.ValueOf((*parse.NilNode)(nil)), "Node": reflect.ValueOf((*parse.Node)(nil)), "NodeType": reflect.ValueOf((*parse.NodeType)(nil)), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_time.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_time.go similarity index 99% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_time.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_time.go index 250695c..eed219d 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_time.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_time.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract time'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode.go index c10803d..f706b44 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract unicode'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib @@ -45,6 +45,7 @@ func init() { "Chakma": reflect.ValueOf(&unicode.Chakma).Elem(), "Cham": reflect.ValueOf(&unicode.Cham).Elem(), "Cherokee": reflect.ValueOf(&unicode.Cherokee).Elem(), + "Chorasmian": reflect.ValueOf(&unicode.Chorasmian).Elem(), "Co": reflect.ValueOf(&unicode.Co).Elem(), "Common": reflect.ValueOf(&unicode.Common).Elem(), "Coptic": reflect.ValueOf(&unicode.Coptic).Elem(), @@ -58,6 +59,7 @@ func init() { "Devanagari": reflect.ValueOf(&unicode.Devanagari).Elem(), "Diacritic": reflect.ValueOf(&unicode.Diacritic).Elem(), "Digit": reflect.ValueOf(&unicode.Digit).Elem(), + "Dives_Akuru": reflect.ValueOf(&unicode.Dives_Akuru).Elem(), "Dogra": reflect.ValueOf(&unicode.Dogra).Elem(), "Duployan": reflect.ValueOf(&unicode.Duployan).Elem(), "Egyptian_Hieroglyphs": reflect.ValueOf(&unicode.Egyptian_Hieroglyphs).Elem(), @@ -115,6 +117,7 @@ func init() { "Katakana": reflect.ValueOf(&unicode.Katakana).Elem(), "Kayah_Li": reflect.ValueOf(&unicode.Kayah_Li).Elem(), "Kharoshthi": reflect.ValueOf(&unicode.Kharoshthi).Elem(), + "Khitan_Small_Script": reflect.ValueOf(&unicode.Khitan_Small_Script).Elem(), "Khmer": reflect.ValueOf(&unicode.Khmer).Elem(), "Khojki": reflect.ValueOf(&unicode.Khojki).Elem(), "Khudawadi": reflect.ValueOf(&unicode.Khudawadi).Elem(), @@ -279,10 +282,11 @@ func init() { "UpperLower": reflect.ValueOf(constant.MakeFromLiteral("1114112", token.INT, 0)), "Vai": reflect.ValueOf(&unicode.Vai).Elem(), "Variation_Selector": reflect.ValueOf(&unicode.Variation_Selector).Elem(), - "Version": reflect.ValueOf(constant.MakeFromLiteral("\"12.0.0\"", token.STRING, 0)), + "Version": reflect.ValueOf(constant.MakeFromLiteral("\"13.0.0\"", token.STRING, 0)), "Wancho": reflect.ValueOf(&unicode.Wancho).Elem(), "Warang_Citi": reflect.ValueOf(&unicode.Warang_Citi).Elem(), "White_Space": reflect.ValueOf(&unicode.White_Space).Elem(), + "Yezidi": reflect.ValueOf(&unicode.Yezidi).Elem(), "Yi": reflect.ValueOf(&unicode.Yi).Elem(), "Z": reflect.ValueOf(&unicode.Z).Elem(), "Zanabazar_Square": reflect.ValueOf(&unicode.Zanabazar_Square).Elem(), diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode_utf16.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf16.go similarity index 95% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode_utf16.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf16.go index 27ab67f..5df6c63 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode_utf16.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf16.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract unicode/utf16'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode_utf8.go b/vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf8.go similarity index 98% rename from vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode_utf8.go rename to vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf8.go index a62dd59..98d1c9c 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/go1_14_unicode_utf8.go +++ b/vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf8.go @@ -1,6 +1,6 @@ // Code generated by 'yaegi extract unicode/utf8'. DO NOT EDIT. -// +build go1.14,!go1.15 +// +build go1.16 package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/stdlib.go b/vendor/github.com/traefik/yaegi/stdlib/stdlib.go index b23bc3e..2e24e73 100644 --- a/vendor/github.com/traefik/yaegi/stdlib/stdlib.go +++ b/vendor/github.com/traefik/yaegi/stdlib/stdlib.go @@ -1,4 +1,4 @@ -// +build go1.14 +// +build go1.15 // Package stdlib provides wrappers of standard library packages to be imported natively in Yaegi. package stdlib diff --git a/vendor/github.com/traefik/yaegi/stdlib/stdlib_go1.16.go b/vendor/github.com/traefik/yaegi/stdlib/stdlib_go1.16.go new file mode 100644 index 0000000..967e052 --- /dev/null +++ b/vendor/github.com/traefik/yaegi/stdlib/stdlib_go1.16.go @@ -0,0 +1,5 @@ +// +build go1.16 + +package stdlib + +//go:generate ../internal/cmd/extract/extract embed diff --git a/vendor/modules.txt b/vendor/modules.txt index 9591b89..1b982ae 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -9,7 +9,7 @@ github.com/pmezard/go-difflib/difflib ## explicit github.com/stretchr/testify/assert github.com/stretchr/testify/require -# github.com/traefik/yaegi v0.9.10 +# github.com/traefik/yaegi v0.9.16 ## explicit github.com/traefik/yaegi/interp github.com/traefik/yaegi/stdlib