├── .github ├── FUNDING.yml ├── PULL_REQUEST_TEMPLATE.md ├── dependabot.yml ├── labeler.yml ├── release-drafter.yml └── workflows │ ├── pull_request_target_opened.yml │ └── push.yml ├── .gitignore ├── .golangci.yml ├── LICENSE ├── Makefile ├── README.md ├── clear.go ├── clear_expect_body_gen.go ├── clear_expect_body_json_gen.go ├── clear_expect_body_jsonjq_gen.go ├── clear_expect_bytes_gen.go ├── clear_expect_float32_gen.go ├── clear_expect_float64_gen.go ├── clear_expect_form_values_gen.go ├── clear_expect_gen.go ├── clear_expect_header_value_gen.go ├── clear_expect_headers_gen.go ├── clear_expect_int16_gen.go ├── clear_expect_int32_gen.go ├── clear_expect_int64_gen.go ├── clear_expect_int8_gen.go ├── clear_expect_int_gen.go ├── clear_expect_string_gen.go ├── clear_expect_uint16_gen.go ├── clear_expect_uint32_gen.go ├── clear_expect_uint64_gen.go ├── clear_expect_uint8_gen.go ├── clear_expect_uint_gen.go ├── clear_gen_test.go ├── clear_send_body_gen.go ├── clear_send_form_values_gen.go ├── clear_send_gen.go ├── clear_send_headers_gen.go ├── clear_test.go ├── clearpath.go ├── clearpath_test.go ├── debug.go ├── debug_body.go ├── debug_body_json.go ├── debug_header.go ├── debug_header_test.go ├── debug_request.go ├── debug_request_test.go ├── debug_response.go ├── debug_response_test.go ├── debug_test.go ├── doctest ├── implicit │ └── implicit.go ├── server │ └── server.go ├── testhelper.go └── testhelper_test.go ├── dummy_clear.go ├── dummy_expect.go ├── errors.go ├── errors_test.go ├── errortrace ├── call.go ├── errortrace.go └── errortrace_test.go ├── examples ├── hash │ └── example_hash_test.go └── simple │ └── simple_test.go ├── expect.go ├── expect_body.go ├── expect_body_bytes_test.go ├── expect_body_float32_test.go ├── expect_body_float64_test.go ├── expect_body_int16_test.go ├── expect_body_int32_test.go ├── expect_body_int64_test.go ├── expect_body_int8_test.go ├── expect_body_int_test.go ├── expect_body_json.go ├── expect_body_json_jq.go ├── expect_body_json_jq_test.go ├── expect_body_json_test.go ├── expect_body_string_test.go ├── expect_body_test.go ├── expect_body_uint16_test.go ├── expect_body_uint32_test.go ├── expect_body_uint64_test.go ├── expect_body_uint8_test.go ├── expect_body_uint_test.go ├── expect_bytes.go ├── expect_float32_gen.go ├── expect_float64_gen.go ├── expect_formvalues.go ├── expect_formvalues_test.go ├── expect_header.go ├── expect_header_trailer_test.go ├── expect_header_trailer_value_test.go ├── expect_header_value.go ├── expect_int16_gen.go ├── expect_int32_gen.go ├── expect_int64_gen.go ├── expect_int8_gen.go ├── expect_int_gen.go ├── expect_status_test.go ├── expect_string.go ├── expect_test.go ├── expect_uint16_gen.go ├── expect_uint32_gen.go ├── expect_uint64_gen.go ├── expect_uint8_gen.go ├── expect_uint_gen.go ├── export_test.go ├── generators ├── clear │ ├── clear │ │ └── clear.go │ └── tests │ │ └── clear_tests.go ├── doc │ └── doc.go ├── expect │ └── numeric │ │ └── numeric.go ├── helpers │ └── helpers.go └── readme │ └── readme.go ├── go.mod ├── go.sum ├── helpers_test.go ├── hit.go ├── hit_test.go ├── http_request.go ├── http_response.go ├── httpbody ├── body_decoder.go ├── const.go ├── http_body.go ├── http_body_json.go ├── http_body_json_test.go ├── http_body_test.go ├── http_body_xml.go ├── http_body_xml_test.go └── url_values.go ├── integrity_test.go ├── internal ├── converter │ └── converter.go ├── minitest │ ├── contains │ │ ├── contains.go │ │ └── contains_test.go │ ├── error.go │ ├── format.go │ └── minitest.go └── misc │ ├── misc.go │ └── misc_test.go ├── localhelpers.go ├── method_test.go ├── readme_gen_test.go ├── request.go ├── request_url.go ├── request_url_query.go ├── request_url_test.go ├── request_url_user.go ├── send.go ├── send_body.go ├── send_body_test.go ├── send_formvalues.go ├── send_header.go ├── send_test.go ├── static.go ├── step.go ├── store.go ├── store_body.go ├── store_body_json.go ├── store_body_test.go ├── store_header_trailers_test.go ├── store_request.go ├── store_request_test.go ├── store_response.go ├── store_response_test.go ├── store_url.go ├── store_userinfo.go ├── testingT.go ├── todo.txt └── vendor ├── github.com ├── Eun │ ├── go-convert │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── README.md.template │ │ ├── bool.go │ │ ├── convert.go │ │ ├── converter.go │ │ ├── debug.go │ │ ├── float32.go │ │ ├── float64.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── int.go │ │ ├── int16.go │ │ ├── int32.go │ │ ├── int64.go │ │ ├── int8.go │ │ ├── map.go │ │ ├── option.go │ │ ├── recipe.go │ │ ├── recipes.go │ │ ├── slice.go │ │ ├── string.go │ │ ├── struct.go │ │ ├── time.go │ │ ├── uint.go │ │ ├── uint16.go │ │ ├── uint32.go │ │ ├── uint64.go │ │ └── uint8.go │ ├── go-doppelgangerreader │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── doppelganger.go │ ├── go-testdoc │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── docparse.go │ │ ├── go.mod │ │ ├── go.sum │ │ └── testdoc.go │ └── yaegi-template │ │ ├── .gitignore │ │ ├── .golangci.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── codebuffer │ │ ├── cache_iterator.go │ │ ├── code_buffer.go │ │ └── live_iterator.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── import_symbol.go │ │ ├── output_buffer.go │ │ └── template.go ├── aaw │ └── maybe_tls │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── conn.go │ │ └── listener.go ├── araddon │ └── dateparse │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ └── parseany.go ├── dave │ └── jennifer │ │ ├── LICENSE │ │ └── jen │ │ ├── add.go │ │ ├── comments.go │ │ ├── custom.go │ │ ├── dict.go │ │ ├── do.go │ │ ├── file.go │ │ ├── generated.go │ │ ├── generics.go │ │ ├── group.go │ │ ├── hints.go │ │ ├── jen.go │ │ ├── lit.go │ │ ├── reserved.go │ │ ├── statement.go │ │ ├── tag.go │ │ └── tokens.go ├── davecgh │ └── go-spew │ │ ├── LICENSE │ │ └── spew │ │ ├── bypass.go │ │ ├── bypasssafe.go │ │ ├── common.go │ │ ├── config.go │ │ ├── doc.go │ │ ├── dump.go │ │ ├── format.go │ │ └── spew.go ├── google │ └── go-cmp │ │ ├── LICENSE │ │ └── cmp │ │ ├── compare.go │ │ ├── export.go │ │ ├── internal │ │ ├── diff │ │ │ ├── debug_disable.go │ │ │ ├── debug_enable.go │ │ │ └── diff.go │ │ ├── flags │ │ │ └── flags.go │ │ ├── function │ │ │ └── func.go │ │ └── value │ │ │ ├── name.go │ │ │ ├── pointer.go │ │ │ └── sort.go │ │ ├── options.go │ │ ├── path.go │ │ ├── report.go │ │ ├── report_compare.go │ │ ├── report_references.go │ │ ├── report_reflect.go │ │ ├── report_slices.go │ │ ├── report_text.go │ │ └── report_value.go ├── gookit │ └── color │ │ ├── .gitignore │ │ ├── .nojekyll │ │ ├── LICENSE │ │ ├── README.md │ │ ├── README.zh-CN.md │ │ ├── color.go │ │ ├── color_16.go │ │ ├── color_256.go │ │ ├── color_rgb.go │ │ ├── color_tag.go │ │ ├── convert.go │ │ ├── detect_env.go │ │ ├── detect_nonwin.go │ │ ├── detect_windows.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── index.html │ │ ├── printer.go │ │ ├── quickstart.go │ │ ├── style.go │ │ └── utils.go ├── gorilla │ └── mux │ │ ├── .editorconfig │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── doc.go │ │ ├── go.mod │ │ ├── middleware.go │ │ ├── mux.go │ │ ├── regexp.go │ │ ├── route.go │ │ └── test_helpers.go ├── hashicorp │ ├── errwrap │ │ ├── LICENSE │ │ ├── README.md │ │ ├── errwrap.go │ │ └── go.mod │ └── go-multierror │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── append.go │ │ ├── flatten.go │ │ ├── format.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── group.go │ │ ├── multierror.go │ │ ├── prefix.go │ │ └── sort.go ├── itchyny │ ├── gojq │ │ ├── .dockerignore │ │ ├── .gitattributes │ │ ├── .gitignore │ │ ├── CHANGELOG.md │ │ ├── Dockerfile │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── _gojq │ │ ├── builtin.go │ │ ├── builtin.jq │ │ ├── code.go │ │ ├── compare.go │ │ ├── compiler.go │ │ ├── debug.go │ │ ├── encoder.go │ │ ├── env.go │ │ ├── error.go │ │ ├── execute.go │ │ ├── func.go │ │ ├── go.dev.mod │ │ ├── go.dev.sum │ │ ├── go.mod │ │ ├── go.sum │ │ ├── gojq.go │ │ ├── iter.go │ │ ├── lexer.go │ │ ├── math.go │ │ ├── module_loader.go │ │ ├── normalize.go │ │ ├── operator.go │ │ ├── option.go │ │ ├── parser.go │ │ ├── parser.go.y │ │ ├── prepend.go │ │ ├── query.go │ │ ├── release.go │ │ ├── scope_stack.go │ │ ├── stack.go │ │ └── term_type.go │ └── timefmt-go │ │ ├── CHANGELOG.md │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── format.go │ │ ├── go.mod │ │ └── parse.go ├── json-iterator │ └── go │ │ ├── .codecov.yml │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── Gopkg.lock │ │ ├── Gopkg.toml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── adapter.go │ │ ├── any.go │ │ ├── any_array.go │ │ ├── any_bool.go │ │ ├── any_float.go │ │ ├── any_int32.go │ │ ├── any_int64.go │ │ ├── any_invalid.go │ │ ├── any_nil.go │ │ ├── any_number.go │ │ ├── any_object.go │ │ ├── any_str.go │ │ ├── any_uint32.go │ │ ├── any_uint64.go │ │ ├── build.sh │ │ ├── config.go │ │ ├── fuzzy_mode_convert_table.md │ │ ├── go.mod │ │ ├── go.sum │ │ ├── iter.go │ │ ├── iter_array.go │ │ ├── iter_float.go │ │ ├── iter_int.go │ │ ├── iter_object.go │ │ ├── iter_skip.go │ │ ├── iter_skip_sloppy.go │ │ ├── iter_skip_strict.go │ │ ├── iter_str.go │ │ ├── jsoniter.go │ │ ├── pool.go │ │ ├── reflect.go │ │ ├── reflect_array.go │ │ ├── reflect_dynamic.go │ │ ├── reflect_extension.go │ │ ├── reflect_json_number.go │ │ ├── reflect_json_raw_message.go │ │ ├── reflect_map.go │ │ ├── reflect_marshaler.go │ │ ├── reflect_native.go │ │ ├── reflect_optional.go │ │ ├── reflect_slice.go │ │ ├── reflect_struct_decoder.go │ │ ├── reflect_struct_encoder.go │ │ ├── stream.go │ │ ├── stream_float.go │ │ ├── stream_int.go │ │ ├── stream_str.go │ │ └── test.sh ├── k0kubun │ └── pp │ │ ├── CHANGELOG.md │ │ ├── LICENSE.txt │ │ ├── README.md │ │ ├── color.go │ │ ├── pp.go │ │ ├── printer.go │ │ └── wercker.yml ├── lunixbochs │ └── vtclean │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── go.mod │ │ ├── io.go │ │ ├── line.go │ │ └── vtclean.go ├── mattn │ ├── go-colorable │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── colorable_appengine.go │ │ ├── colorable_others.go │ │ ├── colorable_windows.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── go.test.sh │ │ └── noncolorable.go │ └── go-isatty │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── doc.go │ │ ├── go.mod │ │ ├── go.sum │ │ ├── go.test.sh │ │ ├── isatty_bsd.go │ │ ├── isatty_others.go │ │ ├── isatty_plan9.go │ │ ├── isatty_solaris.go │ │ ├── isatty_tcgets.go │ │ └── isatty_windows.go ├── modern-go │ ├── concurrent │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── executor.go │ │ ├── go_above_19.go │ │ ├── go_below_19.go │ │ ├── log.go │ │ ├── test.sh │ │ └── unbounded_executor.go │ └── reflect2 │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── Gopkg.lock │ │ ├── Gopkg.toml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── go.mod │ │ ├── go_above_118.go │ │ ├── go_above_19.go │ │ ├── go_below_118.go │ │ ├── reflect2.go │ │ ├── reflect2_amd64.s │ │ ├── reflect2_kind.go │ │ ├── relfect2_386.s │ │ ├── relfect2_amd64p32.s │ │ ├── relfect2_arm.s │ │ ├── relfect2_arm64.s │ │ ├── relfect2_mips64x.s │ │ ├── relfect2_mipsx.s │ │ ├── relfect2_ppc64x.s │ │ ├── relfect2_s390x.s │ │ ├── safe_field.go │ │ ├── safe_map.go │ │ ├── safe_slice.go │ │ ├── safe_struct.go │ │ ├── safe_type.go │ │ ├── type_map.go │ │ ├── unsafe_array.go │ │ ├── unsafe_eface.go │ │ ├── unsafe_field.go │ │ ├── unsafe_iface.go │ │ ├── unsafe_link.go │ │ ├── unsafe_map.go │ │ ├── unsafe_ptr.go │ │ ├── unsafe_slice.go │ │ ├── unsafe_struct.go │ │ └── unsafe_type.go ├── pkg │ └── errors │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── Makefile │ │ ├── README.md │ │ ├── appveyor.yml │ │ ├── errors.go │ │ ├── go113.go │ │ └── stack.go ├── pmezard │ └── go-difflib │ │ ├── LICENSE │ │ └── difflib │ │ └── difflib.go ├── stretchr │ └── testify │ │ ├── LICENSE │ │ ├── assert │ │ ├── assertion_compare.go │ │ ├── assertion_compare_can_convert.go │ │ ├── assertion_compare_legacy.go │ │ ├── assertion_format.go │ │ ├── assertion_format.go.tmpl │ │ ├── assertion_forward.go │ │ ├── assertion_forward.go.tmpl │ │ ├── assertion_order.go │ │ ├── assertions.go │ │ ├── doc.go │ │ ├── errors.go │ │ ├── forward_assertions.go │ │ └── http_assertions.go │ │ └── require │ │ ├── doc.go │ │ ├── forward_requirements.go │ │ ├── require.go │ │ ├── require.go.tmpl │ │ ├── require_forward.go │ │ ├── require_forward.go.tmpl │ │ └── requirements.go ├── tidwall │ └── pretty │ │ ├── LICENSE │ │ ├── README.md │ │ ├── go.mod │ │ └── pretty.go ├── traefik │ └── yaegi │ │ ├── LICENSE │ │ ├── interp │ │ ├── ast.go │ │ ├── build.go │ │ ├── cfg.go │ │ ├── doc.go │ │ ├── dot.go │ │ ├── gta.go │ │ ├── hooks.go │ │ ├── interp.go │ │ ├── op.go │ │ ├── run.go │ │ ├── scope.go │ │ ├── src.go │ │ ├── type.go │ │ ├── typecheck.go │ │ └── value.go │ │ └── stdlib │ │ ├── go1_15_archive_tar.go │ │ ├── go1_15_archive_zip.go │ │ ├── go1_15_bufio.go │ │ ├── go1_15_bytes.go │ │ ├── go1_15_compress_bzip2.go │ │ ├── go1_15_compress_flate.go │ │ ├── go1_15_compress_gzip.go │ │ ├── go1_15_compress_lzw.go │ │ ├── go1_15_compress_zlib.go │ │ ├── go1_15_container_heap.go │ │ ├── go1_15_container_list.go │ │ ├── go1_15_container_ring.go │ │ ├── go1_15_context.go │ │ ├── go1_15_crypto.go │ │ ├── go1_15_crypto_aes.go │ │ ├── go1_15_crypto_cipher.go │ │ ├── go1_15_crypto_des.go │ │ ├── go1_15_crypto_dsa.go │ │ ├── go1_15_crypto_ecdsa.go │ │ ├── go1_15_crypto_ed25519.go │ │ ├── go1_15_crypto_elliptic.go │ │ ├── go1_15_crypto_hmac.go │ │ ├── go1_15_crypto_md5.go │ │ ├── go1_15_crypto_rand.go │ │ ├── go1_15_crypto_rc4.go │ │ ├── go1_15_crypto_rsa.go │ │ ├── go1_15_crypto_sha1.go │ │ ├── go1_15_crypto_sha256.go │ │ ├── go1_15_crypto_sha512.go │ │ ├── go1_15_crypto_subtle.go │ │ ├── go1_15_crypto_tls.go │ │ ├── go1_15_crypto_x509.go │ │ ├── go1_15_crypto_x509_pkix.go │ │ ├── go1_15_database_sql.go │ │ ├── go1_15_database_sql_driver.go │ │ ├── go1_15_debug_dwarf.go │ │ ├── go1_15_debug_elf.go │ │ ├── go1_15_debug_gosym.go │ │ ├── go1_15_debug_macho.go │ │ ├── go1_15_debug_pe.go │ │ ├── go1_15_debug_plan9obj.go │ │ ├── go1_15_encoding.go │ │ ├── go1_15_encoding_ascii85.go │ │ ├── go1_15_encoding_asn1.go │ │ ├── go1_15_encoding_base32.go │ │ ├── go1_15_encoding_base64.go │ │ ├── go1_15_encoding_binary.go │ │ ├── go1_15_encoding_csv.go │ │ ├── go1_15_encoding_gob.go │ │ ├── go1_15_encoding_hex.go │ │ ├── go1_15_encoding_json.go │ │ ├── go1_15_encoding_pem.go │ │ ├── go1_15_encoding_xml.go │ │ ├── go1_15_errors.go │ │ ├── go1_15_expvar.go │ │ ├── go1_15_flag.go │ │ ├── go1_15_fmt.go │ │ ├── go1_15_go_ast.go │ │ ├── go1_15_go_build.go │ │ ├── go1_15_go_constant.go │ │ ├── go1_15_go_doc.go │ │ ├── go1_15_go_format.go │ │ ├── go1_15_go_importer.go │ │ ├── go1_15_go_parser.go │ │ ├── go1_15_go_printer.go │ │ ├── go1_15_go_scanner.go │ │ ├── go1_15_go_token.go │ │ ├── go1_15_go_types.go │ │ ├── go1_15_hash.go │ │ ├── go1_15_hash_adler32.go │ │ ├── go1_15_hash_crc32.go │ │ ├── go1_15_hash_crc64.go │ │ ├── go1_15_hash_fnv.go │ │ ├── go1_15_hash_maphash.go │ │ ├── go1_15_html.go │ │ ├── go1_15_html_template.go │ │ ├── go1_15_image.go │ │ ├── go1_15_image_color.go │ │ ├── go1_15_image_color_palette.go │ │ ├── go1_15_image_draw.go │ │ ├── go1_15_image_gif.go │ │ ├── go1_15_image_jpeg.go │ │ ├── go1_15_image_png.go │ │ ├── go1_15_index_suffixarray.go │ │ ├── go1_15_io.go │ │ ├── go1_15_io_ioutil.go │ │ ├── go1_15_log.go │ │ ├── go1_15_log_syslog.go │ │ ├── go1_15_math.go │ │ ├── go1_15_math_big.go │ │ ├── go1_15_math_bits.go │ │ ├── go1_15_math_cmplx.go │ │ ├── go1_15_math_rand.go │ │ ├── go1_15_mime.go │ │ ├── go1_15_mime_multipart.go │ │ ├── go1_15_mime_quotedprintable.go │ │ ├── go1_15_net.go │ │ ├── go1_15_net_http.go │ │ ├── go1_15_net_http_cgi.go │ │ ├── go1_15_net_http_cookiejar.go │ │ ├── go1_15_net_http_fcgi.go │ │ ├── go1_15_net_http_httptest.go │ │ ├── go1_15_net_http_httptrace.go │ │ ├── go1_15_net_http_httputil.go │ │ ├── go1_15_net_http_pprof.go │ │ ├── go1_15_net_mail.go │ │ ├── go1_15_net_rpc.go │ │ ├── go1_15_net_rpc_jsonrpc.go │ │ ├── go1_15_net_smtp.go │ │ ├── go1_15_net_textproto.go │ │ ├── go1_15_net_url.go │ │ ├── go1_15_os.go │ │ ├── go1_15_os_signal.go │ │ ├── go1_15_os_user.go │ │ ├── go1_15_path.go │ │ ├── go1_15_path_filepath.go │ │ ├── go1_15_reflect.go │ │ ├── go1_15_regexp.go │ │ ├── go1_15_regexp_syntax.go │ │ ├── go1_15_runtime.go │ │ ├── go1_15_runtime_debug.go │ │ ├── go1_15_runtime_pprof.go │ │ ├── go1_15_runtime_trace.go │ │ ├── go1_15_sort.go │ │ ├── go1_15_strconv.go │ │ ├── go1_15_strings.go │ │ ├── go1_15_sync.go │ │ ├── go1_15_sync_atomic.go │ │ ├── go1_15_testing.go │ │ ├── go1_15_testing_iotest.go │ │ ├── go1_15_testing_quick.go │ │ ├── go1_15_text_scanner.go │ │ ├── go1_15_text_tabwriter.go │ │ ├── go1_15_text_template.go │ │ ├── go1_15_text_template_parse.go │ │ ├── go1_15_time.go │ │ ├── go1_15_unicode.go │ │ ├── go1_15_unicode_utf16.go │ │ ├── go1_15_unicode_utf8.go │ │ ├── go1_16_archive_tar.go │ │ ├── go1_16_archive_zip.go │ │ ├── go1_16_bufio.go │ │ ├── go1_16_bytes.go │ │ ├── go1_16_compress_bzip2.go │ │ ├── go1_16_compress_flate.go │ │ ├── go1_16_compress_gzip.go │ │ ├── go1_16_compress_lzw.go │ │ ├── go1_16_compress_zlib.go │ │ ├── go1_16_container_heap.go │ │ ├── go1_16_container_list.go │ │ ├── go1_16_container_ring.go │ │ ├── go1_16_context.go │ │ ├── go1_16_crypto.go │ │ ├── go1_16_crypto_aes.go │ │ ├── go1_16_crypto_cipher.go │ │ ├── go1_16_crypto_des.go │ │ ├── go1_16_crypto_dsa.go │ │ ├── go1_16_crypto_ecdsa.go │ │ ├── go1_16_crypto_ed25519.go │ │ ├── go1_16_crypto_elliptic.go │ │ ├── go1_16_crypto_hmac.go │ │ ├── go1_16_crypto_md5.go │ │ ├── go1_16_crypto_rand.go │ │ ├── go1_16_crypto_rc4.go │ │ ├── go1_16_crypto_rsa.go │ │ ├── go1_16_crypto_sha1.go │ │ ├── go1_16_crypto_sha256.go │ │ ├── go1_16_crypto_sha512.go │ │ ├── go1_16_crypto_subtle.go │ │ ├── go1_16_crypto_tls.go │ │ ├── go1_16_crypto_x509.go │ │ ├── go1_16_crypto_x509_pkix.go │ │ ├── go1_16_database_sql.go │ │ ├── go1_16_database_sql_driver.go │ │ ├── go1_16_debug_dwarf.go │ │ ├── go1_16_debug_elf.go │ │ ├── go1_16_debug_gosym.go │ │ ├── go1_16_debug_macho.go │ │ ├── go1_16_debug_pe.go │ │ ├── go1_16_debug_plan9obj.go │ │ ├── go1_16_embed.go │ │ ├── go1_16_encoding.go │ │ ├── go1_16_encoding_ascii85.go │ │ ├── go1_16_encoding_asn1.go │ │ ├── go1_16_encoding_base32.go │ │ ├── go1_16_encoding_base64.go │ │ ├── go1_16_encoding_binary.go │ │ ├── go1_16_encoding_csv.go │ │ ├── go1_16_encoding_gob.go │ │ ├── go1_16_encoding_hex.go │ │ ├── go1_16_encoding_json.go │ │ ├── go1_16_encoding_pem.go │ │ ├── go1_16_encoding_xml.go │ │ ├── go1_16_errors.go │ │ ├── go1_16_expvar.go │ │ ├── go1_16_flag.go │ │ ├── go1_16_fmt.go │ │ ├── go1_16_go_ast.go │ │ ├── go1_16_go_build.go │ │ ├── go1_16_go_constant.go │ │ ├── go1_16_go_doc.go │ │ ├── go1_16_go_format.go │ │ ├── go1_16_go_importer.go │ │ ├── go1_16_go_parser.go │ │ ├── go1_16_go_printer.go │ │ ├── go1_16_go_scanner.go │ │ ├── go1_16_go_token.go │ │ ├── go1_16_go_types.go │ │ ├── go1_16_hash.go │ │ ├── go1_16_hash_adler32.go │ │ ├── go1_16_hash_crc32.go │ │ ├── go1_16_hash_crc64.go │ │ ├── go1_16_hash_fnv.go │ │ ├── go1_16_hash_maphash.go │ │ ├── go1_16_html.go │ │ ├── go1_16_html_template.go │ │ ├── go1_16_image.go │ │ ├── go1_16_image_color.go │ │ ├── go1_16_image_color_palette.go │ │ ├── go1_16_image_draw.go │ │ ├── go1_16_image_gif.go │ │ ├── go1_16_image_jpeg.go │ │ ├── go1_16_image_png.go │ │ ├── go1_16_index_suffixarray.go │ │ ├── go1_16_io.go │ │ ├── go1_16_io_ioutil.go │ │ ├── go1_16_log.go │ │ ├── go1_16_log_syslog.go │ │ ├── go1_16_math.go │ │ ├── go1_16_math_big.go │ │ ├── go1_16_math_bits.go │ │ ├── go1_16_math_cmplx.go │ │ ├── go1_16_math_rand.go │ │ ├── go1_16_mime.go │ │ ├── go1_16_mime_multipart.go │ │ ├── go1_16_mime_quotedprintable.go │ │ ├── go1_16_net.go │ │ ├── go1_16_net_http.go │ │ ├── go1_16_net_http_cgi.go │ │ ├── go1_16_net_http_cookiejar.go │ │ ├── go1_16_net_http_fcgi.go │ │ ├── go1_16_net_http_httptest.go │ │ ├── go1_16_net_http_httptrace.go │ │ ├── go1_16_net_http_httputil.go │ │ ├── go1_16_net_http_pprof.go │ │ ├── go1_16_net_mail.go │ │ ├── go1_16_net_rpc.go │ │ ├── go1_16_net_rpc_jsonrpc.go │ │ ├── go1_16_net_smtp.go │ │ ├── go1_16_net_textproto.go │ │ ├── go1_16_net_url.go │ │ ├── go1_16_os.go │ │ ├── go1_16_os_signal.go │ │ ├── go1_16_os_user.go │ │ ├── go1_16_path.go │ │ ├── go1_16_path_filepath.go │ │ ├── go1_16_reflect.go │ │ ├── go1_16_regexp.go │ │ ├── go1_16_regexp_syntax.go │ │ ├── go1_16_runtime.go │ │ ├── go1_16_runtime_debug.go │ │ ├── go1_16_runtime_pprof.go │ │ ├── go1_16_runtime_trace.go │ │ ├── go1_16_sort.go │ │ ├── go1_16_strconv.go │ │ ├── go1_16_strings.go │ │ ├── go1_16_sync.go │ │ ├── go1_16_sync_atomic.go │ │ ├── go1_16_testing.go │ │ ├── go1_16_testing_fstest.go │ │ ├── go1_16_testing_iotest.go │ │ ├── go1_16_testing_quick.go │ │ ├── go1_16_text_scanner.go │ │ ├── go1_16_text_tabwriter.go │ │ ├── go1_16_text_template.go │ │ ├── go1_16_text_template_parse.go │ │ ├── go1_16_time.go │ │ ├── go1_16_unicode.go │ │ ├── go1_16_unicode_utf16.go │ │ ├── go1_16_unicode_utf8.go │ │ ├── restricted.go │ │ ├── stdlib.go │ │ └── stdlib_go1.16.go └── xo │ └── terminfo │ ├── .gitignore │ ├── LICENSE │ ├── README.md │ ├── caps.go │ ├── capvals.go │ ├── color.go │ ├── go.mod │ ├── go.sum │ ├── load.go │ ├── param.go │ ├── stack.go │ ├── terminfo.go │ └── util.go ├── go.uber.org ├── atomic │ ├── .codecov.yml │ ├── .gitignore │ ├── CHANGELOG.md │ ├── LICENSE.txt │ ├── Makefile │ ├── README.md │ ├── bool.go │ ├── bool_ext.go │ ├── doc.go │ ├── duration.go │ ├── duration_ext.go │ ├── error.go │ ├── error_ext.go │ ├── float64.go │ ├── float64_ext.go │ ├── gen.go │ ├── go.mod │ ├── go.sum │ ├── int32.go │ ├── int64.go │ ├── nocmp.go │ ├── string.go │ ├── string_ext.go │ ├── time.go │ ├── time_ext.go │ ├── uint32.go │ ├── uint64.go │ ├── uintptr.go │ ├── unsafe_pointer.go │ └── value.go └── goleak │ ├── .gitignore │ ├── CHANGELOG.md │ ├── LICENSE │ ├── Makefile │ ├── README.md │ ├── doc.go │ ├── glide.yaml │ ├── go.mod │ ├── go.sum │ ├── internal │ └── stack │ │ └── stacks.go │ ├── leaks.go │ ├── options.go │ ├── testmain.go │ ├── tracestack_new.go │ └── tracestack_old.go ├── golang.org └── x │ ├── mod │ ├── LICENSE │ ├── PATENTS │ ├── internal │ │ └── lazyregexp │ │ │ └── lazyre.go │ ├── module │ │ ├── module.go │ │ └── pseudo.go │ └── semver │ │ └── semver.go │ ├── sys │ ├── LICENSE │ ├── PATENTS │ ├── execabs │ │ ├── execabs.go │ │ ├── execabs_go118.go │ │ └── execabs_go119.go │ ├── internal │ │ └── unsafeheader │ │ │ └── unsafeheader.go │ ├── unix │ │ ├── .gitignore │ │ ├── README.md │ │ ├── affinity_linux.go │ │ ├── aliases.go │ │ ├── asm_aix_ppc64.s │ │ ├── asm_bsd_386.s │ │ ├── asm_bsd_amd64.s │ │ ├── asm_bsd_arm.s │ │ ├── asm_bsd_arm64.s │ │ ├── asm_bsd_riscv64.s │ │ ├── asm_linux_386.s │ │ ├── asm_linux_amd64.s │ │ ├── asm_linux_arm.s │ │ ├── asm_linux_arm64.s │ │ ├── asm_linux_loong64.s │ │ ├── asm_linux_mips64x.s │ │ ├── asm_linux_mipsx.s │ │ ├── asm_linux_ppc64x.s │ │ ├── asm_linux_riscv64.s │ │ ├── asm_linux_s390x.s │ │ ├── asm_openbsd_mips64.s │ │ ├── asm_solaris_amd64.s │ │ ├── asm_zos_s390x.s │ │ ├── bluetooth_linux.go │ │ ├── cap_freebsd.go │ │ ├── constants.go │ │ ├── dev_aix_ppc.go │ │ ├── dev_aix_ppc64.go │ │ ├── dev_darwin.go │ │ ├── dev_dragonfly.go │ │ ├── dev_freebsd.go │ │ ├── dev_linux.go │ │ ├── dev_netbsd.go │ │ ├── dev_openbsd.go │ │ ├── dev_zos.go │ │ ├── dirent.go │ │ ├── endian_big.go │ │ ├── endian_little.go │ │ ├── env_unix.go │ │ ├── epoll_zos.go │ │ ├── fcntl.go │ │ ├── fcntl_darwin.go │ │ ├── fcntl_linux_32bit.go │ │ ├── fdset.go │ │ ├── fstatfs_zos.go │ │ ├── gccgo.go │ │ ├── gccgo_c.c │ │ ├── gccgo_linux_amd64.go │ │ ├── ifreq_linux.go │ │ ├── ioctl.go │ │ ├── ioctl_linux.go │ │ ├── ioctl_zos.go │ │ ├── mkall.sh │ │ ├── mkerrors.sh │ │ ├── pagesize_unix.go │ │ ├── pledge_openbsd.go │ │ ├── ptrace_darwin.go │ │ ├── ptrace_ios.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── readdirent_getdents.go │ │ ├── readdirent_getdirentries.go │ │ ├── sockcmsg_dragonfly.go │ │ ├── sockcmsg_linux.go │ │ ├── sockcmsg_unix.go │ │ ├── sockcmsg_unix_other.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_aix.go │ │ ├── syscall_aix_ppc.go │ │ ├── syscall_aix_ppc64.go │ │ ├── syscall_bsd.go │ │ ├── syscall_darwin.1_12.go │ │ ├── syscall_darwin.1_13.go │ │ ├── syscall_darwin.go │ │ ├── syscall_darwin_amd64.go │ │ ├── syscall_darwin_arm64.go │ │ ├── syscall_darwin_libSystem.go │ │ ├── syscall_dragonfly.go │ │ ├── syscall_dragonfly_amd64.go │ │ ├── syscall_freebsd.go │ │ ├── syscall_freebsd_386.go │ │ ├── syscall_freebsd_amd64.go │ │ ├── syscall_freebsd_arm.go │ │ ├── syscall_freebsd_arm64.go │ │ ├── syscall_freebsd_riscv64.go │ │ ├── syscall_illumos.go │ │ ├── syscall_linux.go │ │ ├── syscall_linux_386.go │ │ ├── syscall_linux_alarm.go │ │ ├── syscall_linux_amd64.go │ │ ├── syscall_linux_amd64_gc.go │ │ ├── syscall_linux_arm.go │ │ ├── syscall_linux_arm64.go │ │ ├── syscall_linux_gc.go │ │ ├── syscall_linux_gc_386.go │ │ ├── syscall_linux_gc_arm.go │ │ ├── syscall_linux_gccgo_386.go │ │ ├── syscall_linux_gccgo_arm.go │ │ ├── syscall_linux_loong64.go │ │ ├── syscall_linux_mips64x.go │ │ ├── syscall_linux_mipsx.go │ │ ├── syscall_linux_ppc.go │ │ ├── syscall_linux_ppc64x.go │ │ ├── syscall_linux_riscv64.go │ │ ├── syscall_linux_s390x.go │ │ ├── syscall_linux_sparc64.go │ │ ├── syscall_netbsd.go │ │ ├── syscall_netbsd_386.go │ │ ├── syscall_netbsd_amd64.go │ │ ├── syscall_netbsd_arm.go │ │ ├── syscall_netbsd_arm64.go │ │ ├── syscall_openbsd.go │ │ ├── syscall_openbsd_386.go │ │ ├── syscall_openbsd_amd64.go │ │ ├── syscall_openbsd_arm.go │ │ ├── syscall_openbsd_arm64.go │ │ ├── syscall_openbsd_mips64.go │ │ ├── syscall_solaris.go │ │ ├── syscall_solaris_amd64.go │ │ ├── syscall_unix.go │ │ ├── syscall_unix_gc.go │ │ ├── syscall_unix_gc_ppc64x.go │ │ ├── syscall_zos_s390x.go │ │ ├── sysvshm_linux.go │ │ ├── sysvshm_unix.go │ │ ├── sysvshm_unix_other.go │ │ ├── timestruct.go │ │ ├── unveil_openbsd.go │ │ ├── xattr_bsd.go │ │ ├── zerrors_aix_ppc.go │ │ ├── zerrors_aix_ppc64.go │ │ ├── zerrors_darwin_amd64.go │ │ ├── zerrors_darwin_arm64.go │ │ ├── zerrors_dragonfly_amd64.go │ │ ├── zerrors_freebsd_386.go │ │ ├── zerrors_freebsd_amd64.go │ │ ├── zerrors_freebsd_arm.go │ │ ├── zerrors_freebsd_arm64.go │ │ ├── zerrors_freebsd_riscv64.go │ │ ├── zerrors_linux.go │ │ ├── zerrors_linux_386.go │ │ ├── zerrors_linux_amd64.go │ │ ├── zerrors_linux_arm.go │ │ ├── zerrors_linux_arm64.go │ │ ├── zerrors_linux_loong64.go │ │ ├── zerrors_linux_mips.go │ │ ├── zerrors_linux_mips64.go │ │ ├── zerrors_linux_mips64le.go │ │ ├── zerrors_linux_mipsle.go │ │ ├── zerrors_linux_ppc.go │ │ ├── zerrors_linux_ppc64.go │ │ ├── zerrors_linux_ppc64le.go │ │ ├── zerrors_linux_riscv64.go │ │ ├── zerrors_linux_s390x.go │ │ ├── zerrors_linux_sparc64.go │ │ ├── zerrors_netbsd_386.go │ │ ├── zerrors_netbsd_amd64.go │ │ ├── zerrors_netbsd_arm.go │ │ ├── zerrors_netbsd_arm64.go │ │ ├── zerrors_openbsd_386.go │ │ ├── zerrors_openbsd_amd64.go │ │ ├── zerrors_openbsd_arm.go │ │ ├── zerrors_openbsd_arm64.go │ │ ├── zerrors_openbsd_mips64.go │ │ ├── zerrors_solaris_amd64.go │ │ ├── zerrors_zos_s390x.go │ │ ├── zptrace_armnn_linux.go │ │ ├── zptrace_linux_arm64.go │ │ ├── zptrace_mipsnn_linux.go │ │ ├── zptrace_mipsnnle_linux.go │ │ ├── zptrace_x86_linux.go │ │ ├── zsyscall_aix_ppc.go │ │ ├── zsyscall_aix_ppc64.go │ │ ├── zsyscall_aix_ppc64_gc.go │ │ ├── zsyscall_aix_ppc64_gccgo.go │ │ ├── zsyscall_darwin_amd64.1_13.go │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ ├── zsyscall_darwin_amd64.go │ │ ├── zsyscall_darwin_amd64.s │ │ ├── zsyscall_darwin_arm64.1_13.go │ │ ├── zsyscall_darwin_arm64.1_13.s │ │ ├── zsyscall_darwin_arm64.go │ │ ├── zsyscall_darwin_arm64.s │ │ ├── zsyscall_dragonfly_amd64.go │ │ ├── zsyscall_freebsd_386.go │ │ ├── zsyscall_freebsd_amd64.go │ │ ├── zsyscall_freebsd_arm.go │ │ ├── zsyscall_freebsd_arm64.go │ │ ├── zsyscall_freebsd_riscv64.go │ │ ├── zsyscall_illumos_amd64.go │ │ ├── zsyscall_linux.go │ │ ├── zsyscall_linux_386.go │ │ ├── zsyscall_linux_amd64.go │ │ ├── zsyscall_linux_arm.go │ │ ├── zsyscall_linux_arm64.go │ │ ├── zsyscall_linux_loong64.go │ │ ├── zsyscall_linux_mips.go │ │ ├── zsyscall_linux_mips64.go │ │ ├── zsyscall_linux_mips64le.go │ │ ├── zsyscall_linux_mipsle.go │ │ ├── zsyscall_linux_ppc.go │ │ ├── zsyscall_linux_ppc64.go │ │ ├── zsyscall_linux_ppc64le.go │ │ ├── zsyscall_linux_riscv64.go │ │ ├── zsyscall_linux_s390x.go │ │ ├── zsyscall_linux_sparc64.go │ │ ├── zsyscall_netbsd_386.go │ │ ├── zsyscall_netbsd_amd64.go │ │ ├── zsyscall_netbsd_arm.go │ │ ├── zsyscall_netbsd_arm64.go │ │ ├── zsyscall_openbsd_386.go │ │ ├── zsyscall_openbsd_amd64.go │ │ ├── zsyscall_openbsd_arm.go │ │ ├── zsyscall_openbsd_arm64.go │ │ ├── zsyscall_openbsd_mips64.go │ │ ├── zsyscall_solaris_amd64.go │ │ ├── zsyscall_zos_s390x.go │ │ ├── zsysctl_openbsd_386.go │ │ ├── zsysctl_openbsd_amd64.go │ │ ├── zsysctl_openbsd_arm.go │ │ ├── zsysctl_openbsd_arm64.go │ │ ├── zsysctl_openbsd_mips64.go │ │ ├── zsysnum_darwin_amd64.go │ │ ├── zsysnum_darwin_arm64.go │ │ ├── zsysnum_dragonfly_amd64.go │ │ ├── zsysnum_freebsd_386.go │ │ ├── zsysnum_freebsd_amd64.go │ │ ├── zsysnum_freebsd_arm.go │ │ ├── zsysnum_freebsd_arm64.go │ │ ├── zsysnum_freebsd_riscv64.go │ │ ├── zsysnum_linux_386.go │ │ ├── zsysnum_linux_amd64.go │ │ ├── zsysnum_linux_arm.go │ │ ├── zsysnum_linux_arm64.go │ │ ├── zsysnum_linux_loong64.go │ │ ├── zsysnum_linux_mips.go │ │ ├── zsysnum_linux_mips64.go │ │ ├── zsysnum_linux_mips64le.go │ │ ├── zsysnum_linux_mipsle.go │ │ ├── zsysnum_linux_ppc.go │ │ ├── zsysnum_linux_ppc64.go │ │ ├── zsysnum_linux_ppc64le.go │ │ ├── zsysnum_linux_riscv64.go │ │ ├── zsysnum_linux_s390x.go │ │ ├── zsysnum_linux_sparc64.go │ │ ├── zsysnum_netbsd_386.go │ │ ├── zsysnum_netbsd_amd64.go │ │ ├── zsysnum_netbsd_arm.go │ │ ├── zsysnum_netbsd_arm64.go │ │ ├── zsysnum_openbsd_386.go │ │ ├── zsysnum_openbsd_amd64.go │ │ ├── zsysnum_openbsd_arm.go │ │ ├── zsysnum_openbsd_arm64.go │ │ ├── zsysnum_openbsd_mips64.go │ │ ├── zsysnum_zos_s390x.go │ │ ├── ztypes_aix_ppc.go │ │ ├── ztypes_aix_ppc64.go │ │ ├── ztypes_darwin_amd64.go │ │ ├── ztypes_darwin_arm64.go │ │ ├── ztypes_dragonfly_amd64.go │ │ ├── ztypes_freebsd_386.go │ │ ├── ztypes_freebsd_amd64.go │ │ ├── ztypes_freebsd_arm.go │ │ ├── ztypes_freebsd_arm64.go │ │ ├── ztypes_freebsd_riscv64.go │ │ ├── ztypes_illumos_amd64.go │ │ ├── ztypes_linux.go │ │ ├── ztypes_linux_386.go │ │ ├── ztypes_linux_amd64.go │ │ ├── ztypes_linux_arm.go │ │ ├── ztypes_linux_arm64.go │ │ ├── ztypes_linux_loong64.go │ │ ├── ztypes_linux_mips.go │ │ ├── ztypes_linux_mips64.go │ │ ├── ztypes_linux_mips64le.go │ │ ├── ztypes_linux_mipsle.go │ │ ├── ztypes_linux_ppc.go │ │ ├── ztypes_linux_ppc64.go │ │ ├── ztypes_linux_ppc64le.go │ │ ├── ztypes_linux_riscv64.go │ │ ├── ztypes_linux_s390x.go │ │ ├── ztypes_linux_sparc64.go │ │ ├── ztypes_netbsd_386.go │ │ ├── ztypes_netbsd_amd64.go │ │ ├── ztypes_netbsd_arm.go │ │ ├── ztypes_netbsd_arm64.go │ │ ├── ztypes_openbsd_386.go │ │ ├── ztypes_openbsd_amd64.go │ │ ├── ztypes_openbsd_arm.go │ │ ├── ztypes_openbsd_arm64.go │ │ ├── ztypes_openbsd_mips64.go │ │ ├── ztypes_solaris_amd64.go │ │ └── ztypes_zos_s390x.go │ └── windows │ │ ├── aliases.go │ │ ├── dll_windows.go │ │ ├── empty.s │ │ ├── env_windows.go │ │ ├── eventlog.go │ │ ├── exec_windows.go │ │ ├── memory_windows.go │ │ ├── mkerrors.bash │ │ ├── mkknownfolderids.bash │ │ ├── mksyscall.go │ │ ├── race.go │ │ ├── race0.go │ │ ├── security_windows.go │ │ ├── service.go │ │ ├── setupapi_windows.go │ │ ├── str.go │ │ ├── syscall.go │ │ ├── syscall_windows.go │ │ ├── types_windows.go │ │ ├── types_windows_386.go │ │ ├── types_windows_amd64.go │ │ ├── types_windows_arm.go │ │ ├── types_windows_arm64.go │ │ ├── zerrors_windows.go │ │ ├── zknownfolderids_windows.go │ │ └── zsyscall_windows.go │ ├── tools │ ├── LICENSE │ ├── PATENTS │ ├── go │ │ └── ast │ │ │ └── astutil │ │ │ ├── enclosing.go │ │ │ ├── imports.go │ │ │ ├── rewrite.go │ │ │ └── util.go │ ├── imports │ │ └── forward.go │ └── internal │ │ ├── event │ │ ├── core │ │ │ ├── event.go │ │ │ ├── export.go │ │ │ └── fast.go │ │ ├── doc.go │ │ ├── event.go │ │ ├── keys │ │ │ ├── keys.go │ │ │ └── standard.go │ │ └── label │ │ │ └── label.go │ │ ├── fastwalk │ │ ├── fastwalk.go │ │ ├── fastwalk_dirent_fileno.go │ │ ├── fastwalk_dirent_ino.go │ │ ├── fastwalk_dirent_namlen_bsd.go │ │ ├── fastwalk_dirent_namlen_linux.go │ │ ├── fastwalk_portable.go │ │ └── fastwalk_unix.go │ │ ├── gocommand │ │ ├── invoke.go │ │ ├── vendor.go │ │ └── version.go │ │ ├── gopathwalk │ │ └── walk.go │ │ ├── imports │ │ ├── fix.go │ │ ├── imports.go │ │ ├── mod.go │ │ ├── mod_cache.go │ │ ├── sortimports.go │ │ └── zstdlib.go │ │ └── typeparams │ │ ├── common.go │ │ ├── coretype.go │ │ ├── enabled_go117.go │ │ ├── enabled_go118.go │ │ ├── normalize.go │ │ ├── termlist.go │ │ ├── typeparams_go117.go │ │ ├── typeparams_go118.go │ │ └── typeterm.go │ └── xerrors │ ├── LICENSE │ ├── PATENTS │ ├── README │ ├── adaptor.go │ ├── codereview.cfg │ ├── doc.go │ ├── errors.go │ ├── fmt.go │ ├── format.go │ ├── frame.go │ ├── go.mod │ ├── internal │ └── internal.go │ └── wrap.go ├── gopkg.in └── yaml.v3 │ ├── LICENSE │ ├── NOTICE │ ├── README.md │ ├── apic.go │ ├── decode.go │ ├── emitterc.go │ ├── encode.go │ ├── go.mod │ ├── parserc.go │ ├── readerc.go │ ├── resolve.go │ ├── scannerc.go │ ├── sorter.go │ ├── writerc.go │ ├── yaml.go │ ├── yamlh.go │ └── yamlprivateh.go └── modules.txt /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [Eun] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: Eun # Replace with a single Liberapay username 10 | issuehunt: eun # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2'] 13 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | ## Description 2 | 3 | ## Problem 4 | A short description of the problem this PR is addressing. 5 | 6 | ## Solution 7 | A short description of the chosen method to resolve the problem 8 | with an overview of the logic and implementation details when needed. 9 | 10 | ## Notes 11 | Other notes that you want to share but do not fit into _Problem_ or _Solution_. 12 | 13 | ### Checklist 14 | - [ ] Ran `make test` 15 | - [ ] Review `README.md` `go //ignore` sections 16 | - [ ] Added Changelog entry to `README.md` when this is a `#major` or `#minor` release. 17 | -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | updates: 3 | - package-ecosystem: "gomod" 4 | open-pull-requests-limit: 10 5 | directory: "/" 6 | schedule: 7 | interval: "daily" 8 | time: "04:00" 9 | commit-message: 10 | prefix: "chore" 11 | labels: 12 | - "dependencies" 13 | - "go" 14 | - "chore" 15 | 16 | - package-ecosystem: "github-actions" 17 | open-pull-requests-limit: 10 18 | directory: "/" 19 | schedule: 20 | interval: "daily" 21 | time: "04:00" 22 | commit-message: 23 | prefix: "chore" 24 | labels: 25 | - "dependencies" 26 | - "github_actions" 27 | - "chore" 28 | 29 | -------------------------------------------------------------------------------- /.github/labeler.yml: -------------------------------------------------------------------------------- 1 | labels: 2 | 'feature': 3 | - '^(?i:feat)' 4 | - '^(?i:feature)' 5 | 'fix': 6 | - '^(?i:fix)' 7 | 'chore': 8 | - '^(?i:chore)' -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- 1 | name-template: 'v$RESOLVED_VERSION' 2 | tag-template: 'v$RESOLVED_VERSION' 3 | categories: 4 | - title: '🚀 Features' 5 | label: 'feature' 6 | - title: '🐛 Bug Fixes' 7 | label: 'fix' 8 | - title: '🧰 Maintenance' 9 | label: 'chore' 10 | change-template: '- $TITLE @$AUTHOR (#$NUMBER)' 11 | change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks. 12 | version-resolver: 13 | major: 14 | labels: 15 | - 'major' 16 | minor: 17 | labels: 18 | - 'minor' 19 | patch: 20 | labels: 21 | - 'patch' 22 | default: patch 23 | autolabeler: 24 | - label: 'feature' 25 | title: 26 | - '/^feat/i' 27 | - '/^feature/i' 28 | - label: 'fix' 29 | title: 30 | - '/^fix/i' 31 | - label: 'chore' 32 | title: 33 | - '/^chore/i' 34 | template: | 35 | ## Changes 36 | 37 | $CHANGES 38 | 39 | -------------------------------------------------------------------------------- /.github/workflows/pull_request_target_opened.yml: -------------------------------------------------------------------------------- 1 | # this workflow will run on all pull requests opened but in the context of the base of the pull request. 2 | on: 3 | pull_request_target: 4 | types: [opened] 5 | 6 | name: "pull_request_target_opened" 7 | jobs: 8 | # labeler will label pull requests based on their title. 9 | # the configuration is at .github/labeler.yml. 10 | label_pull_request: 11 | runs-on: ubuntu-latest 12 | steps: 13 | - 14 | name: Label Pull Request 15 | uses: jimschubert/labeler-action@v2 16 | with: 17 | GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .vscode 3 | /doc_gen_test.go 4 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test fasttest clear generate 2 | 3 | test: fasttest 4 | go test -v -count=1 -tags="doctest" doc_gen_test.go 5 | go test -v -count=1 -tags="doctest" readme_gen_test.go 6 | 7 | fasttest: generate 8 | go test -v -count=1 ${GO_TEST_COVER_ARGS} ./... 9 | 10 | clear: 11 | @-rm *_gen.go 12 | @-rm *_gen_test.go 13 | 14 | generate: clear 15 | go run -v -tags="generate_numeric" ./generators/expect/numeric 16 | go run -v -tags="generate" ./generators/clear/clear 17 | go run -v -tags="generate" ./generators/clear/tests 18 | go run -v -tags="generate" ./generators/doc 19 | go run -v -tags="generate" ./generators/readme 20 | 21 | 22 | -------------------------------------------------------------------------------- /doctest/implicit/implicit.go: -------------------------------------------------------------------------------- 1 | // Package implicit can be used for testing purposes. It spawns a http test server that provides 2 | // functionality to test the hit framework. It also overwrites the http.DefaultTransport field. So use with care. 3 | package implicit 4 | 5 | import ( 6 | "net/http" 7 | 8 | "github.com/Eun/go-hit/doctest/server" 9 | ) 10 | 11 | //nolint:gochecknoinits // this is needed so we can overwrite the http.DefaultTransport implicitly. 12 | func init() { 13 | srv := server.NewServer() 14 | http.DefaultTransport = srv.Transport() 15 | } 16 | -------------------------------------------------------------------------------- /doctest/testhelper.go: -------------------------------------------------------------------------------- 1 | // Package doctest is a package to help test the hit framework. 2 | package doctest 3 | 4 | import ( 5 | "net/http" 6 | 7 | "github.com/Eun/go-hit/doctest/server" 8 | ) 9 | 10 | // RunTest mocks an test http server. 11 | func RunTest(expectRequest bool, test func()) { 12 | srv := server.NewServer() 13 | 14 | http.DefaultTransport = srv.Transport() 15 | 16 | test() 17 | 18 | _ = srv.Close() 19 | 20 | if expectRequest && srv.RequestCount() == 0 { 21 | panic("expected at least one request") 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /doctest/testhelper_test.go: -------------------------------------------------------------------------------- 1 | package doctest 2 | 3 | import ( 4 | "testing" 5 | 6 | . "github.com/Eun/go-hit" 7 | ) 8 | 9 | func TestRunTest(t *testing.T) { 10 | t.Run("http", func(t *testing.T) { 11 | RunTest(true, func() { 12 | MustDo( 13 | Post("http://example.com"), 14 | Send().Body().String("Hello World"), 15 | Expect().Body().String().Equal("Hello World"), 16 | ) 17 | }) 18 | }) 19 | 20 | t.Run("https", func(t *testing.T) { 21 | RunTest(true, func() { 22 | MustDo( 23 | Post("https://example.com"), 24 | Send().Body().String("Hello World"), 25 | Expect().Body().String().Equal("Hello World"), 26 | ) 27 | }) 28 | }) 29 | } 30 | -------------------------------------------------------------------------------- /dummy_clear.go: -------------------------------------------------------------------------------- 1 | // +build generate 2 | 3 | package hit 4 | 5 | type IClear interface{} 6 | 7 | func newClear(cp callPath) IClear { 8 | return nil 9 | } 10 | -------------------------------------------------------------------------------- /errors_test.go: -------------------------------------------------------------------------------- 1 | package hit_test 2 | 3 | import ( 4 | "errors" 5 | "testing" 6 | 7 | "github.com/stretchr/testify/require" 8 | 9 | . "github.com/Eun/go-hit" 10 | ) 11 | 12 | func TestError_FailingStepIs(t *testing.T) { 13 | s := EchoServer() 14 | defer s.Close() 15 | 16 | err := Do( 17 | Post(s.URL), 18 | Send().Body().Int8(16), 19 | Expect().Body().Int8().Equal(16), 20 | Expect().Body().Int8().Equal(17), 21 | ) 22 | 23 | var hitError *Error 24 | require.True(t, errors.As(err, &hitError)) 25 | require.False(t, hitError.FailingStepIs(Expect().Body().Int8().Equal(16))) 26 | require.True(t, hitError.FailingStepIs(Expect().Body().Int8().Equal(17))) 27 | } 28 | -------------------------------------------------------------------------------- /export_test.go: -------------------------------------------------------------------------------- 1 | package hit 2 | 3 | // This file exposes functionality that should only be accessible during tests 4 | 5 | // CleanStep is a step that runs during the clean step phase, cast to uint8 to avoid linter problems in step.go. 6 | const CleanStep = uint8(cleanStep) 7 | 8 | // CallPath represents the internal callPath. 9 | type CallPath = callPath 10 | 11 | // NewCallPath creates a new callPath. 12 | var NewCallPath = newCallPath 13 | -------------------------------------------------------------------------------- /http_response.go: -------------------------------------------------------------------------------- 1 | package hit 2 | 3 | import ( 4 | "net/http" 5 | 6 | "github.com/Eun/go-hit/httpbody" 7 | ) 8 | 9 | // HTTPResponse contains the http.Response and methods to extract/set data for the body. 10 | type HTTPResponse struct { 11 | Hit Hit 12 | *http.Response 13 | body *httpbody.HTTPBody 14 | } 15 | 16 | func newHTTPResponse(hit Hit, response *http.Response) *HTTPResponse { 17 | r := &HTTPResponse{ 18 | Hit: hit, 19 | Response: response, 20 | body: httpbody.NewHTTPBody(response.Body, response.Header), 21 | } 22 | r.body.SetReader(response.Body) 23 | return r 24 | } 25 | 26 | // Body provides methods for accessing the http body. 27 | func (r *HTTPResponse) Body() *httpbody.HTTPBody { 28 | return r.body 29 | } 30 | -------------------------------------------------------------------------------- /httpbody/const.go: -------------------------------------------------------------------------------- 1 | package httpbody 2 | 3 | import jsoniter "github.com/json-iterator/go" 4 | 5 | var json = jsoniter.ConfigCompatibleWithStandardLibrary 6 | -------------------------------------------------------------------------------- /httpbody/http_body_xml.go: -------------------------------------------------------------------------------- 1 | package httpbody 2 | 3 | import ( 4 | "encoding/xml" 5 | ) 6 | 7 | // HTTPBodyXML provides XML functions for the HTTPBody. 8 | type HTTPBodyXML struct { //nolint:revive //ignore type name will be used as httpbody.HTTPBodyXML by other packages 9 | body *HTTPBody 10 | } 11 | 12 | func newHTTPBodyXML(body *HTTPBody) *HTTPBodyXML { 13 | return &HTTPBodyXML{ 14 | body: body, 15 | } 16 | } 17 | 18 | // Set sets the body to the specified json data. 19 | func (jsn *HTTPBodyXML) Set(data interface{}) error { 20 | buf, err := xml.Marshal(data) 21 | if err != nil { 22 | return err 23 | } 24 | jsn.body.SetBytes(buf) 25 | return nil 26 | } 27 | -------------------------------------------------------------------------------- /httpbody/http_body_xml_test.go: -------------------------------------------------------------------------------- 1 | package httpbody 2 | 3 | import ( 4 | "reflect" 5 | "testing" 6 | ) 7 | 8 | func TestHttpBodyXml_Set(t *testing.T) { 9 | tests := []struct { 10 | name string 11 | data interface{} 12 | want string 13 | }{ 14 | { 15 | name: "string", 16 | data: "Hello World", 17 | want: "Hello World", 18 | }, 19 | { 20 | name: "slice", 21 | data: []string{"Alice", "Bob"}, 22 | want: "AliceBob", 23 | }, 24 | } 25 | for _, tt := range tests { 26 | t.Run(tt.name, func(t *testing.T) { 27 | testServer("", func(body *HTTPBody) { 28 | body.XML().Set(tt.data) 29 | if got := body.MustString(); !reflect.DeepEqual(got, tt.want) { 30 | t.Errorf("Get() = %v, want %v", got, tt.want) 31 | } 32 | }) 33 | }) 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /internal/converter/converter.go: -------------------------------------------------------------------------------- 1 | // Package converter contains a convert.Converter for the hit package with some standard recipes. 2 | package converter 3 | 4 | import ( 5 | "net/url" 6 | 7 | "github.com/Eun/go-convert" 8 | ) 9 | 10 | //nolint:gochecknoglobals // we need a converter that defines some recipes that we need. To reuse the converter as much 11 | // as possible we keep it globally available. 12 | var converter = convert.New(convert.Options{ 13 | Recipes: convert.MustMakeRecipes( 14 | func(_ convert.Converter, in url.Userinfo, out *url.Userinfo) error { 15 | if pass, ok := in.Password(); ok { 16 | *out = *url.UserPassword(in.Username(), pass) 17 | } else { 18 | *out = *url.User(in.Username()) 19 | } 20 | return nil 21 | }, 22 | ), 23 | }) 24 | 25 | // Convert converts src to dst using the options, it uses the created converter in the init func. 26 | func Convert(src, dst interface{}, options ...convert.Options) error { 27 | return converter.Convert(src, dst, options...) 28 | } 29 | -------------------------------------------------------------------------------- /internal/minitest/minitest.go: -------------------------------------------------------------------------------- 1 | // Package minitest provides some testing functions for the hit package. 2 | package minitest 3 | 4 | import ( 5 | "fmt" 6 | 7 | "strings" 8 | 9 | "github.com/google/go-cmp/cmp" 10 | "github.com/k0kubun/pp" 11 | "github.com/lunixbochs/vtclean" 12 | ) 13 | 14 | //nolint:unparam // hide `stringJoin` - `separator` always receives `"\n" 15 | func stringJoin(separator string, a ...string) string { 16 | return strings.Join(a, separator) 17 | } 18 | 19 | func actualExpectedDiff(actual, expected interface{}) string { 20 | var sb strings.Builder 21 | fmt.Fprintf(&sb, "expected:\t%s\n", PrintValue(expected)) 22 | fmt.Fprintf(&sb, "actual: \t%s\n", PrintValue(actual)) 23 | if diff := cmp.Diff(expected, actual); diff != "" { 24 | fmt.Fprint(&sb, Format("diff: ", trimLeftSpaces(diff))) 25 | } 26 | return sb.String() 27 | } 28 | 29 | // PrintValue prints the specified value in a nice way. 30 | func PrintValue(v interface{}) string { 31 | return vtclean.Clean(pp.Sprint(v), false) 32 | } 33 | -------------------------------------------------------------------------------- /testingT.go: -------------------------------------------------------------------------------- 1 | package hit 2 | 3 | // TestingT is the minimum interface that is required for Test(). 4 | type TestingT interface { 5 | FailNow() 6 | } 7 | -------------------------------------------------------------------------------- /todo.txt: -------------------------------------------------------------------------------- 1 | * Expect().Body().XML() 2 | * Store().Request().Body().XML() 3 | * Store().Response().Body().XML() 4 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/go-convert/.gitignore: -------------------------------------------------------------------------------- 1 | .idea 2 | .vscode 3 | /README.md 4 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/go-convert/debug.go: -------------------------------------------------------------------------------- 1 | package convert 2 | 3 | import ( 4 | "fmt" 5 | "os" 6 | "strings" 7 | ) 8 | 9 | var debug = func(format string, a ...interface{}) {} 10 | var debug2 = func(format string, a ...interface{}) {} 11 | 12 | func init() { 13 | if strings.Contains(os.Getenv("GODEBUG"), "go.convert=1") { 14 | debug = func(format string, a ...interface{}) { 15 | fmt.Fprintf(os.Stdout, format, a...) 16 | } 17 | } 18 | if strings.Contains(os.Getenv("GODEBUG"), "go.convert=2") { 19 | debug = func(format string, a ...interface{}) { 20 | fmt.Fprintf(os.Stdout, format, a...) 21 | } 22 | debug2 = func(format string, a ...interface{}) { 23 | fmt.Fprintf(os.Stdout, format, a...) 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/go-convert/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/Eun/go-convert 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/araddon/dateparse v0.0.0-20190622164848-0fb0a474d195 7 | github.com/stretchr/testify v1.7.0 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/go-convert/option.go: -------------------------------------------------------------------------------- 1 | package convert 2 | 3 | // Options can be used to alter the behavior of the converter 4 | type Options struct { 5 | // SkipUnknownFields can be used to ignore fields that are not existent in the destination type 6 | // 7 | // Example: 8 | // type User struct { 9 | // Name string 10 | // } 11 | // m := map[string]interface{}{ 12 | // "Name": "Joe", 13 | // "Surname": "Doe", 14 | // } 15 | // // convert a map into User type 16 | // var user User 17 | // // will fail because Surname is not in the User struct 18 | // MustConvert(m, &user) 19 | // // will pass 20 | // MustConvert(m, &user, Options{SkipUnknownFields: true}) 21 | SkipUnknownFields bool 22 | // Recipes can be used to define custom recipes for this converter 23 | Recipes []Recipe 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/go-doppelgangerreader/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.vscode 3 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/go-doppelgangerreader/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.9 4 | 5 | go_import_path: github.com/Eun/go-doppelgangerreader 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - go test -race -coverprofile=coverage.txt -covermode=atomic 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) -------------------------------------------------------------------------------- /vendor/github.com/Eun/go-testdoc/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.vscode 3 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/go-testdoc/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/Eun/go-testdoc 2 | 3 | go 1.15 4 | 5 | require ( 6 | github.com/Eun/yaegi-template v1.5.16 7 | github.com/hashicorp/go-multierror v1.1.0 8 | github.com/pkg/errors v0.9.1 9 | github.com/stretchr/testify v1.6.1 10 | github.com/traefik/yaegi v0.9.8 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/yaegi-template/.gitignore: -------------------------------------------------------------------------------- 1 | /.idea 2 | /.vscode 3 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/yaegi-template/codebuffer/cache_iterator.go: -------------------------------------------------------------------------------- 1 | package codebuffer 2 | 3 | type cacheIterator struct { 4 | parts []*Part 5 | size int 6 | currentIndex int 7 | } 8 | 9 | func newCacheIterator(parts []*Part) (Iterator, error) { 10 | return &cacheIterator{ 11 | parts: parts, 12 | size: len(parts), 13 | currentIndex: -1, 14 | }, nil 15 | } 16 | 17 | func (i *cacheIterator) Next() bool { 18 | i.currentIndex++ 19 | return i.currentIndex < i.size 20 | } 21 | 22 | func (i *cacheIterator) Value() *Part { 23 | if i.currentIndex < 0 || i.currentIndex >= i.size { 24 | return nil 25 | } 26 | return i.parts[i.currentIndex] 27 | } 28 | 29 | func (i *cacheIterator) Error() error { 30 | return nil 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/Eun/yaegi-template/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/Eun/yaegi-template 2 | 3 | go 1.14 4 | 5 | require ( 6 | github.com/pkg/errors v0.9.1 7 | github.com/stretchr/testify v1.7.0 8 | github.com/traefik/yaegi v0.9.21 9 | go.uber.org/atomic v1.9.0 10 | gopkg.in/yaml.v3 v3.0.0-20200615113413-eeeca48fe776 // indirect 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/aaw/maybe_tls/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/araddon/dateparse/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.10.x 5 | - 1.11.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - go test -race -coverprofile=coverage.txt -covermode=atomic 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/dave/jennifer/jen/add.go: -------------------------------------------------------------------------------- 1 | package jen 2 | 3 | // Add appends the provided items to the statement. 4 | func Add(code ...Code) *Statement { 5 | return newStatement().Add(code...) 6 | } 7 | 8 | // Add appends the provided items to the statement. 9 | func (g *Group) Add(code ...Code) *Statement { 10 | s := Add(code...) 11 | g.items = append(g.items, s) 12 | return s 13 | } 14 | 15 | // Add appends the provided items to the statement. 16 | func (s *Statement) Add(code ...Code) *Statement { 17 | *s = append(*s, code...) 18 | return s 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/dave/jennifer/jen/do.go: -------------------------------------------------------------------------------- 1 | package jen 2 | 3 | // Do calls the provided function with the statement as a parameter. Use for 4 | // embedding logic. 5 | func Do(f func(*Statement)) *Statement { 6 | return newStatement().Do(f) 7 | } 8 | 9 | // Do calls the provided function with the statement as a parameter. Use for 10 | // embedding logic. 11 | func (g *Group) Do(f func(*Statement)) *Statement { 12 | s := Do(f) 13 | g.items = append(g.items, s) 14 | return s 15 | } 16 | 17 | // Do calls the provided function with the statement as a parameter. Use for 18 | // embedding logic. 19 | func (s *Statement) Do(f func(*Statement)) *Statement { 20 | f(s) 21 | return s 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/dave/jennifer/jen/generics.go: -------------------------------------------------------------------------------- 1 | package jen 2 | -------------------------------------------------------------------------------- /vendor/github.com/dave/jennifer/jen/reserved.go: -------------------------------------------------------------------------------- 1 | package jen 2 | 3 | var reserved = []string{ 4 | /* keywords */ 5 | "break", "default", "func", "interface", "select", "case", "defer", "go", "map", "struct", "chan", "else", "goto", "package", "switch", "const", "fallthrough", "if", "range", "type", "continue", "for", "import", "return", "var", 6 | /* predeclared */ 7 | "bool", "byte", "complex64", "complex128", "error", "float32", "float64", "int", "int8", "int16", "int32", "int64", "rune", "string", "uint", "uint8", "uint16", "uint32", "uint64", "uintptr", "true", "false", "iota", "nil", "append", "cap", "close", "complex", "copy", "delete", "imag", "len", "make", "new", "panic", "print", "println", "real", "recover", 8 | /* common variables */ 9 | "err", 10 | } 11 | 12 | // IsReservedWord returns if this is a reserved word in go 13 | func IsReservedWord(alias string) bool { 14 | for _, name := range reserved { 15 | if alias == name { 16 | return true 17 | } 18 | } 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/davecgh/go-spew/LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2012-2016 Dave Collins 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES 10 | WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF 11 | MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 12 | ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES 13 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN 14 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 15 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/diff/debug_disable.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !cmp_debug 6 | // +build !cmp_debug 7 | 8 | package diff 9 | 10 | var debug debugger 11 | 12 | type debugger struct{} 13 | 14 | func (debugger) Begin(_, _ int, f EqualFunc, _, _ *EditScript) EqualFunc { 15 | return f 16 | } 17 | func (debugger) Update() {} 18 | func (debugger) Finish() {} 19 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-cmp/cmp/internal/flags/flags.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019, The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package flags 6 | 7 | // Deterministic controls whether the output of Diff should be deterministic. 8 | // This is only used for testing. 9 | var Deterministic bool 10 | -------------------------------------------------------------------------------- /vendor/github.com/gookit/color/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | *.swp 3 | .idea 4 | *.patch 5 | ### Go template 6 | # Binaries for programs and plugins 7 | *.exe 8 | *.exe~ 9 | *.dll 10 | *.so 11 | *.dylib 12 | 13 | # Test binary, build with `go test -c` 14 | *.test 15 | 16 | # Output of the go coverage tool, specifically when used with LiteIDE 17 | *.out 18 | .DS_Store 19 | app 20 | demo 21 | -------------------------------------------------------------------------------- /vendor/github.com/gookit/color/.nojekyll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/gookit/color/.nojekyll -------------------------------------------------------------------------------- /vendor/github.com/gookit/color/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/gookit/color 2 | 3 | go 1.16 4 | 5 | require ( 6 | github.com/stretchr/testify v1.8.0 7 | github.com/xo/terminfo v0.0.0-20210125001918-ca9a967f8778 8 | golang.org/x/sys v0.0.0-20210330210617-4fbd30eecc44 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/gookit/color/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | Color - A command-line color library with true color support, universal API methods and Windows support. 9 | 10 | 11 |
12 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/.editorconfig: -------------------------------------------------------------------------------- 1 | ; https://editorconfig.org/ 2 | 3 | root = true 4 | 5 | [*] 6 | insert_final_newline = true 7 | charset = utf-8 8 | trim_trailing_whitespace = true 9 | indent_style = space 10 | indent_size = 2 11 | 12 | [{Makefile,go.mod,go.sum,*.go,.gitmodules}] 13 | indent_style = tab 14 | indent_size = 4 15 | 16 | [*.md] 17 | indent_size = 4 18 | trim_trailing_whitespace = false 19 | 20 | eclint_indent_style = unset -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/.gitignore: -------------------------------------------------------------------------------- 1 | coverage.coverprofile 2 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/gorilla/mux 2 | 3 | go 1.20 4 | -------------------------------------------------------------------------------- /vendor/github.com/gorilla/mux/test_helpers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Gorilla Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package mux 6 | 7 | import "net/http" 8 | 9 | // SetURLVars sets the URL variables for the given request, to be accessed via 10 | // mux.Vars for testing route behaviour. Arguments are not modified, a shallow 11 | // copy is returned. 12 | // 13 | // This API should only be used for testing purposes; it provides a way to 14 | // inject variables into the request context. Alternatively, URL variables 15 | // can be set by making a route that captures the required variables, 16 | // starting a server and sending the request to that server. 17 | func SetURLVars(r *http.Request, val map[string]string) *http.Request { 18 | return requestWithVars(r, val) 19 | } 20 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/errwrap/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/errwrap 2 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | 3 | language: go 4 | 5 | go: 6 | - 1.x 7 | 8 | branches: 9 | only: 10 | - master 11 | 12 | script: env GO111MODULE=on make test testrace 13 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/Makefile: -------------------------------------------------------------------------------- 1 | TEST?=./... 2 | 3 | default: test 4 | 5 | # test runs the test suite and vets the code. 6 | test: generate 7 | @echo "==> Running tests..." 8 | @go list $(TEST) \ 9 | | grep -v "/vendor/" \ 10 | | xargs -n1 go test -timeout=60s -parallel=10 ${TESTARGS} 11 | 12 | # testrace runs the race checker 13 | testrace: generate 14 | @echo "==> Running tests (race)..." 15 | @go list $(TEST) \ 16 | | grep -v "/vendor/" \ 17 | | xargs -n1 go test -timeout=60s -race ${TESTARGS} 18 | 19 | # updatedeps installs all the dependencies needed to run and build. 20 | updatedeps: 21 | @sh -c "'${CURDIR}/scripts/deps.sh' '${NAME}'" 22 | 23 | # generate runs `go generate` to build the dynamically generated source files. 24 | generate: 25 | @echo "==> Generating..." 26 | @find . -type f -name '.DS_Store' -delete 27 | @go list ./... \ 28 | | grep -v "/vendor/" \ 29 | | xargs -n1 go generate 30 | 31 | .PHONY: default test testrace updatedeps generate 32 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/flatten.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Flatten flattens the given error, merging any *Errors together into 4 | // a single *Error. 5 | func Flatten(err error) error { 6 | // If it isn't an *Error, just return the error as-is 7 | if _, ok := err.(*Error); !ok { 8 | return err 9 | } 10 | 11 | // Otherwise, make the result and flatten away! 12 | flatErr := new(Error) 13 | flatten(err, flatErr) 14 | return flatErr 15 | } 16 | 17 | func flatten(err error, flatErr *Error) { 18 | switch err := err.(type) { 19 | case *Error: 20 | for _, e := range err.Errors { 21 | flatten(e, flatErr) 22 | } 23 | default: 24 | flatErr.Errors = append(flatErr.Errors, err) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/format.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | import ( 4 | "fmt" 5 | "strings" 6 | ) 7 | 8 | // ErrorFormatFunc is a function callback that is called by Error to 9 | // turn the list of errors into a string. 10 | type ErrorFormatFunc func([]error) string 11 | 12 | // ListFormatFunc is a basic formatter that outputs the number of errors 13 | // that occurred along with a bullet point list of the errors. 14 | func ListFormatFunc(es []error) string { 15 | if len(es) == 1 { 16 | return fmt.Sprintf("1 error occurred:\n\t* %s\n\n", es[0]) 17 | } 18 | 19 | points := make([]string, len(es)) 20 | for i, err := range es { 21 | points[i] = fmt.Sprintf("* %s", err) 22 | } 23 | 24 | return fmt.Sprintf( 25 | "%d errors occurred:\n\t%s\n\n", 26 | len(es), strings.Join(points, "\n\t")) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/hashicorp/go-multierror 2 | 3 | go 1.14 4 | 5 | require github.com/hashicorp/errwrap v1.0.0 6 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/go.sum: -------------------------------------------------------------------------------- 1 | github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= 2 | github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= 3 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/group.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | import "sync" 4 | 5 | // Group is a collection of goroutines which return errors that need to be 6 | // coalesced. 7 | type Group struct { 8 | mutex sync.Mutex 9 | err *Error 10 | wg sync.WaitGroup 11 | } 12 | 13 | // Go calls the given function in a new goroutine. 14 | // 15 | // If the function returns an error it is added to the group multierror which 16 | // is returned by Wait. 17 | func (g *Group) Go(f func() error) { 18 | g.wg.Add(1) 19 | 20 | go func() { 21 | defer g.wg.Done() 22 | 23 | if err := f(); err != nil { 24 | g.mutex.Lock() 25 | g.err = Append(g.err, err) 26 | g.mutex.Unlock() 27 | } 28 | }() 29 | } 30 | 31 | // Wait blocks until all function calls from the Go method have returned, then 32 | // returns the multierror. 33 | func (g *Group) Wait() *Error { 34 | g.wg.Wait() 35 | g.mutex.Lock() 36 | defer g.mutex.Unlock() 37 | return g.err 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/prefix.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/hashicorp/errwrap" 7 | ) 8 | 9 | // Prefix is a helper function that will prefix some text 10 | // to the given error. If the error is a multierror.Error, then 11 | // it will be prefixed to each wrapped error. 12 | // 13 | // This is useful to use when appending multiple multierrors 14 | // together in order to give better scoping. 15 | func Prefix(err error, prefix string) error { 16 | if err == nil { 17 | return nil 18 | } 19 | 20 | format := fmt.Sprintf("%s {{err}}", prefix) 21 | switch err := err.(type) { 22 | case *Error: 23 | // Typed nils can reach here, so initialize if we are nil 24 | if err == nil { 25 | err = new(Error) 26 | } 27 | 28 | // Wrap each of the errors 29 | for i, e := range err.Errors { 30 | err.Errors[i] = errwrap.Wrapf(format, e) 31 | } 32 | 33 | return err 34 | default: 35 | return errwrap.Wrapf(format, err) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/hashicorp/go-multierror/sort.go: -------------------------------------------------------------------------------- 1 | package multierror 2 | 3 | // Len implements sort.Interface function for length 4 | func (err Error) Len() int { 5 | return len(err.Errors) 6 | } 7 | 8 | // Swap implements sort.Interface function for swapping elements 9 | func (err Error) Swap(i, j int) { 10 | err.Errors[i], err.Errors[j] = err.Errors[j], err.Errors[i] 11 | } 12 | 13 | // Less implements sort.Interface function for determining order 14 | func (err Error) Less(i, j int) bool { 15 | return err.Errors[i].Error() < err.Errors[j].Error() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/.dockerignore: -------------------------------------------------------------------------------- 1 | /gojq 2 | /goxz 3 | /CREDITS 4 | /._* 5 | /y.output 6 | *.exe 7 | *.test 8 | *.out 9 | /.github/ 10 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/.gitattributes: -------------------------------------------------------------------------------- 1 | **/testdata/** binary 2 | /builtin.go eol=lf 3 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/.gitignore: -------------------------------------------------------------------------------- 1 | /gojq 2 | /goxz 3 | /CREDITS 4 | /._* 5 | /y.output 6 | *.exe 7 | *.test 8 | *.out 9 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.17 AS builder 2 | 3 | WORKDIR /app 4 | COPY . . 5 | ENV CGO_ENABLED 0 6 | RUN make build 7 | 8 | FROM gcr.io/distroless/static:debug 9 | 10 | COPY --from=builder /app/gojq / 11 | ENTRYPOINT ["/gojq"] 12 | CMD ["--help"] 13 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/env.go: -------------------------------------------------------------------------------- 1 | package gojq 2 | 3 | import "context" 4 | 5 | type env struct { 6 | pc int 7 | stack *stack 8 | paths *stack 9 | scopes *scopeStack 10 | values []interface{} 11 | codes []*code 12 | codeinfos []codeinfo 13 | forks []fork 14 | backtrack bool 15 | offset int 16 | expdepth int 17 | label int 18 | args [32]interface{} // len(env.args) > maxarity 19 | ctx context.Context 20 | } 21 | 22 | func newEnv(ctx context.Context) *env { 23 | return &env{ 24 | stack: newStack(), 25 | paths: newStack(), 26 | scopes: newScopeStack(), 27 | ctx: ctx, 28 | } 29 | } 30 | 31 | type scope struct { 32 | id int 33 | offset int 34 | pc int 35 | saveindex int 36 | outerindex int 37 | } 38 | 39 | type fork struct { 40 | pc int 41 | stackindex int 42 | stacklimit int 43 | scopeindex int 44 | scopelimit int 45 | pathindex int 46 | pathlimit int 47 | expdepth int 48 | } 49 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/go.dev.mod: -------------------------------------------------------------------------------- 1 | module github.com/itchyny/gojq 2 | 3 | go 1.15 4 | 5 | require ( 6 | github.com/itchyny/astgen-go v0.0.0-20210826141707-ade98c634090 // indirect 7 | github.com/itchyny/timefmt-go v0.1.3 8 | ) 9 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/go.dev.sum: -------------------------------------------------------------------------------- 1 | github.com/itchyny/astgen-go v0.0.0-20210826141707-ade98c634090 h1:pW2HsixHy+zWi2OWjbTiVFYwHDss8pOw3RYk9sGSGQM= 2 | github.com/itchyny/astgen-go v0.0.0-20210826141707-ade98c634090/go.mod h1:296z3W7Xsrp2mlIY88ruDKscuvrkL6zXCNRtaYVshzw= 3 | github.com/itchyny/timefmt-go v0.1.3 h1:7M3LGVDsqcd0VZH2U+x393obrzZisp7C0uEe921iRkU= 4 | github.com/itchyny/timefmt-go v0.1.3/go.mod h1:0osSSCQSASBJMsIZnhAaF1C2fCBTJZXrnj37mG8/c+A= 5 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/itchyny/gojq 2 | 3 | go 1.15 4 | 5 | require ( 6 | github.com/google/go-cmp v0.5.4 7 | github.com/itchyny/go-flags v1.5.0 8 | github.com/itchyny/timefmt-go v0.1.3 9 | github.com/mattn/go-isatty v0.0.13 10 | github.com/mattn/go-runewidth v0.0.9 11 | golang.org/x/sys v0.0.0-20210831042530-f4d43177bf5e // indirect 12 | gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/gojq.go: -------------------------------------------------------------------------------- 1 | // Package gojq provides the parser and interpreter of gojq. 2 | // 3 | // Please refer to https://github.com/itchyny/gojq#usage-as-a-library for 4 | // introduction of the usage as a library. 5 | package gojq 6 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/math.go: -------------------------------------------------------------------------------- 1 | package gojq 2 | 3 | import "math/bits" 4 | 5 | const ( 6 | maxInt = 1<<(bits.UintSize-1) - 1 // math.MaxInt64 or math.MaxInt32 7 | minInt = -maxInt - 1 // math.MinInt64 or math.MinInt32 8 | maxHalfInt = 1<<(bits.UintSize/2-1) - 1 // math.MaxInt32 or math.MaxInt16 9 | minHalfInt = -maxHalfInt - 1 // math.MinInt32 or math.MinInt16 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/prepend.go: -------------------------------------------------------------------------------- 1 | package gojq 2 | 3 | func prependQuery(xs []*Query, x *Query) []*Query { 4 | xs = append(xs, nil) 5 | copy(xs[1:], xs) 6 | xs[0] = x 7 | return xs 8 | } 9 | 10 | func prependImport(xs []*Import, x *Import) []*Import { 11 | xs = append(xs, nil) 12 | copy(xs[1:], xs) 13 | xs[0] = x 14 | return xs 15 | } 16 | 17 | func prependFuncDef(xs []*FuncDef, x *FuncDef) []*FuncDef { 18 | xs = append(xs, nil) 19 | copy(xs[1:], xs) 20 | xs[0] = x 21 | return xs 22 | } 23 | 24 | func prependIfElif(xs []*IfElif, x *IfElif) []*IfElif { 25 | xs = append(xs, nil) 26 | copy(xs[1:], xs) 27 | xs[0] = x 28 | return xs 29 | } 30 | 31 | func prependObjectKeyVal(xs []*ObjectKeyVal, x *ObjectKeyVal) []*ObjectKeyVal { 32 | xs = append(xs, nil) 33 | copy(xs[1:], xs) 34 | xs[0] = x 35 | return xs 36 | } 37 | 38 | func prependConstObjectKeyVal(xs []*ConstObjectKeyVal, x *ConstObjectKeyVal) []*ConstObjectKeyVal { 39 | xs = append(xs, nil) 40 | copy(xs[1:], xs) 41 | xs[0] = x 42 | return xs 43 | } 44 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/gojq/release.go: -------------------------------------------------------------------------------- 1 | //go:build !debug 2 | // +build !debug 3 | 4 | package gojq 5 | 6 | func (c *compiler) appendCodeInfo(interface{}) {} 7 | 8 | func (c *compiler) deleteCodeInfo(string) {} 9 | 10 | func (env *env) debugCodes() {} 11 | 12 | func (env *env) debugState(int, bool) {} 13 | 14 | func (env *env) debugForks(int, string) {} 15 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/timefmt-go/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Changelog 2 | ## [v0.1.3](https://github.com/itchyny/timefmt-go/compare/v0.1.2..v0.1.3) (2021-04-14) 3 | * implement `ParseInLocation` for configuring the default location 4 | 5 | ## [v0.1.2](https://github.com/itchyny/timefmt-go/compare/v0.1.1..v0.1.2) (2021-02-22) 6 | * implement parsing/formatting time zone offset with colons (`%:z`, `%::z`, `%:::z`) 7 | * recognize `Z` as UTC on parsing time zone offset (`%z`) 8 | * fix padding on formatting time zone offset (`%z`) 9 | 10 | ## [v0.1.1](https://github.com/itchyny/timefmt-go/compare/v0.1.0..v0.1.1) (2020-09-01) 11 | * fix overflow check in 32-bit architecture 12 | 13 | ## [v0.1.0](https://github.com/itchyny/timefmt-go/compare/2c02364..v0.1.0) (2020-08-16) 14 | * initial implementation 15 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/timefmt-go/Makefile: -------------------------------------------------------------------------------- 1 | GOBIN ?= $(shell go env GOPATH)/bin 2 | export GO111MODULE=on 3 | 4 | .PHONY: all 5 | all: test 6 | 7 | .PHONY: test 8 | test: 9 | go test -v ./... 10 | 11 | .PHONY: lint 12 | lint: $(GOBIN)/golint 13 | go vet ./... 14 | golint -set_exit_status ./... 15 | 16 | $(GOBIN)/golint: 17 | cd && go get golang.org/x/lint/golint 18 | 19 | .PHONY: clean 20 | clean: 21 | go clean 22 | -------------------------------------------------------------------------------- /vendor/github.com/itchyny/timefmt-go/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/itchyny/timefmt-go 2 | 3 | go 1.14 4 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | name = "github.com/modern-go/concurrent" 6 | packages = ["."] 7 | revision = "e0a39a4cb4216ea8db28e22a69f4ec25610d513a" 8 | version = "1.0.0" 9 | 10 | [[projects]] 11 | name = "github.com/modern-go/reflect2" 12 | packages = ["."] 13 | revision = "4b7aa43c6742a2c18fdef89dd197aaae7dac7ccd" 14 | version = "1.0.1" 15 | 16 | [solve-meta] 17 | analyzer-name = "dep" 18 | analyzer-version = 1 19 | inputs-digest = "ea54a775e5a354cb015502d2e7aa4b74230fc77e894f34a838b268c25ec8eeb8" 20 | solver-name = "gps-cdcl" 21 | solver-version = 1 22 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md 4 | # for detailed Gopkg.toml documentation. 5 | # 6 | # required = ["github.com/user/thing/cmd/thing"] 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 8 | # 9 | # [[constraint]] 10 | # name = "github.com/user/project" 11 | # version = "1.0.0" 12 | # 13 | # [[constraint]] 14 | # name = "github.com/user/project2" 15 | # branch = "dev" 16 | # source = "github.com/myfork/project2" 17 | # 18 | # [[override]] 19 | # name = "github.com/x/y" 20 | # version = "2.4.0" 21 | 22 | ignored = ["github.com/davecgh/go-spew*","github.com/google/gofuzz*","github.com/stretchr/testify*"] 23 | 24 | [[constraint]] 25 | name = "github.com/modern-go/reflect2" 26 | version = "1.0.1" 27 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -e 3 | set -x 4 | 5 | if [ ! -d /tmp/build-golang/src/github.com/json-iterator ]; then 6 | mkdir -p /tmp/build-golang/src/github.com/json-iterator 7 | ln -s $PWD /tmp/build-golang/src/github.com/json-iterator/go 8 | fi 9 | export GOPATH=/tmp/build-golang 10 | go get -u github.com/golang/dep/cmd/dep 11 | cd /tmp/build-golang/src/github.com/json-iterator/go 12 | exec $GOPATH/bin/dep ensure -update 13 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/fuzzy_mode_convert_table.md: -------------------------------------------------------------------------------- 1 | | json type \ dest type | bool | int | uint | float |string| 2 | | --- | --- | --- | --- |--|--| 3 | | number | positive => true
negative => true
zero => false| 23.2 => 23
-32.1 => -32| 12.1 => 12
-12.1 => 0|as normal|same as origin| 4 | | string | empty string => false
string "0" => false
other strings => true | "123.32" => 123
"-123.4" => -123
"123.23xxxw" => 123
"abcde12" => 0
"-32.1" => -32| 13.2 => 13
-1.1 => 0 |12.1 => 12.1
-12.3 => -12.3
12.4xxa => 12.4
+1.1e2 =>110 |same as origin| 5 | | bool | true => true
false => false| true => 1
false => 0 | true => 1
false => 0 |true => 1
false => 0|true => "true"
false => "false"| 6 | | object | true | 0 | 0 |0|originnal json| 7 | | array | empty array => false
nonempty array => true| [] => 0
[1,2] => 1 | [] => 0
[1,2] => 1 |[] => 0
[1,2] => 1|original json| -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/json-iterator/go 2 | 3 | go 1.12 4 | 5 | require ( 6 | github.com/davecgh/go-spew v1.1.1 7 | github.com/google/gofuzz v1.0.0 8 | github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 9 | github.com/modern-go/reflect2 v1.0.2 10 | github.com/stretchr/testify v1.3.0 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/jsoniter.go: -------------------------------------------------------------------------------- 1 | // Package jsoniter implements encoding and decoding of JSON as defined in 2 | // RFC 4627 and provides interfaces with identical syntax of standard lib encoding/json. 3 | // Converting from encoding/json to jsoniter is no more than replacing the package with jsoniter 4 | // and variable type declarations (if any). 5 | // jsoniter interfaces gives 100% compatibility with code using standard lib. 6 | // 7 | // "JSON and Go" 8 | // (https://golang.org/doc/articles/json_and_go.html) 9 | // gives a description of how Marshal/Unmarshal operate 10 | // between arbitrary or predefined json objects and bytes, 11 | // and it applies to jsoniter.Marshal/Unmarshal as well. 12 | // 13 | // Besides, jsoniter.Iterator provides a different set of interfaces 14 | // iterating given bytes/string/reader 15 | // and yielding parsed elements one by one. 16 | // This set of interfaces reads input as required and gives 17 | // better performance. 18 | package jsoniter 19 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/json-iterator/go $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/k0kubun/pp/wercker.yml: -------------------------------------------------------------------------------- 1 | box: golang 2 | build: 3 | steps: 4 | - setup-go-workspace 5 | 6 | - script: 7 | name: go get 8 | code: | 9 | cd $WERCKER_SOURCE_DIR 10 | go version 11 | go get -t ./... 12 | 13 | - script: 14 | name: go test 15 | code: | 16 | go test -v 17 | -------------------------------------------------------------------------------- /vendor/github.com/lunixbochs/vtclean/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | 4 | script: go test -v 5 | 6 | go: 7 | - 1.5 8 | - 1.6 9 | - 1.7 10 | -------------------------------------------------------------------------------- /vendor/github.com/lunixbochs/vtclean/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/lunixbochs/vtclean 2 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./go.test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package colorable 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | _ "github.com/mattn/go-isatty" 10 | ) 11 | 12 | // NewColorable returns new instance of Writer which handles escape sequence. 13 | func NewColorable(file *os.File) io.Writer { 14 | if file == nil { 15 | panic("nil passed instead of *os.File to NewColorable()") 16 | } 17 | 18 | return file 19 | } 20 | 21 | // NewColorableStdout returns new instance of Writer which handles escape sequence for stdout. 22 | func NewColorableStdout() io.Writer { 23 | return os.Stdout 24 | } 25 | 26 | // NewColorableStderr returns new instance of Writer which handles escape sequence for stderr. 27 | func NewColorableStderr() io.Writer { 28 | return os.Stderr 29 | } 30 | 31 | // EnableColorsStdout enable colors if possible. 32 | func EnableColorsStdout(enabled *bool) func() { 33 | if enabled != nil { 34 | *enabled = true 35 | } 36 | return func() {} 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/colorable_others.go: -------------------------------------------------------------------------------- 1 | // +build !windows 2 | // +build !appengine 3 | 4 | package colorable 5 | 6 | import ( 7 | "io" 8 | "os" 9 | 10 | _ "github.com/mattn/go-isatty" 11 | ) 12 | 13 | // NewColorable returns new instance of Writer which handles escape sequence. 14 | func NewColorable(file *os.File) io.Writer { 15 | if file == nil { 16 | panic("nil passed instead of *os.File to NewColorable()") 17 | } 18 | 19 | return file 20 | } 21 | 22 | // NewColorableStdout returns new instance of Writer which handles escape sequence for stdout. 23 | func NewColorableStdout() io.Writer { 24 | return os.Stdout 25 | } 26 | 27 | // NewColorableStderr returns new instance of Writer which handles escape sequence for stderr. 28 | func NewColorableStderr() io.Writer { 29 | return os.Stderr 30 | } 31 | 32 | // EnableColorsStdout enable colors if possible. 33 | func EnableColorsStdout(enabled *bool) func() { 34 | if enabled != nil { 35 | *enabled = true 36 | } 37 | return func() {} 38 | } 39 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mattn/go-colorable 2 | 3 | require ( 4 | github.com/mattn/go-isatty v0.0.12 5 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae // indirect 6 | ) 7 | 8 | go 1.13 9 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.sum: -------------------------------------------------------------------------------- 1 | github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY= 2 | github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= 3 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 4 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae h1:/WDfKMnPU+m5M4xB+6x4kaepxRw6jWvR5iDRdvjHgy8= 5 | golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 6 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-colorable/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.13.x 5 | - tip 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./go.test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/mattn/go-isatty 2 | 3 | go 1.12 4 | 5 | require golang.org/x/sys v0.0.0-20200116001909-b77594299b42 6 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.sum: -------------------------------------------------------------------------------- 1 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg= 2 | golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= 3 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | // +build appengine js nacl wasm 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on js and appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | 11 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 12 | // terminal. This is also always false on this environment. 13 | func IsCygwinTerminal(fd uintptr) bool { 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | // +build plan9 2 | 3 | package isatty 4 | 5 | import ( 6 | "syscall" 7 | ) 8 | 9 | // IsTerminal returns true if the given file descriptor is a terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | path, err := syscall.Fd2path(int(fd)) 12 | if err != nil { 13 | return false 14 | } 15 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 16 | } 17 | 18 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 19 | // terminal. This is also always false on this environment. 20 | func IsCygwinTerminal(fd uintptr) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import ( 7 | "golang.org/x/sys/unix" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | // see: https://src.illumos.org/source/xref/illumos-gate/usr/src/lib/libc/port/gen/isatty.c 12 | func IsTerminal(fd uintptr) bool { 13 | _, err := unix.IoctlGetTermio(int(fd), unix.TCGETA) 14 | return err == nil 15 | } 16 | 17 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 18 | // terminal. This is also always false on this environment. 19 | func IsCygwinTerminal(fd uintptr) bool { 20 | return false 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | // +build linux aix zos 2 | // +build !appengine 3 | 4 | package isatty 5 | 6 | import "golang.org/x/sys/unix" 7 | 8 | // IsTerminal return true if the file descriptor is terminal. 9 | func IsTerminal(fd uintptr) bool { 10 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 11 | return err == nil 12 | } 13 | 14 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 15 | // terminal. This is also always false on this environment. 16 | func IsCygwinTerminal(fd uintptr) bool { 17 | return false 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | 10 | script: 11 | - ./test.sh 12 | 13 | after_success: 14 | - bash <(curl -s https://codecov.io/bash) 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/executor.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import "context" 4 | 5 | // Executor replace go keyword to start a new goroutine 6 | // the goroutine should cancel itself if the context passed in has been cancelled 7 | // the goroutine started by the executor, is owned by the executor 8 | // we can cancel all executors owned by the executor just by stop the executor itself 9 | // however Executor interface does not Stop method, the one starting and owning executor 10 | // should use the concrete type of executor, instead of this interface. 11 | type Executor interface { 12 | // Go starts a new goroutine controlled by the context 13 | Go(handler func(ctx context.Context)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map is a wrapper for sync.Map introduced in go1.9 8 | type Map struct { 9 | sync.Map 10 | } 11 | 12 | // NewMap creates a thread safe Map 13 | func NewMap() *Map { 14 | return &Map{} 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/go_below_19.go: -------------------------------------------------------------------------------- 1 | //+build !go1.9 2 | 3 | package concurrent 4 | 5 | import "sync" 6 | 7 | // Map implements a thread safe map for go version below 1.9 using mutex 8 | type Map struct { 9 | lock sync.RWMutex 10 | data map[interface{}]interface{} 11 | } 12 | 13 | // NewMap creates a thread safe map 14 | func NewMap() *Map { 15 | return &Map{ 16 | data: make(map[interface{}]interface{}, 32), 17 | } 18 | } 19 | 20 | // Load is same as sync.Map Load 21 | func (m *Map) Load(key interface{}) (elem interface{}, found bool) { 22 | m.lock.RLock() 23 | elem, found = m.data[key] 24 | m.lock.RUnlock() 25 | return 26 | } 27 | 28 | // Load is same as sync.Map Store 29 | func (m *Map) Store(key interface{}, elem interface{}) { 30 | m.lock.Lock() 31 | m.data[key] = elem 32 | m.lock.Unlock() 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/log.go: -------------------------------------------------------------------------------- 1 | package concurrent 2 | 3 | import ( 4 | "os" 5 | "log" 6 | "io/ioutil" 7 | ) 8 | 9 | // ErrorLogger is used to print out error, can be set to writer other than stderr 10 | var ErrorLogger = log.New(os.Stderr, "", 0) 11 | 12 | // InfoLogger is used to print informational message, default to off 13 | var InfoLogger = log.New(ioutil.Discard, "", 0) -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -coverprofile=profile.out -coverpkg=github.com/modern-go/concurrent $d 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.9.x 5 | - 1.x 6 | 7 | before_install: 8 | - go get -t -v ./... 9 | - go get -t -v github.com/modern-go/reflect2-tests/... 10 | 11 | script: 12 | - ./test.sh 13 | 14 | after_success: 15 | - bash <(curl -s https://codecov.io/bash) 16 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [solve-meta] 5 | analyzer-name = "dep" 6 | analyzer-version = 1 7 | input-imports = [] 8 | solver-name = "gps-cdcl" 9 | solver-version = 1 10 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/Gopkg.toml: -------------------------------------------------------------------------------- 1 | # Gopkg.toml example 2 | # 3 | # Refer to https://golang.github.io/dep/docs/Gopkg.toml.html 4 | # for detailed Gopkg.toml documentation. 5 | # 6 | # required = ["github.com/user/thing/cmd/thing"] 7 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 8 | # 9 | # [[constraint]] 10 | # name = "github.com/user/project" 11 | # version = "1.0.0" 12 | # 13 | # [[constraint]] 14 | # name = "github.com/user/project2" 15 | # branch = "dev" 16 | # source = "github.com/myfork/project2" 17 | # 18 | # [[override]] 19 | # name = "github.com/x/y" 20 | # version = "2.4.0" 21 | # 22 | # [prune] 23 | # non-go = false 24 | # go-tests = true 25 | # unused-packages = true 26 | 27 | ignored = [] 28 | 29 | [prune] 30 | go-tests = true 31 | unused-packages = true 32 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/modern-go/reflect2 2 | 3 | go 1.12 4 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_118.go: -------------------------------------------------------------------------------- 1 | //+build go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer, it *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | var it hiter 17 | mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj), &it) 18 | return &UnsafeMapIterator{ 19 | hiter: &it, 20 | pKeyRType: type2.pKeyRType, 21 | pElemRType: type2.pElemRType, 22 | } 23 | } -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_above_19.go: -------------------------------------------------------------------------------- 1 | //+build go1.9 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | //go:linkname resolveTypeOff reflect.resolveTypeOff 10 | func resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer 11 | 12 | //go:linkname makemap reflect.makemap 13 | func makemap(rtype unsafe.Pointer, cap int) (m unsafe.Pointer) 14 | 15 | func makeMapWithSize(rtype unsafe.Pointer, cap int) unsafe.Pointer { 16 | return makemap(rtype, cap) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/go_below_118.go: -------------------------------------------------------------------------------- 1 | //+build !go1.18 2 | 3 | package reflect2 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // m escapes into the return value, but the caller of mapiterinit 10 | // doesn't let the return value escape. 11 | //go:noescape 12 | //go:linkname mapiterinit reflect.mapiterinit 13 | func mapiterinit(rtype unsafe.Pointer, m unsafe.Pointer) (val *hiter) 14 | 15 | func (type2 *UnsafeMapType) UnsafeIterate(obj unsafe.Pointer) MapIterator { 16 | return &UnsafeMapIterator{ 17 | hiter: mapiterinit(type2.rtype, *(*unsafe.Pointer)(obj)), 18 | pKeyRType: type2.pKeyRType, 19 | pElemRType: type2.pElemRType, 20 | } 21 | } -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/reflect2_amd64.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/relfect2_386.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/relfect2_arm.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/relfect2_arm64.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/relfect2_mips64x.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/relfect2_mipsx.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/modern-go/reflect2/relfect2_s390x.s -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/safe_struct.go: -------------------------------------------------------------------------------- 1 | package reflect2 2 | 3 | type safeStructType struct { 4 | safeType 5 | } 6 | 7 | func (type2 *safeStructType) FieldByName(name string) StructField { 8 | field, found := type2.Type.FieldByName(name) 9 | if !found { 10 | panic("field " + name + " not found") 11 | } 12 | return &safeField{StructField: field} 13 | } 14 | 15 | func (type2 *safeStructType) Field(i int) StructField { 16 | return &safeField{StructField: type2.Type.Field(i)} 17 | } 18 | 19 | func (type2 *safeStructType) FieldByIndex(index []int) StructField { 20 | return &safeField{StructField: type2.Type.FieldByIndex(index)} 21 | } 22 | 23 | func (type2 *safeStructType) FieldByNameFunc(match func(string) bool) StructField { 24 | field, found := type2.Type.FieldByNameFunc(match) 25 | if !found { 26 | panic("field match condition not found in " + type2.Type.String()) 27 | } 28 | return &safeField{StructField: field} 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | *.test 24 | *.prof 25 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go_import_path: github.com/pkg/errors 3 | go: 4 | - 1.11.x 5 | - 1.12.x 6 | - 1.13.x 7 | - tip 8 | 9 | script: 10 | - make check 11 | -------------------------------------------------------------------------------- /vendor/github.com/pkg/errors/appveyor.yml: -------------------------------------------------------------------------------- 1 | version: build-{build}.{branch} 2 | 3 | clone_folder: C:\gopath\src\github.com\pkg\errors 4 | shallow_clone: true # for startup speed 5 | 6 | environment: 7 | GOPATH: C:\gopath 8 | 9 | platform: 10 | - x64 11 | 12 | # http://www.appveyor.com/docs/installed-software 13 | install: 14 | # some helpful output for debugging builds 15 | - go version 16 | - go env 17 | # pre-installed MinGW at C:\MinGW is 32bit only 18 | # but MSYS2 at C:\msys64 has mingw64 19 | - set PATH=C:\msys64\mingw64\bin;%PATH% 20 | - gcc --version 21 | - g++ --version 22 | 23 | build_script: 24 | - go install -v ./... 25 | 26 | test_script: 27 | - set PATH=C:\gopath\bin;%PATH% 28 | - go test -v ./... 29 | 30 | #artifacts: 31 | # - path: '%GOPATH%\bin\*.exe' 32 | deploy: off 33 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_compare_can_convert.go: -------------------------------------------------------------------------------- 1 | //go:build go1.17 2 | // +build go1.17 3 | 4 | // TODO: once support for Go 1.16 is dropped, this file can be 5 | // merged/removed with assertion_compare_go1.17_test.go and 6 | // assertion_compare_legacy.go 7 | 8 | package assert 9 | 10 | import "reflect" 11 | 12 | // Wrapper around reflect.Value.CanConvert, for compatibility 13 | // reasons. 14 | func canConvert(value reflect.Value, to reflect.Type) bool { 15 | return value.CanConvert(to) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_compare_legacy.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.17 2 | // +build !go1.17 3 | 4 | // TODO: once support for Go 1.16 is dropped, this file can be 5 | // merged/removed with assertion_compare_go1.17_test.go and 6 | // assertion_compare_can_convert.go 7 | 8 | package assert 9 | 10 | import "reflect" 11 | 12 | // Older versions of Go does not have the reflect.Value.CanConvert 13 | // method. 14 | func canConvert(value reflect.Value, to reflect.Type) bool { 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_format.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentFormat}} 2 | func {{.DocInfo.Name}}f(t TestingT, {{.ParamsFormat}}) bool { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(t, {{.ForwardedParamsFormat}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/forward_assertions.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=assert -template=assertion_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/doc.go: -------------------------------------------------------------------------------- 1 | // Package require implements the same assertions as the `assert` package but 2 | // stops test execution when a test fails. 3 | // 4 | // Example Usage 5 | // 6 | // The following is a complete example using require in a standard test function: 7 | // import ( 8 | // "testing" 9 | // "github.com/stretchr/testify/require" 10 | // ) 11 | // 12 | // func TestSomething(t *testing.T) { 13 | // 14 | // var a string = "Hello" 15 | // var b string = "Hello" 16 | // 17 | // require.Equal(t, a, b, "The two words should be the same.") 18 | // 19 | // } 20 | // 21 | // Assertions 22 | // 23 | // The `require` package have same global functions as in the `assert` package, 24 | // but instead of returning a boolean result they call `t.FailNow()`. 25 | // 26 | // Every assertion function also takes an optional string message as the final argument, 27 | // allowing custom error messages to be appended to the message the assertion method outputs. 28 | package require 29 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/forward_requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // Assertions provides assertion methods around the 4 | // TestingT interface. 5 | type Assertions struct { 6 | t TestingT 7 | } 8 | 9 | // New makes a new Assertions object for the specified TestingT. 10 | func New(t TestingT) *Assertions { 11 | return &Assertions{ 12 | t: t, 13 | } 14 | } 15 | 16 | //go:generate sh -c "cd ../_codegen && go build && cd - && ../_codegen/_codegen -output-package=require -template=require_forward.go.tmpl -include-format-funcs" 17 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if h, ok := t.(tHelper); ok { h.Helper() } 4 | if assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { return } 5 | t.FailNow() 6 | } 7 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | if h, ok := a.t.(tHelper); ok { h.Helper() } 4 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 5 | } 6 | -------------------------------------------------------------------------------- /vendor/github.com/tidwall/pretty/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/tidwall/pretty 2 | 3 | go 1.16 4 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/interp/hooks.go: -------------------------------------------------------------------------------- 1 | package interp 2 | 3 | import "reflect" 4 | 5 | // convertFn is the signature of a symbol converter. 6 | type convertFn func(from, to reflect.Type) func(src, dest reflect.Value) 7 | 8 | // hooks are external symbol bindings. 9 | type hooks struct { 10 | convert []convertFn 11 | } 12 | 13 | func (h *hooks) Parse(m map[string]reflect.Value) { 14 | if con, ok := getConvertFn(m["convert"]); ok { 15 | h.convert = append(h.convert, con) 16 | } 17 | } 18 | 19 | func getConvertFn(v reflect.Value) (convertFn, bool) { 20 | if !v.IsValid() { 21 | return nil, false 22 | } 23 | fn, ok := v.Interface().(func(from, to reflect.Type) func(src, dest reflect.Value)) 24 | if !ok { 25 | return nil, false 26 | } 27 | return fn, true 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_bzip2.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract compress/bzip2'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "compress/bzip2" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["compress/bzip2/bzip2"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "NewReader": reflect.ValueOf(bzip2.NewReader), 16 | 17 | // type definitions 18 | "StructuralError": reflect.ValueOf((*bzip2.StructuralError)(nil)), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_compress_lzw.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract compress/lzw'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "compress/lzw" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["compress/lzw/lzw"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "LSB": reflect.ValueOf(lzw.LSB), 16 | "MSB": reflect.ValueOf(lzw.MSB), 17 | "NewReader": reflect.ValueOf(lzw.NewReader), 18 | "NewWriter": reflect.ValueOf(lzw.NewWriter), 19 | 20 | // type definitions 21 | "Order": reflect.ValueOf((*lzw.Order)(nil)), 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_container_list.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract container/list'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "container/list" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["container/list/list"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "New": reflect.ValueOf(list.New), 16 | 17 | // type definitions 18 | "Element": reflect.ValueOf((*list.Element)(nil)), 19 | "List": reflect.ValueOf((*list.List)(nil)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_container_ring.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract container/ring'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "container/ring" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["container/ring/ring"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "New": reflect.ValueOf(ring.New), 16 | 17 | // type definitions 18 | "Ring": reflect.ValueOf((*ring.Ring)(nil)), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_aes.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/aes'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/aes" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/aes/aes"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 18 | "NewCipher": reflect.ValueOf(aes.NewCipher), 19 | 20 | // type definitions 21 | "KeySizeError": reflect.ValueOf((*aes.KeySizeError)(nil)), 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_des.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/des'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/des" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/des/des"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), 18 | "NewCipher": reflect.ValueOf(des.NewCipher), 19 | "NewTripleDESCipher": reflect.ValueOf(des.NewTripleDESCipher), 20 | 21 | // type definitions 22 | "KeySizeError": reflect.ValueOf((*des.KeySizeError)(nil)), 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_ecdsa.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/ecdsa'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/ecdsa" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/ecdsa/ecdsa"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "GenerateKey": reflect.ValueOf(ecdsa.GenerateKey), 16 | "Sign": reflect.ValueOf(ecdsa.Sign), 17 | "SignASN1": reflect.ValueOf(ecdsa.SignASN1), 18 | "Verify": reflect.ValueOf(ecdsa.Verify), 19 | "VerifyASN1": reflect.ValueOf(ecdsa.VerifyASN1), 20 | 21 | // type definitions 22 | "PrivateKey": reflect.ValueOf((*ecdsa.PrivateKey)(nil)), 23 | "PublicKey": reflect.ValueOf((*ecdsa.PublicKey)(nil)), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_hmac.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/hmac'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/hmac" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/hmac/hmac"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Equal": reflect.ValueOf(hmac.Equal), 16 | "New": reflect.ValueOf(hmac.New), 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_md5.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/md5'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/md5" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/md5/md5"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 18 | "New": reflect.ValueOf(md5.New), 19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 20 | "Sum": reflect.ValueOf(md5.Sum), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rand.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/rand" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/rand/rand"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Int": reflect.ValueOf(rand.Int), 16 | "Prime": reflect.ValueOf(rand.Prime), 17 | "Read": reflect.ValueOf(rand.Read), 18 | "Reader": reflect.ValueOf(&rand.Reader).Elem(), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_rc4.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/rc4'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/rc4" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/rc4/rc4"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "NewCipher": reflect.ValueOf(rc4.NewCipher), 16 | 17 | // type definitions 18 | "Cipher": reflect.ValueOf((*rc4.Cipher)(nil)), 19 | "KeySizeError": reflect.ValueOf((*rc4.KeySizeError)(nil)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha1.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/sha1" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/sha1/sha1"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 18 | "New": reflect.ValueOf(sha1.New), 19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("20", token.INT, 0)), 20 | "Sum": reflect.ValueOf(sha1.Sum), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_sha256.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/sha256" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/sha256/sha256"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 18 | "New": reflect.ValueOf(sha256.New), 19 | "New224": reflect.ValueOf(sha256.New224), 20 | "Size": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), 21 | "Size224": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)), 22 | "Sum224": reflect.ValueOf(sha256.Sum224), 23 | "Sum256": reflect.ValueOf(sha256.Sum256), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_crypto_subtle.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/subtle'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/subtle" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/subtle/subtle"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ConstantTimeByteEq": reflect.ValueOf(subtle.ConstantTimeByteEq), 16 | "ConstantTimeCompare": reflect.ValueOf(subtle.ConstantTimeCompare), 17 | "ConstantTimeCopy": reflect.ValueOf(subtle.ConstantTimeCopy), 18 | "ConstantTimeEq": reflect.ValueOf(subtle.ConstantTimeEq), 19 | "ConstantTimeLessOrEq": reflect.ValueOf(subtle.ConstantTimeLessOrEq), 20 | "ConstantTimeSelect": reflect.ValueOf(subtle.ConstantTimeSelect), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_ascii85.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract encoding/ascii85'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "encoding/ascii85" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["encoding/ascii85/ascii85"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Decode": reflect.ValueOf(ascii85.Decode), 16 | "Encode": reflect.ValueOf(ascii85.Encode), 17 | "MaxEncodedLen": reflect.ValueOf(ascii85.MaxEncodedLen), 18 | "NewDecoder": reflect.ValueOf(ascii85.NewDecoder), 19 | "NewEncoder": reflect.ValueOf(ascii85.NewEncoder), 20 | 21 | // type definitions 22 | "CorruptInputError": reflect.ValueOf((*ascii85.CorruptInputError)(nil)), 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_base32.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract encoding/base32'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "encoding/base32" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["encoding/base32/base32"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "HexEncoding": reflect.ValueOf(&base32.HexEncoding).Elem(), 16 | "NewDecoder": reflect.ValueOf(base32.NewDecoder), 17 | "NewEncoder": reflect.ValueOf(base32.NewEncoder), 18 | "NewEncoding": reflect.ValueOf(base32.NewEncoding), 19 | "NoPadding": reflect.ValueOf(base32.NoPadding), 20 | "StdEncoding": reflect.ValueOf(&base32.StdEncoding).Elem(), 21 | "StdPadding": reflect.ValueOf(base32.StdPadding), 22 | 23 | // type definitions 24 | "CorruptInputError": reflect.ValueOf((*base32.CorruptInputError)(nil)), 25 | "Encoding": reflect.ValueOf((*base32.Encoding)(nil)), 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_csv.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract encoding/csv'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "encoding/csv" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["encoding/csv/csv"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ErrBareQuote": reflect.ValueOf(&csv.ErrBareQuote).Elem(), 16 | "ErrFieldCount": reflect.ValueOf(&csv.ErrFieldCount).Elem(), 17 | "ErrQuote": reflect.ValueOf(&csv.ErrQuote).Elem(), 18 | "ErrTrailingComma": reflect.ValueOf(&csv.ErrTrailingComma).Elem(), 19 | "NewReader": reflect.ValueOf(csv.NewReader), 20 | "NewWriter": reflect.ValueOf(csv.NewWriter), 21 | 22 | // type definitions 23 | "ParseError": reflect.ValueOf((*csv.ParseError)(nil)), 24 | "Reader": reflect.ValueOf((*csv.Reader)(nil)), 25 | "Writer": reflect.ValueOf((*csv.Writer)(nil)), 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_encoding_pem.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract encoding/pem'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "encoding/pem" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["encoding/pem/pem"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Decode": reflect.ValueOf(pem.Decode), 16 | "Encode": reflect.ValueOf(pem.Encode), 17 | "EncodeToMemory": reflect.ValueOf(pem.EncodeToMemory), 18 | 19 | // type definitions 20 | "Block": reflect.ValueOf((*pem.Block)(nil)), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_errors.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract errors'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "errors" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["errors/errors"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "As": reflect.ValueOf(errors.As), 16 | "Is": reflect.ValueOf(errors.Is), 17 | "New": reflect.ValueOf(errors.New), 18 | "Unwrap": reflect.ValueOf(errors.Unwrap), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_go_format.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract go/format'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/format" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["go/format/format"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Node": reflect.ValueOf(format.Node), 16 | "Source": reflect.ValueOf(format.Source), 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_go_importer.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract go/importer'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/importer" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["go/importer/importer"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Default": reflect.ValueOf(importer.Default), 16 | "For": reflect.ValueOf(importer.For), 17 | "ForCompiler": reflect.ValueOf(importer.ForCompiler), 18 | 19 | // type definitions 20 | "Lookup": reflect.ValueOf((*importer.Lookup)(nil)), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_go_printer.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract go/printer'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/printer" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["go/printer/printer"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Fprint": reflect.ValueOf(printer.Fprint), 16 | "RawFormat": reflect.ValueOf(printer.RawFormat), 17 | "SourcePos": reflect.ValueOf(printer.SourcePos), 18 | "TabIndent": reflect.ValueOf(printer.TabIndent), 19 | "UseSpaces": reflect.ValueOf(printer.UseSpaces), 20 | 21 | // type definitions 22 | "CommentedNode": reflect.ValueOf((*printer.CommentedNode)(nil)), 23 | "Config": reflect.ValueOf((*printer.Config)(nil)), 24 | "Mode": reflect.ValueOf((*printer.Mode)(nil)), 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_go_scanner.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract go/scanner'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/scanner" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["go/scanner/scanner"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "PrintError": reflect.ValueOf(scanner.PrintError), 16 | "ScanComments": reflect.ValueOf(scanner.ScanComments), 17 | 18 | // type definitions 19 | "Error": reflect.ValueOf((*scanner.Error)(nil)), 20 | "ErrorHandler": reflect.ValueOf((*scanner.ErrorHandler)(nil)), 21 | "ErrorList": reflect.ValueOf((*scanner.ErrorList)(nil)), 22 | "Mode": reflect.ValueOf((*scanner.Mode)(nil)), 23 | "Scanner": reflect.ValueOf((*scanner.Scanner)(nil)), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_adler32.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract hash/adler32'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/constant" 9 | "go/token" 10 | "hash/adler32" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["hash/adler32/adler32"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "Checksum": reflect.ValueOf(adler32.Checksum), 18 | "New": reflect.ValueOf(adler32.New), 19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_crc64.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/constant" 9 | "go/token" 10 | "hash/crc64" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["hash/crc64/crc64"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "Checksum": reflect.ValueOf(crc64.Checksum), 18 | "ECMA": reflect.ValueOf(constant.MakeFromLiteral("14514072000185962306", token.INT, 0)), 19 | "ISO": reflect.ValueOf(constant.MakeFromLiteral("15564440312192434176", token.INT, 0)), 20 | "MakeTable": reflect.ValueOf(crc64.MakeTable), 21 | "New": reflect.ValueOf(crc64.New), 22 | "Size": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), 23 | "Update": reflect.ValueOf(crc64.Update), 24 | 25 | // type definitions 26 | "Table": reflect.ValueOf((*crc64.Table)(nil)), 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_fnv.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract hash/fnv'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "hash/fnv" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["hash/fnv/fnv"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "New128": reflect.ValueOf(fnv.New128), 16 | "New128a": reflect.ValueOf(fnv.New128a), 17 | "New32": reflect.ValueOf(fnv.New32), 18 | "New32a": reflect.ValueOf(fnv.New32a), 19 | "New64": reflect.ValueOf(fnv.New64), 20 | "New64a": reflect.ValueOf(fnv.New64a), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_hash_maphash.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract hash/maphash'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "hash/maphash" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["hash/maphash/maphash"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "MakeSeed": reflect.ValueOf(maphash.MakeSeed), 16 | 17 | // type definitions 18 | "Hash": reflect.ValueOf((*maphash.Hash)(nil)), 19 | "Seed": reflect.ValueOf((*maphash.Seed)(nil)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_html.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract html'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "html" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["html/html"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "EscapeString": reflect.ValueOf(html.EscapeString), 16 | "UnescapeString": reflect.ValueOf(html.UnescapeString), 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_image_color_palette.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract image/color/palette'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "image/color/palette" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["image/color/palette/palette"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Plan9": reflect.ValueOf(&palette.Plan9).Elem(), 16 | "WebSafe": reflect.ValueOf(&palette.WebSafe).Elem(), 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_index_suffixarray.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract index/suffixarray'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "index/suffixarray" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["index/suffixarray/suffixarray"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "New": reflect.ValueOf(suffixarray.New), 16 | 17 | // type definitions 18 | "Index": reflect.ValueOf((*suffixarray.Index)(nil)), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_io_ioutil.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract io/ioutil'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "io/ioutil" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["io/ioutil/ioutil"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Discard": reflect.ValueOf(&ioutil.Discard).Elem(), 16 | "NopCloser": reflect.ValueOf(ioutil.NopCloser), 17 | "ReadAll": reflect.ValueOf(ioutil.ReadAll), 18 | "ReadDir": reflect.ValueOf(ioutil.ReadDir), 19 | "ReadFile": reflect.ValueOf(ioutil.ReadFile), 20 | "TempDir": reflect.ValueOf(ioutil.TempDir), 21 | "TempFile": reflect.ValueOf(ioutil.TempFile), 22 | "WriteFile": reflect.ValueOf(ioutil.WriteFile), 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_mime_quotedprintable.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract mime/quotedprintable'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "mime/quotedprintable" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["mime/quotedprintable/quotedprintable"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "NewReader": reflect.ValueOf(quotedprintable.NewReader), 16 | "NewWriter": reflect.ValueOf(quotedprintable.NewWriter), 17 | 18 | // type definitions 19 | "Reader": reflect.ValueOf((*quotedprintable.Reader)(nil)), 20 | "Writer": reflect.ValueOf((*quotedprintable.Writer)(nil)), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_cgi.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/http/cgi'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/http/cgi" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/http/cgi/cgi"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Request": reflect.ValueOf(cgi.Request), 16 | "RequestFromMap": reflect.ValueOf(cgi.RequestFromMap), 17 | "Serve": reflect.ValueOf(cgi.Serve), 18 | 19 | // type definitions 20 | "Handler": reflect.ValueOf((*cgi.Handler)(nil)), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_fcgi.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/http/fcgi'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/http/fcgi" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/http/fcgi/fcgi"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ErrConnClosed": reflect.ValueOf(&fcgi.ErrConnClosed).Elem(), 16 | "ErrRequestAborted": reflect.ValueOf(&fcgi.ErrRequestAborted).Elem(), 17 | "ProcessEnv": reflect.ValueOf(fcgi.ProcessEnv), 18 | "Serve": reflect.ValueOf(fcgi.Serve), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_httptrace.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/http/httptrace'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/http/httptrace" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/http/httptrace/httptrace"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ContextClientTrace": reflect.ValueOf(httptrace.ContextClientTrace), 16 | "WithClientTrace": reflect.ValueOf(httptrace.WithClientTrace), 17 | 18 | // type definitions 19 | "ClientTrace": reflect.ValueOf((*httptrace.ClientTrace)(nil)), 20 | "DNSDoneInfo": reflect.ValueOf((*httptrace.DNSDoneInfo)(nil)), 21 | "DNSStartInfo": reflect.ValueOf((*httptrace.DNSStartInfo)(nil)), 22 | "GotConnInfo": reflect.ValueOf((*httptrace.GotConnInfo)(nil)), 23 | "WroteRequestInfo": reflect.ValueOf((*httptrace.WroteRequestInfo)(nil)), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_net_http_pprof.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/http/pprof'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/http/pprof" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/http/pprof/pprof"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Cmdline": reflect.ValueOf(pprof.Cmdline), 16 | "Handler": reflect.ValueOf(pprof.Handler), 17 | "Index": reflect.ValueOf(pprof.Index), 18 | "Profile": reflect.ValueOf(pprof.Profile), 19 | "Symbol": reflect.ValueOf(pprof.Symbol), 20 | "Trace": reflect.ValueOf(pprof.Trace), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_net_mail.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/mail'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/mail" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/mail/mail"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ErrHeaderNotPresent": reflect.ValueOf(&mail.ErrHeaderNotPresent).Elem(), 16 | "ParseAddress": reflect.ValueOf(mail.ParseAddress), 17 | "ParseAddressList": reflect.ValueOf(mail.ParseAddressList), 18 | "ParseDate": reflect.ValueOf(mail.ParseDate), 19 | "ReadMessage": reflect.ValueOf(mail.ReadMessage), 20 | 21 | // type definitions 22 | "Address": reflect.ValueOf((*mail.Address)(nil)), 23 | "AddressParser": reflect.ValueOf((*mail.AddressParser)(nil)), 24 | "Header": reflect.ValueOf((*mail.Header)(nil)), 25 | "Message": reflect.ValueOf((*mail.Message)(nil)), 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_net_rpc_jsonrpc.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/rpc/jsonrpc'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/rpc/jsonrpc" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/rpc/jsonrpc/jsonrpc"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Dial": reflect.ValueOf(jsonrpc.Dial), 16 | "NewClient": reflect.ValueOf(jsonrpc.NewClient), 17 | "NewClientCodec": reflect.ValueOf(jsonrpc.NewClientCodec), 18 | "NewServerCodec": reflect.ValueOf(jsonrpc.NewServerCodec), 19 | "ServeConn": reflect.ValueOf(jsonrpc.ServeConn), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_os_signal.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract os/signal'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "os/signal" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["os/signal/signal"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Ignore": reflect.ValueOf(signal.Ignore), 16 | "Ignored": reflect.ValueOf(signal.Ignored), 17 | "Notify": reflect.ValueOf(signal.Notify), 18 | "Reset": reflect.ValueOf(signal.Reset), 19 | "Stop": reflect.ValueOf(signal.Stop), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_path.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract path'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "path" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["path/path"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Base": reflect.ValueOf(path.Base), 16 | "Clean": reflect.ValueOf(path.Clean), 17 | "Dir": reflect.ValueOf(path.Dir), 18 | "ErrBadPattern": reflect.ValueOf(&path.ErrBadPattern).Elem(), 19 | "Ext": reflect.ValueOf(path.Ext), 20 | "IsAbs": reflect.ValueOf(path.IsAbs), 21 | "Join": reflect.ValueOf(path.Join), 22 | "Match": reflect.ValueOf(path.Match), 23 | "Split": reflect.ValueOf(path.Split), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_regexp.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract regexp'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "regexp" 10 | ) 11 | 12 | func init() { 13 | Symbols["regexp/regexp"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Compile": reflect.ValueOf(regexp.Compile), 16 | "CompilePOSIX": reflect.ValueOf(regexp.CompilePOSIX), 17 | "Match": reflect.ValueOf(regexp.Match), 18 | "MatchReader": reflect.ValueOf(regexp.MatchReader), 19 | "MatchString": reflect.ValueOf(regexp.MatchString), 20 | "MustCompile": reflect.ValueOf(regexp.MustCompile), 21 | "MustCompilePOSIX": reflect.ValueOf(regexp.MustCompilePOSIX), 22 | "QuoteMeta": reflect.ValueOf(regexp.QuoteMeta), 23 | 24 | // type definitions 25 | "Regexp": reflect.ValueOf((*regexp.Regexp)(nil)), 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_runtime_trace.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "runtime/trace" 10 | ) 11 | 12 | func init() { 13 | Symbols["runtime/trace/trace"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "IsEnabled": reflect.ValueOf(trace.IsEnabled), 16 | "Log": reflect.ValueOf(trace.Log), 17 | "Logf": reflect.ValueOf(trace.Logf), 18 | "NewTask": reflect.ValueOf(trace.NewTask), 19 | "Start": reflect.ValueOf(trace.Start), 20 | "StartRegion": reflect.ValueOf(trace.StartRegion), 21 | "Stop": reflect.ValueOf(trace.Stop), 22 | "WithRegion": reflect.ValueOf(trace.WithRegion), 23 | 24 | // type definitions 25 | "Region": reflect.ValueOf((*trace.Region)(nil)), 26 | "Task": reflect.ValueOf((*trace.Task)(nil)), 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_testing_iotest.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract testing/iotest'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "testing/iotest" 10 | ) 11 | 12 | func init() { 13 | Symbols["testing/iotest/iotest"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "DataErrReader": reflect.ValueOf(iotest.DataErrReader), 16 | "ErrTimeout": reflect.ValueOf(&iotest.ErrTimeout).Elem(), 17 | "HalfReader": reflect.ValueOf(iotest.HalfReader), 18 | "NewReadLogger": reflect.ValueOf(iotest.NewReadLogger), 19 | "NewWriteLogger": reflect.ValueOf(iotest.NewWriteLogger), 20 | "OneByteReader": reflect.ValueOf(iotest.OneByteReader), 21 | "TimeoutReader": reflect.ValueOf(iotest.TimeoutReader), 22 | "TruncateWriter": reflect.ValueOf(iotest.TruncateWriter), 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_15_unicode_utf16.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract unicode/utf16'. DO NOT EDIT. 2 | 3 | // +build go1.15,!go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "unicode/utf16" 10 | ) 11 | 12 | func init() { 13 | Symbols["unicode/utf16/utf16"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Decode": reflect.ValueOf(utf16.Decode), 16 | "DecodeRune": reflect.ValueOf(utf16.DecodeRune), 17 | "Encode": reflect.ValueOf(utf16.Encode), 18 | "EncodeRune": reflect.ValueOf(utf16.EncodeRune), 19 | "IsSurrogate": reflect.ValueOf(utf16.IsSurrogate), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_bzip2.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract compress/bzip2'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "compress/bzip2" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["compress/bzip2/bzip2"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "NewReader": reflect.ValueOf(bzip2.NewReader), 16 | 17 | // type definitions 18 | "StructuralError": reflect.ValueOf((*bzip2.StructuralError)(nil)), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_compress_lzw.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract compress/lzw'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "compress/lzw" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["compress/lzw/lzw"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "LSB": reflect.ValueOf(lzw.LSB), 16 | "MSB": reflect.ValueOf(lzw.MSB), 17 | "NewReader": reflect.ValueOf(lzw.NewReader), 18 | "NewWriter": reflect.ValueOf(lzw.NewWriter), 19 | 20 | // type definitions 21 | "Order": reflect.ValueOf((*lzw.Order)(nil)), 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_container_list.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract container/list'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "container/list" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["container/list/list"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "New": reflect.ValueOf(list.New), 16 | 17 | // type definitions 18 | "Element": reflect.ValueOf((*list.Element)(nil)), 19 | "List": reflect.ValueOf((*list.List)(nil)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_container_ring.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract container/ring'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "container/ring" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["container/ring/ring"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "New": reflect.ValueOf(ring.New), 16 | 17 | // type definitions 18 | "Ring": reflect.ValueOf((*ring.Ring)(nil)), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_aes.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/aes'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/aes" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/aes/aes"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 18 | "NewCipher": reflect.ValueOf(aes.NewCipher), 19 | 20 | // type definitions 21 | "KeySizeError": reflect.ValueOf((*aes.KeySizeError)(nil)), 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_des.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/des'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/des" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/des/des"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), 18 | "NewCipher": reflect.ValueOf(des.NewCipher), 19 | "NewTripleDESCipher": reflect.ValueOf(des.NewTripleDESCipher), 20 | 21 | // type definitions 22 | "KeySizeError": reflect.ValueOf((*des.KeySizeError)(nil)), 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_ecdsa.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/ecdsa'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/ecdsa" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/ecdsa/ecdsa"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "GenerateKey": reflect.ValueOf(ecdsa.GenerateKey), 16 | "Sign": reflect.ValueOf(ecdsa.Sign), 17 | "SignASN1": reflect.ValueOf(ecdsa.SignASN1), 18 | "Verify": reflect.ValueOf(ecdsa.Verify), 19 | "VerifyASN1": reflect.ValueOf(ecdsa.VerifyASN1), 20 | 21 | // type definitions 22 | "PrivateKey": reflect.ValueOf((*ecdsa.PrivateKey)(nil)), 23 | "PublicKey": reflect.ValueOf((*ecdsa.PublicKey)(nil)), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_hmac.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/hmac'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/hmac" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/hmac/hmac"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Equal": reflect.ValueOf(hmac.Equal), 16 | "New": reflect.ValueOf(hmac.New), 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_md5.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/md5'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/md5" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/md5/md5"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 18 | "New": reflect.ValueOf(md5.New), 19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("16", token.INT, 0)), 20 | "Sum": reflect.ValueOf(md5.Sum), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rand.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/rand'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/rand" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/rand/rand"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Int": reflect.ValueOf(rand.Int), 16 | "Prime": reflect.ValueOf(rand.Prime), 17 | "Read": reflect.ValueOf(rand.Read), 18 | "Reader": reflect.ValueOf(&rand.Reader).Elem(), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_rc4.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/rc4'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/rc4" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/rc4/rc4"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "NewCipher": reflect.ValueOf(rc4.NewCipher), 16 | 17 | // type definitions 18 | "Cipher": reflect.ValueOf((*rc4.Cipher)(nil)), 19 | "KeySizeError": reflect.ValueOf((*rc4.KeySizeError)(nil)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha1.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/sha1'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/sha1" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/sha1/sha1"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 18 | "New": reflect.ValueOf(sha1.New), 19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("20", token.INT, 0)), 20 | "Sum": reflect.ValueOf(sha1.Sum), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_sha256.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/sha256'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/sha256" 9 | "go/constant" 10 | "go/token" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["crypto/sha256/sha256"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "BlockSize": reflect.ValueOf(constant.MakeFromLiteral("64", token.INT, 0)), 18 | "New": reflect.ValueOf(sha256.New), 19 | "New224": reflect.ValueOf(sha256.New224), 20 | "Size": reflect.ValueOf(constant.MakeFromLiteral("32", token.INT, 0)), 21 | "Size224": reflect.ValueOf(constant.MakeFromLiteral("28", token.INT, 0)), 22 | "Sum224": reflect.ValueOf(sha256.Sum224), 23 | "Sum256": reflect.ValueOf(sha256.Sum256), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_crypto_subtle.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract crypto/subtle'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "crypto/subtle" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["crypto/subtle/subtle"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ConstantTimeByteEq": reflect.ValueOf(subtle.ConstantTimeByteEq), 16 | "ConstantTimeCompare": reflect.ValueOf(subtle.ConstantTimeCompare), 17 | "ConstantTimeCopy": reflect.ValueOf(subtle.ConstantTimeCopy), 18 | "ConstantTimeEq": reflect.ValueOf(subtle.ConstantTimeEq), 19 | "ConstantTimeLessOrEq": reflect.ValueOf(subtle.ConstantTimeLessOrEq), 20 | "ConstantTimeSelect": reflect.ValueOf(subtle.ConstantTimeSelect), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_embed.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract embed'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "embed" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["embed/embed"] = map[string]reflect.Value{ 14 | // type definitions 15 | "FS": reflect.ValueOf((*embed.FS)(nil)), 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_ascii85.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract encoding/ascii85'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "encoding/ascii85" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["encoding/ascii85/ascii85"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Decode": reflect.ValueOf(ascii85.Decode), 16 | "Encode": reflect.ValueOf(ascii85.Encode), 17 | "MaxEncodedLen": reflect.ValueOf(ascii85.MaxEncodedLen), 18 | "NewDecoder": reflect.ValueOf(ascii85.NewDecoder), 19 | "NewEncoder": reflect.ValueOf(ascii85.NewEncoder), 20 | 21 | // type definitions 22 | "CorruptInputError": reflect.ValueOf((*ascii85.CorruptInputError)(nil)), 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_base32.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract encoding/base32'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "encoding/base32" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["encoding/base32/base32"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "HexEncoding": reflect.ValueOf(&base32.HexEncoding).Elem(), 16 | "NewDecoder": reflect.ValueOf(base32.NewDecoder), 17 | "NewEncoder": reflect.ValueOf(base32.NewEncoder), 18 | "NewEncoding": reflect.ValueOf(base32.NewEncoding), 19 | "NoPadding": reflect.ValueOf(base32.NoPadding), 20 | "StdEncoding": reflect.ValueOf(&base32.StdEncoding).Elem(), 21 | "StdPadding": reflect.ValueOf(base32.StdPadding), 22 | 23 | // type definitions 24 | "CorruptInputError": reflect.ValueOf((*base32.CorruptInputError)(nil)), 25 | "Encoding": reflect.ValueOf((*base32.Encoding)(nil)), 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_csv.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract encoding/csv'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "encoding/csv" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["encoding/csv/csv"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ErrBareQuote": reflect.ValueOf(&csv.ErrBareQuote).Elem(), 16 | "ErrFieldCount": reflect.ValueOf(&csv.ErrFieldCount).Elem(), 17 | "ErrQuote": reflect.ValueOf(&csv.ErrQuote).Elem(), 18 | "ErrTrailingComma": reflect.ValueOf(&csv.ErrTrailingComma).Elem(), 19 | "NewReader": reflect.ValueOf(csv.NewReader), 20 | "NewWriter": reflect.ValueOf(csv.NewWriter), 21 | 22 | // type definitions 23 | "ParseError": reflect.ValueOf((*csv.ParseError)(nil)), 24 | "Reader": reflect.ValueOf((*csv.Reader)(nil)), 25 | "Writer": reflect.ValueOf((*csv.Writer)(nil)), 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_encoding_pem.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract encoding/pem'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "encoding/pem" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["encoding/pem/pem"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Decode": reflect.ValueOf(pem.Decode), 16 | "Encode": reflect.ValueOf(pem.Encode), 17 | "EncodeToMemory": reflect.ValueOf(pem.EncodeToMemory), 18 | 19 | // type definitions 20 | "Block": reflect.ValueOf((*pem.Block)(nil)), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_errors.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract errors'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "errors" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["errors/errors"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "As": reflect.ValueOf(errors.As), 16 | "Is": reflect.ValueOf(errors.Is), 17 | "New": reflect.ValueOf(errors.New), 18 | "Unwrap": reflect.ValueOf(errors.Unwrap), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_go_format.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract go/format'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/format" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["go/format/format"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Node": reflect.ValueOf(format.Node), 16 | "Source": reflect.ValueOf(format.Source), 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_go_importer.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract go/importer'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/importer" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["go/importer/importer"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Default": reflect.ValueOf(importer.Default), 16 | "For": reflect.ValueOf(importer.For), 17 | "ForCompiler": reflect.ValueOf(importer.ForCompiler), 18 | 19 | // type definitions 20 | "Lookup": reflect.ValueOf((*importer.Lookup)(nil)), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_go_printer.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract go/printer'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/printer" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["go/printer/printer"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Fprint": reflect.ValueOf(printer.Fprint), 16 | "RawFormat": reflect.ValueOf(printer.RawFormat), 17 | "SourcePos": reflect.ValueOf(printer.SourcePos), 18 | "TabIndent": reflect.ValueOf(printer.TabIndent), 19 | "UseSpaces": reflect.ValueOf(printer.UseSpaces), 20 | 21 | // type definitions 22 | "CommentedNode": reflect.ValueOf((*printer.CommentedNode)(nil)), 23 | "Config": reflect.ValueOf((*printer.Config)(nil)), 24 | "Mode": reflect.ValueOf((*printer.Mode)(nil)), 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_go_scanner.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract go/scanner'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/scanner" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["go/scanner/scanner"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "PrintError": reflect.ValueOf(scanner.PrintError), 16 | "ScanComments": reflect.ValueOf(scanner.ScanComments), 17 | 18 | // type definitions 19 | "Error": reflect.ValueOf((*scanner.Error)(nil)), 20 | "ErrorHandler": reflect.ValueOf((*scanner.ErrorHandler)(nil)), 21 | "ErrorList": reflect.ValueOf((*scanner.ErrorList)(nil)), 22 | "Mode": reflect.ValueOf((*scanner.Mode)(nil)), 23 | "Scanner": reflect.ValueOf((*scanner.Scanner)(nil)), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_adler32.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract hash/adler32'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/constant" 9 | "go/token" 10 | "hash/adler32" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["hash/adler32/adler32"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "Checksum": reflect.ValueOf(adler32.Checksum), 18 | "New": reflect.ValueOf(adler32.New), 19 | "Size": reflect.ValueOf(constant.MakeFromLiteral("4", token.INT, 0)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_crc64.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract hash/crc64'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "go/constant" 9 | "go/token" 10 | "hash/crc64" 11 | "reflect" 12 | ) 13 | 14 | func init() { 15 | Symbols["hash/crc64/crc64"] = map[string]reflect.Value{ 16 | // function, constant and variable definitions 17 | "Checksum": reflect.ValueOf(crc64.Checksum), 18 | "ECMA": reflect.ValueOf(constant.MakeFromLiteral("14514072000185962306", token.INT, 0)), 19 | "ISO": reflect.ValueOf(constant.MakeFromLiteral("15564440312192434176", token.INT, 0)), 20 | "MakeTable": reflect.ValueOf(crc64.MakeTable), 21 | "New": reflect.ValueOf(crc64.New), 22 | "Size": reflect.ValueOf(constant.MakeFromLiteral("8", token.INT, 0)), 23 | "Update": reflect.ValueOf(crc64.Update), 24 | 25 | // type definitions 26 | "Table": reflect.ValueOf((*crc64.Table)(nil)), 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_fnv.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract hash/fnv'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "hash/fnv" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["hash/fnv/fnv"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "New128": reflect.ValueOf(fnv.New128), 16 | "New128a": reflect.ValueOf(fnv.New128a), 17 | "New32": reflect.ValueOf(fnv.New32), 18 | "New32a": reflect.ValueOf(fnv.New32a), 19 | "New64": reflect.ValueOf(fnv.New64), 20 | "New64a": reflect.ValueOf(fnv.New64a), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_hash_maphash.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract hash/maphash'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "hash/maphash" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["hash/maphash/maphash"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "MakeSeed": reflect.ValueOf(maphash.MakeSeed), 16 | 17 | // type definitions 18 | "Hash": reflect.ValueOf((*maphash.Hash)(nil)), 19 | "Seed": reflect.ValueOf((*maphash.Seed)(nil)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_html.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract html'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "html" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["html/html"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "EscapeString": reflect.ValueOf(html.EscapeString), 16 | "UnescapeString": reflect.ValueOf(html.UnescapeString), 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_image_color_palette.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract image/color/palette'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "image/color/palette" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["image/color/palette/palette"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Plan9": reflect.ValueOf(&palette.Plan9).Elem(), 16 | "WebSafe": reflect.ValueOf(&palette.WebSafe).Elem(), 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_index_suffixarray.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract index/suffixarray'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "index/suffixarray" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["index/suffixarray/suffixarray"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "New": reflect.ValueOf(suffixarray.New), 16 | 17 | // type definitions 18 | "Index": reflect.ValueOf((*suffixarray.Index)(nil)), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_io_ioutil.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract io/ioutil'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "io/ioutil" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["io/ioutil/ioutil"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Discard": reflect.ValueOf(&ioutil.Discard).Elem(), 16 | "NopCloser": reflect.ValueOf(ioutil.NopCloser), 17 | "ReadAll": reflect.ValueOf(ioutil.ReadAll), 18 | "ReadDir": reflect.ValueOf(ioutil.ReadDir), 19 | "ReadFile": reflect.ValueOf(ioutil.ReadFile), 20 | "TempDir": reflect.ValueOf(ioutil.TempDir), 21 | "TempFile": reflect.ValueOf(ioutil.TempFile), 22 | "WriteFile": reflect.ValueOf(ioutil.WriteFile), 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_mime_quotedprintable.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract mime/quotedprintable'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "mime/quotedprintable" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["mime/quotedprintable/quotedprintable"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "NewReader": reflect.ValueOf(quotedprintable.NewReader), 16 | "NewWriter": reflect.ValueOf(quotedprintable.NewWriter), 17 | 18 | // type definitions 19 | "Reader": reflect.ValueOf((*quotedprintable.Reader)(nil)), 20 | "Writer": reflect.ValueOf((*quotedprintable.Writer)(nil)), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_cgi.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/http/cgi'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/http/cgi" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/http/cgi/cgi"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Request": reflect.ValueOf(cgi.Request), 16 | "RequestFromMap": reflect.ValueOf(cgi.RequestFromMap), 17 | "Serve": reflect.ValueOf(cgi.Serve), 18 | 19 | // type definitions 20 | "Handler": reflect.ValueOf((*cgi.Handler)(nil)), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_fcgi.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/http/fcgi'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/http/fcgi" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/http/fcgi/fcgi"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ErrConnClosed": reflect.ValueOf(&fcgi.ErrConnClosed).Elem(), 16 | "ErrRequestAborted": reflect.ValueOf(&fcgi.ErrRequestAborted).Elem(), 17 | "ProcessEnv": reflect.ValueOf(fcgi.ProcessEnv), 18 | "Serve": reflect.ValueOf(fcgi.Serve), 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_httptrace.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/http/httptrace'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/http/httptrace" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/http/httptrace/httptrace"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ContextClientTrace": reflect.ValueOf(httptrace.ContextClientTrace), 16 | "WithClientTrace": reflect.ValueOf(httptrace.WithClientTrace), 17 | 18 | // type definitions 19 | "ClientTrace": reflect.ValueOf((*httptrace.ClientTrace)(nil)), 20 | "DNSDoneInfo": reflect.ValueOf((*httptrace.DNSDoneInfo)(nil)), 21 | "DNSStartInfo": reflect.ValueOf((*httptrace.DNSStartInfo)(nil)), 22 | "GotConnInfo": reflect.ValueOf((*httptrace.GotConnInfo)(nil)), 23 | "WroteRequestInfo": reflect.ValueOf((*httptrace.WroteRequestInfo)(nil)), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_net_http_pprof.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/http/pprof'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/http/pprof" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/http/pprof/pprof"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Cmdline": reflect.ValueOf(pprof.Cmdline), 16 | "Handler": reflect.ValueOf(pprof.Handler), 17 | "Index": reflect.ValueOf(pprof.Index), 18 | "Profile": reflect.ValueOf(pprof.Profile), 19 | "Symbol": reflect.ValueOf(pprof.Symbol), 20 | "Trace": reflect.ValueOf(pprof.Trace), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_net_mail.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/mail'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/mail" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/mail/mail"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "ErrHeaderNotPresent": reflect.ValueOf(&mail.ErrHeaderNotPresent).Elem(), 16 | "ParseAddress": reflect.ValueOf(mail.ParseAddress), 17 | "ParseAddressList": reflect.ValueOf(mail.ParseAddressList), 18 | "ParseDate": reflect.ValueOf(mail.ParseDate), 19 | "ReadMessage": reflect.ValueOf(mail.ReadMessage), 20 | 21 | // type definitions 22 | "Address": reflect.ValueOf((*mail.Address)(nil)), 23 | "AddressParser": reflect.ValueOf((*mail.AddressParser)(nil)), 24 | "Header": reflect.ValueOf((*mail.Header)(nil)), 25 | "Message": reflect.ValueOf((*mail.Message)(nil)), 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_net_rpc_jsonrpc.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract net/rpc/jsonrpc'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "net/rpc/jsonrpc" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["net/rpc/jsonrpc/jsonrpc"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Dial": reflect.ValueOf(jsonrpc.Dial), 16 | "NewClient": reflect.ValueOf(jsonrpc.NewClient), 17 | "NewClientCodec": reflect.ValueOf(jsonrpc.NewClientCodec), 18 | "NewServerCodec": reflect.ValueOf(jsonrpc.NewServerCodec), 19 | "ServeConn": reflect.ValueOf(jsonrpc.ServeConn), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_os_signal.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract os/signal'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "os/signal" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["os/signal/signal"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Ignore": reflect.ValueOf(signal.Ignore), 16 | "Ignored": reflect.ValueOf(signal.Ignored), 17 | "Notify": reflect.ValueOf(signal.Notify), 18 | "NotifyContext": reflect.ValueOf(signal.NotifyContext), 19 | "Reset": reflect.ValueOf(signal.Reset), 20 | "Stop": reflect.ValueOf(signal.Stop), 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_path.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract path'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "path" 9 | "reflect" 10 | ) 11 | 12 | func init() { 13 | Symbols["path/path"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Base": reflect.ValueOf(path.Base), 16 | "Clean": reflect.ValueOf(path.Clean), 17 | "Dir": reflect.ValueOf(path.Dir), 18 | "ErrBadPattern": reflect.ValueOf(&path.ErrBadPattern).Elem(), 19 | "Ext": reflect.ValueOf(path.Ext), 20 | "IsAbs": reflect.ValueOf(path.IsAbs), 21 | "Join": reflect.ValueOf(path.Join), 22 | "Match": reflect.ValueOf(path.Match), 23 | "Split": reflect.ValueOf(path.Split), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_regexp.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract regexp'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "regexp" 10 | ) 11 | 12 | func init() { 13 | Symbols["regexp/regexp"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Compile": reflect.ValueOf(regexp.Compile), 16 | "CompilePOSIX": reflect.ValueOf(regexp.CompilePOSIX), 17 | "Match": reflect.ValueOf(regexp.Match), 18 | "MatchReader": reflect.ValueOf(regexp.MatchReader), 19 | "MatchString": reflect.ValueOf(regexp.MatchString), 20 | "MustCompile": reflect.ValueOf(regexp.MustCompile), 21 | "MustCompilePOSIX": reflect.ValueOf(regexp.MustCompilePOSIX), 22 | "QuoteMeta": reflect.ValueOf(regexp.QuoteMeta), 23 | 24 | // type definitions 25 | "Regexp": reflect.ValueOf((*regexp.Regexp)(nil)), 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_runtime_trace.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract runtime/trace'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "runtime/trace" 10 | ) 11 | 12 | func init() { 13 | Symbols["runtime/trace/trace"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "IsEnabled": reflect.ValueOf(trace.IsEnabled), 16 | "Log": reflect.ValueOf(trace.Log), 17 | "Logf": reflect.ValueOf(trace.Logf), 18 | "NewTask": reflect.ValueOf(trace.NewTask), 19 | "Start": reflect.ValueOf(trace.Start), 20 | "StartRegion": reflect.ValueOf(trace.StartRegion), 21 | "Stop": reflect.ValueOf(trace.Stop), 22 | "WithRegion": reflect.ValueOf(trace.WithRegion), 23 | 24 | // type definitions 25 | "Region": reflect.ValueOf((*trace.Region)(nil)), 26 | "Task": reflect.ValueOf((*trace.Task)(nil)), 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_fstest.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract testing/fstest'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "testing/fstest" 10 | ) 11 | 12 | func init() { 13 | Symbols["testing/fstest/fstest"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "TestFS": reflect.ValueOf(fstest.TestFS), 16 | 17 | // type definitions 18 | "MapFS": reflect.ValueOf((*fstest.MapFS)(nil)), 19 | "MapFile": reflect.ValueOf((*fstest.MapFile)(nil)), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_testing_iotest.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract testing/iotest'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "testing/iotest" 10 | ) 11 | 12 | func init() { 13 | Symbols["testing/iotest/iotest"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "DataErrReader": reflect.ValueOf(iotest.DataErrReader), 16 | "ErrReader": reflect.ValueOf(iotest.ErrReader), 17 | "ErrTimeout": reflect.ValueOf(&iotest.ErrTimeout).Elem(), 18 | "HalfReader": reflect.ValueOf(iotest.HalfReader), 19 | "NewReadLogger": reflect.ValueOf(iotest.NewReadLogger), 20 | "NewWriteLogger": reflect.ValueOf(iotest.NewWriteLogger), 21 | "OneByteReader": reflect.ValueOf(iotest.OneByteReader), 22 | "TestReader": reflect.ValueOf(iotest.TestReader), 23 | "TimeoutReader": reflect.ValueOf(iotest.TimeoutReader), 24 | "TruncateWriter": reflect.ValueOf(iotest.TruncateWriter), 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/go1_16_unicode_utf16.go: -------------------------------------------------------------------------------- 1 | // Code generated by 'yaegi extract unicode/utf16'. DO NOT EDIT. 2 | 3 | // +build go1.16 4 | 5 | package stdlib 6 | 7 | import ( 8 | "reflect" 9 | "unicode/utf16" 10 | ) 11 | 12 | func init() { 13 | Symbols["unicode/utf16/utf16"] = map[string]reflect.Value{ 14 | // function, constant and variable definitions 15 | "Decode": reflect.ValueOf(utf16.Decode), 16 | "DecodeRune": reflect.ValueOf(utf16.DecodeRune), 17 | "Encode": reflect.ValueOf(utf16.Encode), 18 | "EncodeRune": reflect.ValueOf(utf16.EncodeRune), 19 | "IsSurrogate": reflect.ValueOf(utf16.IsSurrogate), 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/traefik/yaegi/stdlib/stdlib_go1.16.go: -------------------------------------------------------------------------------- 1 | // +build go1.16 2 | 3 | package stdlib 4 | 5 | //go:generate ../internal/cmd/extract/extract embed testing/fstest 6 | -------------------------------------------------------------------------------- /vendor/github.com/xo/terminfo/.gitignore: -------------------------------------------------------------------------------- 1 | /.cache/ 2 | 3 | /cmd/infocmp/infocmp 4 | /cmd/infocmp/.out/ 5 | 6 | /infocmp 7 | /.out/ 8 | 9 | *.txt 10 | -------------------------------------------------------------------------------- /vendor/github.com/xo/terminfo/caps.go: -------------------------------------------------------------------------------- 1 | package terminfo 2 | 3 | //go:generate go run gen.go 4 | 5 | // BoolCapName returns the bool capability name. 6 | func BoolCapName(i int) string { 7 | return boolCapNames[2*i] 8 | } 9 | 10 | // BoolCapNameShort returns the short bool capability name. 11 | func BoolCapNameShort(i int) string { 12 | return boolCapNames[2*i+1] 13 | } 14 | 15 | // NumCapName returns the num capability name. 16 | func NumCapName(i int) string { 17 | return numCapNames[2*i] 18 | } 19 | 20 | // NumCapNameShort returns the short num capability name. 21 | func NumCapNameShort(i int) string { 22 | return numCapNames[2*i+1] 23 | } 24 | 25 | // StringCapName returns the string capability name. 26 | func StringCapName(i int) string { 27 | return stringCapNames[2*i] 28 | } 29 | 30 | // StringCapNameShort returns the short string capability name. 31 | func StringCapNameShort(i int) string { 32 | return stringCapNames[2*i+1] 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/xo/terminfo/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/xo/terminfo 2 | 3 | go 1.15 4 | -------------------------------------------------------------------------------- /vendor/github.com/xo/terminfo/go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Eun/go-hit/e7519b776df305b6ff877ad7451ecf1bc7cc660d/vendor/github.com/xo/terminfo/go.sum -------------------------------------------------------------------------------- /vendor/github.com/xo/terminfo/stack.go: -------------------------------------------------------------------------------- 1 | package terminfo 2 | 3 | type stack []interface{} 4 | 5 | func (s *stack) push(v interface{}) { 6 | *s = append(*s, v) 7 | } 8 | 9 | func (s *stack) pop() interface{} { 10 | if len(*s) == 0 { 11 | return nil 12 | } 13 | v := (*s)[len(*s)-1] 14 | *s = (*s)[:len(*s)-1] 15 | return v 16 | } 17 | 18 | func (s *stack) popInt() int { 19 | if i, ok := s.pop().(int); ok { 20 | return i 21 | } 22 | return 0 23 | } 24 | 25 | func (s *stack) popBool() bool { 26 | if b, ok := s.pop().(bool); ok { 27 | return b 28 | } 29 | return false 30 | } 31 | 32 | func (s *stack) popByte() byte { 33 | if b, ok := s.pop().(byte); ok { 34 | return b 35 | } 36 | return 0 37 | } 38 | 39 | func (s *stack) popString() string { 40 | if a, ok := s.pop().(string); ok { 41 | return a 42 | } 43 | return "" 44 | } 45 | 46 | func (s *stack) reset() { 47 | *s = (*s)[:0] 48 | } 49 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/.codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: 80..100 3 | round: down 4 | precision: 2 5 | 6 | status: 7 | project: # measuring the overall project coverage 8 | default: # context, you can create multiple ones with custom titles 9 | enabled: yes # must be yes|true to enable this status 10 | target: 100 # specify the target coverage for each commit status 11 | # option: "auto" (must increase from parent commit or pull request base) 12 | # option: "X%" a static target percentage to hit 13 | if_not_found: success # if parent is not found report status as success, error, or failure 14 | if_ci_failed: error # if ci fails report status as success, error, or failure 15 | 16 | # Also update COVER_IGNORE_PKGS in the Makefile. 17 | ignore: 18 | - /internal/gen-atomicint/ 19 | - /internal/gen-valuewrapper/ 20 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/.gitignore: -------------------------------------------------------------------------------- 1 | /bin 2 | .DS_Store 3 | /vendor 4 | cover.html 5 | cover.out 6 | lint.log 7 | 8 | # Binaries 9 | *.test 10 | 11 | # Profiling output 12 | *.prof 13 | 14 | # Output of fossa analyzer 15 | /fossa 16 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/go.mod: -------------------------------------------------------------------------------- 1 | module go.uber.org/atomic 2 | 3 | require ( 4 | github.com/davecgh/go-spew v1.1.1 // indirect 5 | github.com/stretchr/testify v1.3.0 6 | ) 7 | 8 | go 1.13 9 | -------------------------------------------------------------------------------- /vendor/go.uber.org/atomic/go.sum: -------------------------------------------------------------------------------- 1 | github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 2 | github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= 3 | github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= 4 | github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= 5 | github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= 6 | github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= 7 | github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= 8 | github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= 9 | -------------------------------------------------------------------------------- /vendor/go.uber.org/goleak/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | /bin 3 | /lint.log 4 | /cover.out 5 | /cover.html 6 | -------------------------------------------------------------------------------- /vendor/go.uber.org/goleak/glide.yaml: -------------------------------------------------------------------------------- 1 | package: go.uber.org/goleak 2 | import: [] 3 | testImport: 4 | - package: github.com/stretchr/testify 5 | version: ^1.1.4 6 | subpackages: 7 | - assert 8 | - require 9 | -------------------------------------------------------------------------------- /vendor/go.uber.org/goleak/go.mod: -------------------------------------------------------------------------------- 1 | module go.uber.org/goleak 2 | 3 | go 1.13 4 | 5 | require ( 6 | github.com/kr/pretty v0.1.0 // indirect 7 | github.com/stretchr/testify v1.7.0 8 | golang.org/x/lint v0.0.0-20190930215403-16217165b5de 9 | golang.org/x/tools v0.1.5 // indirect 10 | gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect 11 | ) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/execabs/execabs_go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.19 6 | // +build !go1.19 7 | 8 | package execabs 9 | 10 | func isGo119ErrDot(err error) bool { 11 | return false 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/execabs/execabs_go119.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.19 6 | // +build go1.19 7 | 8 | package execabs 9 | 10 | import "strings" 11 | 12 | func isGo119ErrDot(err error) bool { 13 | // TODO: return errors.Is(err, exec.ErrDot) 14 | return strings.Contains(err.Error(), "current directory") 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for 386 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || netbsd || openbsd) && gc 6 | // +build darwin dragonfly freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for AMD64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_riscv64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for RISCV64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for mips64, OpenBSD 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-56 18 | JMP syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | JMP syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | JMP syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | JMP syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | JMP syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/bluetooth_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Bluetooth sockets and messages 6 | 7 | package unix 8 | 9 | // Bluetooth Protocols 10 | const ( 11 | BTPROTO_L2CAP = 0 12 | BTPROTO_HCI = 1 13 | BTPROTO_SCO = 2 14 | BTPROTO_RFCOMM = 3 15 | BTPROTO_BNEP = 4 16 | BTPROTO_CMTP = 5 17 | BTPROTO_HIDP = 6 18 | BTPROTO_AVDTP = 7 19 | ) 20 | 21 | const ( 22 | HCI_CHANNEL_RAW = 0 23 | HCI_CHANNEL_USER = 1 24 | HCI_CHANNEL_MONITOR = 2 25 | HCI_CHANNEL_CONTROL = 3 26 | HCI_CHANNEL_LOGGING = 4 27 | ) 28 | 29 | // Socketoption Level 30 | const ( 31 | SOL_BLUETOOTH = 0x112 32 | SOL_HCI = 0x0 33 | SOL_L2CAP = 0x6 34 | SOL_RFCOMM = 0x12 35 | SOL_SCO = 0x11 36 | ) 37 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix && ppc 6 | // +build aix,ppc 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used by AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev >> 16) & 0xffff) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32(dev & 0xffff) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | return uint64(((major) << 16) | (minor)) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_aix_ppc64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix && ppc64 6 | // +build aix,ppc64 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev & 0x3fffffff00000000) >> 32) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32((dev & 0x00000000ffffffff) >> 0) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | var DEVNO64 uint64 27 | DEVNO64 = 0x8000000000000000 28 | return ((uint64(major) << 32) | (uint64(minor) & 0x00000000FFFFFFFF) | DEVNO64) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Functions to access/create device major and minor numbers matching the 6 | // encoding used in Darwin's sys/types.h header. 7 | 8 | package unix 9 | 10 | // Major returns the major component of a Darwin device number. 11 | func Major(dev uint64) uint32 { 12 | return uint32((dev >> 24) & 0xff) 13 | } 14 | 15 | // Minor returns the minor component of a Darwin device number. 16 | func Minor(dev uint64) uint32 { 17 | return uint32(dev & 0xffffff) 18 | } 19 | 20 | // Mkdev returns a Darwin device number generated from the given major and minor 21 | // components. 22 | func Mkdev(major, minor uint32) uint64 { 23 | return (uint64(major) << 24) | uint64(minor) 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/dev_zos.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build zos && s390x 6 | // +build zos,s390x 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used by z/OS. 10 | // 11 | // The information below is extracted and adapted from macros. 12 | 13 | package unix 14 | 15 | // Major returns the major component of a z/OS device number. 16 | func Major(dev uint64) uint32 { 17 | return uint32((dev >> 16) & 0x0000FFFF) 18 | } 19 | 20 | // Minor returns the minor component of a z/OS device number. 21 | func Minor(dev uint64) uint32 { 22 | return uint32(dev & 0x0000FFFF) 23 | } 24 | 25 | // Mkdev returns a z/OS device number generated from the given major and minor 26 | // components. 27 | func Mkdev(major, minor uint32) uint64 { 28 | return (uint64(major) << 16) | uint64(minor) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build 386 || amd64 || amd64p32 || alpha || arm || arm64 || loong64 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 loong64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | // Unix environment variables. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getenv(key string) (value string, found bool) { 15 | return syscall.Getenv(key) 16 | } 17 | 18 | func Setenv(key, value string) error { 19 | return syscall.Setenv(key, value) 20 | } 21 | 22 | func Clearenv() { 23 | syscall.Clearenv() 24 | } 25 | 26 | func Environ() []string { 27 | return syscall.Environ() 28 | } 29 | 30 | func Unsetenv(key string) error { 31 | return syscall.Unsetenv(key) 32 | } 33 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | import "unsafe" 8 | 9 | // FcntlInt performs a fcntl syscall on fd with the provided command and argument. 10 | func FcntlInt(fd uintptr, cmd, arg int) (int, error) { 11 | return fcntl(int(fd), cmd, arg) 12 | } 13 | 14 | // FcntlFlock performs a fcntl syscall for the F_GETLK, F_SETLK or F_SETLKW command. 15 | func FcntlFlock(fd uintptr, cmd int, lk *Flock_t) error { 16 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(lk)))) 17 | return err 18 | } 19 | 20 | // FcntlFstore performs a fcntl syscall for the F_PREALLOCATE command. 21 | func FcntlFstore(fd uintptr, cmd int, fstore *Fstore_t) error { 22 | _, err := fcntl(int(fd), cmd, int(uintptr(unsafe.Pointer(fstore)))) 23 | return err 24 | } 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | // +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc 7 | 8 | package unix 9 | 10 | func init() { 11 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 12 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 13 | fcntl64Syscall = SYS_FCNTL64 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/fdset.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | // Set adds fd to the set fds. 11 | func (fds *FdSet) Set(fd int) { 12 | fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS)) 13 | } 14 | 15 | // Clear removes fd from the set fds. 16 | func (fds *FdSet) Clear(fd int) { 17 | fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS)) 18 | } 19 | 20 | // IsSet returns whether fd is in the set fds. 21 | func (fds *FdSet) IsSet(fd int) bool { 22 | return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0 23 | } 24 | 25 | // Zero clears the set fds. 26 | func (fds *FdSet) Zero() { 27 | for i := range fds.Bits { 28 | fds.Bits[i] = 0 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | // +build gccgo,linux,amd64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //extern gettimeofday 13 | func realGettimeofday(*Timeval, *byte) int32 14 | 15 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 16 | r := realGettimeofday(tv, nil) 17 | if r < 0 { 18 | return syscall.GetErrno() 19 | } 20 | return 0 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | // +build darwin,race linux,race freebsd,race 7 | 8 | package unix 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos 7 | 8 | package unix 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin 6 | // +build darwin 7 | 8 | package unix 9 | 10 | import "unsafe" 11 | 12 | // ReadDirent reads directory entries from fd and writes them into buf. 13 | func ReadDirent(fd int, buf []byte) (n int, err error) { 14 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 15 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 16 | // actual system call is getdirentries64, 64 is a good guess. 17 | // TODO(rsc): Can we use a single global basep for all calls? 18 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 19 | return Getdirentries(fd, buf, base) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sockcmsg_dragonfly.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package unix 6 | 7 | // Round the length of a raw sockaddr up to align it properly. 8 | func cmsgAlignOf(salen int) int { 9 | salign := SizeofPtr 10 | if SizeofPtr == 8 && !supportsABI(_dragonflyABIChangeVersion) { 11 | // 64-bit Dragonfly before the September 2019 ABI changes still requires 12 | // 32-bit aligned access to network subsystem. 13 | salign = 4 14 | } 15 | return (salen + salign - 1) & ^(salign - 1) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | package unix 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + uitoa(uint(-val)) 13 | } 14 | return uitoa(uint(val)) 15 | } 16 | 17 | func uitoa(val uint) string { 18 | var buf [32]byte // big enough for int64 19 | i := len(buf) - 1 20 | for val >= 10 { 21 | buf[i] = byte(val%10 + '0') 22 | i-- 23 | val /= 10 24 | } 25 | buf[i] = byte(val + '0') 26 | return string(buf[i:]) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | // +build linux 7 | // +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64 8 | 9 | package unix 10 | 11 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 12 | // values. 13 | 14 | //sys Alarm(seconds uint) (remaining uint, err error) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | // +build linux,gc 7 | 8 | package unix 9 | 10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 12 | 13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 14 | // fail. 15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | // +build linux,gc,386 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | 16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | // +build linux,gccgo,arm 7 | 8 | package unix 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 16 | var newoffset int64 17 | offsetLow := uint32(offset & 0xffffffff) 18 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 19 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 20 | return newoffset, err 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build 386 && netbsd 6 | // +build 386,netbsd 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: int32(nsec)} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: int32(usec)} 16 | } 17 | 18 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 19 | k.Ident = uint32(fd) 20 | k.Filter = uint32(mode) 21 | k.Flags = uint32(flags) 22 | } 23 | 24 | func (iov *Iovec) SetLen(length int) { 25 | iov.Len = uint32(length) 26 | } 27 | 28 | func (msghdr *Msghdr) SetControllen(length int) { 29 | msghdr.Controllen = uint32(length) 30 | } 31 | 32 | func (msghdr *Msghdr) SetIovlen(length int) { 33 | msghdr.Iovlen = int32(length) 34 | } 35 | 36 | func (cmsg *Cmsghdr) SetLen(length int) { 37 | cmsg.Len = uint32(length) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_netbsd_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && netbsd 6 | // +build amd64,netbsd 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: int32(usec)} 16 | } 17 | 18 | func SetKevent(k *Kevent_t, fd, mode, flags int) { 19 | k.Ident = uint64(fd) 20 | k.Filter = uint32(mode) 21 | k.Flags = uint32(flags) 22 | } 23 | 24 | func (iov *Iovec) SetLen(length int) { 25 | iov.Len = uint64(length) 26 | } 27 | 28 | func (msghdr *Msghdr) SetControllen(length int) { 29 | msghdr.Controllen = uint32(length) 30 | } 31 | 32 | func (msghdr *Msghdr) SetIovlen(length int) { 33 | msghdr.Iovlen = int32(length) 34 | } 35 | 36 | func (cmsg *Cmsghdr) SetLen(length int) { 37 | cmsg.Len = uint32(length) 38 | } 39 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && solaris 6 | // +build amd64,solaris 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: usec} 16 | } 17 | 18 | func (iov *Iovec) SetLen(length int) { 19 | iov.Len = uint64(length) 20 | } 21 | 22 | func (msghdr *Msghdr) SetIovlen(length int) { 23 | msghdr.Iovlen = int32(length) 24 | } 25 | 26 | func (cmsg *Cmsghdr) SetLen(length int) { 27 | cmsg.Len = uint32(length) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc64 6 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 7 | // +build gc 8 | // +build !ppc64le 9 | // +build !ppc64 10 | 11 | package unix 12 | 13 | import "syscall" 14 | 15 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 17 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 18 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (ppc64le || ppc64) && gc 6 | // +build linux 7 | // +build ppc64le ppc64 8 | // +build gc 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 15 | return syscall.Syscall(trap, a1, a2, a3) 16 | } 17 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 18 | return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6) 19 | } 20 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 21 | return syscall.RawSyscall(trap, a1, a2, a3) 22 | } 23 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 24 | return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | // +build linux 7 | 8 | package unix 9 | 10 | import "runtime" 11 | 12 | // SysvShmCtl performs control operations on the shared memory segment 13 | // specified by id. 14 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 15 | if runtime.GOARCH == "arm" || 16 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 17 | cmd |= ipc_64 18 | } 19 | 20 | return shmctl(id, cmd, desc) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | // SysvShmCtl performs control operations on the shared memory segment 11 | // specified by id. 12 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 13 | return shmctl(id, cmd, desc) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go amd64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | //go:build go1.13 5 | // +build go1.13 6 | 7 | #include "textflag.h" 8 | 9 | TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 10 | JMP libc_fdopendir(SB) 11 | 12 | GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 13 | DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) 14 | 15 | TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 16 | JMP libc_closedir(SB) 17 | 18 | GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 19 | DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) 20 | 21 | TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 22 | JMP libc_readdir_r(SB) 23 | 24 | GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 25 | DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | //go:build go1.13 5 | // +build go1.13 6 | 7 | #include "textflag.h" 8 | 9 | TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 10 | JMP libc_fdopendir(SB) 11 | 12 | GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 13 | DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) 14 | 15 | TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 16 | JMP libc_closedir(SB) 17 | 18 | GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 19 | DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) 20 | 21 | TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 22 | JMP libc_readdir_r(SB) 23 | 24 | GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 25 | DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/ztypes_illumos_amd64.go: -------------------------------------------------------------------------------- 1 | // cgo -godefs types_illumos.go | go run mkpost.go 2 | // Code generated by the command above; see README.md. DO NOT EDIT. 3 | 4 | //go:build amd64 && illumos 5 | // +build amd64,illumos 6 | 7 | package unix 8 | 9 | const ( 10 | TUNNEWPPA = 0x540001 11 | TUNSETPPA = 0x540002 12 | 13 | I_STR = 0x5308 14 | I_POP = 0x5303 15 | I_PUSH = 0x5302 16 | I_LINK = 0x530c 17 | I_UNLINK = 0x530d 18 | I_PLINK = 0x5316 19 | I_PUNLINK = 0x5317 20 | 21 | IF_UNITSEL = -0x7ffb8cca 22 | ) 23 | 24 | type strbuf struct { 25 | Maxlen int32 26 | Len int32 27 | Buf *int8 28 | } 29 | 30 | type Strioctl struct { 31 | Cmd int32 32 | Timout int32 33 | Len int32 34 | Dp *int8 35 | } 36 | 37 | type Lifreq struct { 38 | Name [32]int8 39 | Lifru1 [4]byte 40 | Type uint32 41 | Lifru [336]byte 42 | } 43 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && go1.9 6 | // +build windows,go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.12 6 | // +build !go1.12 7 | 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 9 | // and earlier (see https://golang.org/issue/23311). 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/eventlog.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | const ( 11 | EVENTLOG_SUCCESS = 0 12 | EVENTLOG_ERROR_TYPE = 1 13 | EVENTLOG_WARNING_TYPE = 2 14 | EVENTLOG_INFORMATION_TYPE = 4 15 | EVENTLOG_AUDIT_SUCCESS = 8 16 | EVENTLOG_AUDIT_FAILURE = 16 17 | ) 18 | 19 | //sys RegisterEventSource(uncServerName *uint16, sourceName *uint16) (handle Handle, err error) [failretval==0] = advapi32.RegisterEventSourceW 20 | //sys DeregisterEventSource(handle Handle) (err error) = advapi32.DeregisterEventSource 21 | //sys ReportEvent(log Handle, etype uint16, category uint16, eventId uint32, usrSId uintptr, numStrings uint16, dataSize uint32, strings **uint16, rawData *byte) (err error) = advapi32.ReportEventW 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | // +build generate 7 | 8 | package windows 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && race 6 | // +build windows,race 7 | 8 | package windows 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | // +build windows,!race 7 | 8 | package windows 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + itoa(-val) 13 | } 14 | var buf [32]byte // big enough for int64 15 | i := len(buf) - 1 16 | for val >= 10 { 17 | buf[i] = byte(val%10 + '0') 18 | i-- 19 | val /= 10 20 | } 21 | buf[i] = byte(val + '0') 22 | return string(buf[i:]) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/windows/types_windows_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package windows 6 | 7 | type WSAData struct { 8 | Version uint16 9 | HighVersion uint16 10 | MaxSockets uint16 11 | MaxUdpDg uint16 12 | VendorInfo *byte 13 | Description [WSADESCRIPTION_LEN + 1]byte 14 | SystemStatus [WSASYS_STATUS_LEN + 1]byte 15 | } 16 | 17 | type Servent struct { 18 | Name *byte 19 | Aliases **byte 20 | Proto *byte 21 | Port uint16 22 | } 23 | 24 | type JOBOBJECT_BASIC_LIMIT_INFORMATION struct { 25 | PerProcessUserTimeLimit int64 26 | PerJobUserTimeLimit int64 27 | LimitFlags uint32 28 | MinimumWorkingSetSize uintptr 29 | MaximumWorkingSetSize uintptr 30 | ActiveProcessLimit uint32 31 | Affinity uintptr 32 | PriorityClass uint32 33 | SchedulingClass uint32 34 | } 35 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/go/ast/astutil/util.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package astutil 6 | 7 | import "go/ast" 8 | 9 | // Unparen returns e with any enclosing parentheses stripped. 10 | func Unparen(e ast.Expr) ast.Expr { 11 | for { 12 | p, ok := e.(*ast.ParenExpr) 13 | if !ok { 14 | return e 15 | } 16 | e = p.X 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/event/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package event provides a set of packages that cover the main 6 | // concepts of telemetry in an implementation agnostic way. 7 | package event 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_fileno.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build freebsd || openbsd || netbsd 6 | // +build freebsd openbsd netbsd 7 | 8 | package fastwalk 9 | 10 | import "syscall" 11 | 12 | func direntInode(dirent *syscall.Dirent) uint64 { 13 | return uint64(dirent.Fileno) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_ino.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux || darwin) && !appengine 6 | // +build linux darwin 7 | // +build !appengine 8 | 9 | package fastwalk 10 | 11 | import "syscall" 12 | 13 | func direntInode(dirent *syscall.Dirent) uint64 { 14 | return uint64(dirent.Ino) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_bsd.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin || freebsd || openbsd || netbsd 6 | // +build darwin freebsd openbsd netbsd 7 | 8 | package fastwalk 9 | 10 | import "syscall" 11 | 12 | func direntNamlen(dirent *syscall.Dirent) uint64 { 13 | return uint64(dirent.Namlen) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/fastwalk/fastwalk_dirent_namlen_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && !appengine 6 | // +build linux,!appengine 7 | 8 | package fastwalk 9 | 10 | import ( 11 | "bytes" 12 | "syscall" 13 | "unsafe" 14 | ) 15 | 16 | func direntNamlen(dirent *syscall.Dirent) uint64 { 17 | const fixedHdr = uint16(unsafe.Offsetof(syscall.Dirent{}.Name)) 18 | nameBuf := (*[unsafe.Sizeof(dirent.Name)]byte)(unsafe.Pointer(&dirent.Name[0])) 19 | const nameBufLen = uint16(len(nameBuf)) 20 | limit := dirent.Reclen - fixedHdr 21 | if limit > nameBufLen { 22 | limit = nameBufLen 23 | } 24 | nameLen := bytes.IndexByte(nameBuf[:limit], 0) 25 | if nameLen < 0 { 26 | panic("failed to find terminating 0 byte in dirent") 27 | } 28 | return uint64(nameLen) 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/typeparams/enabled_go117.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.18 6 | // +build !go1.18 7 | 8 | package typeparams 9 | 10 | // Enabled reports whether type parameters are enabled in the current build 11 | // environment. 12 | const Enabled = false 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/tools/internal/typeparams/enabled_go118.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.18 6 | // +build go1.18 7 | 8 | package typeparams 9 | 10 | // Note: this constant is in a separate file as this is the only acceptable 11 | // diff between the <1.18 API of this package and the 1.18 API. 12 | 13 | // Enabled reports whether type parameters are enabled in the current build 14 | // environment. 15 | const Enabled = true 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/README: -------------------------------------------------------------------------------- 1 | This repository holds the transition packages for the new Go 1.13 error values. 2 | See golang.org/design/29934-error-values. 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // Package xerrors implements functions to manipulate errors. 6 | // 7 | // This package is based on the Go 2 proposal for error values: 8 | // https://golang.org/design/29934-error-values 9 | // 10 | // These functions were incorporated into the standard library's errors package 11 | // in Go 1.13: 12 | // - Is 13 | // - As 14 | // - Unwrap 15 | // 16 | // Also, Errorf's %w verb was incorporated into fmt.Errorf. 17 | // 18 | // Use this package to get equivalent behavior in all supported Go versions. 19 | // 20 | // No other features of this package were included in Go 1.13, and at present 21 | // there are no plans to include any of them. 22 | package xerrors // import "golang.org/x/xerrors" 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/errors.go: -------------------------------------------------------------------------------- 1 | // Copyright 2011 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package xerrors 6 | 7 | import "fmt" 8 | 9 | // errorString is a trivial implementation of error. 10 | type errorString struct { 11 | s string 12 | frame Frame 13 | } 14 | 15 | // New returns an error that formats as the given text. 16 | // 17 | // The returned error contains a Frame set to the caller's location and 18 | // implements Formatter to show this information when printed with details. 19 | func New(text string) error { 20 | return &errorString{text, Caller(1)} 21 | } 22 | 23 | func (e *errorString) Error() string { 24 | return e.s 25 | } 26 | 27 | func (e *errorString) Format(s fmt.State, v rune) { FormatError(e, s, v) } 28 | 29 | func (e *errorString) FormatError(p Printer) (next error) { 30 | p.Print(e.s) 31 | e.frame.Format(p) 32 | return nil 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/go.mod: -------------------------------------------------------------------------------- 1 | module golang.org/x/xerrors 2 | 3 | go 1.11 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/xerrors/internal/internal.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package internal 6 | 7 | // EnableTrace indicates whether stack information should be recorded in errors. 8 | var EnableTrace = true 9 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/go.mod: -------------------------------------------------------------------------------- 1 | module "gopkg.in/yaml.v3" 2 | 3 | require ( 4 | "gopkg.in/check.v1" v0.0.0-20161208181325-20d25e280405 5 | ) 6 | --------------------------------------------------------------------------------