├── vendor ├── github.com │ ├── bytedance │ │ └── sonic │ │ │ ├── CREDITS │ │ │ ├── ast │ │ │ └── asm.s │ │ │ ├── internal │ │ │ ├── jit │ │ │ │ └── asm.s │ │ │ ├── caching │ │ │ │ └── asm.s │ │ │ ├── decoder │ │ │ │ └── asm.s │ │ │ ├── encoder │ │ │ │ └── asm.s │ │ │ ├── resolver │ │ │ │ └── asm.s │ │ │ ├── rt │ │ │ │ ├── asm_compat.s │ │ │ │ └── stub_go116.go │ │ │ └── native │ │ │ │ ├── neon │ │ │ │ ├── quote_subr_arm64.go │ │ │ │ ├── value_subr_arm64.go │ │ │ │ ├── f32toa_subr_arm64.go │ │ │ │ ├── f64toa_subr_arm64.go │ │ │ │ ├── i64toa_subr_arm64.go │ │ │ │ ├── lspace_subr_arm64.go │ │ │ │ ├── u64toa_subr_arm64.go │ │ │ │ ├── unquote_subr_arm64.go │ │ │ │ ├── vnumber_subr_arm64.go │ │ │ │ ├── vsigned_subr_arm64.go │ │ │ │ ├── vstring_subr_arm64.go │ │ │ │ ├── skip_one_subr_arm64.go │ │ │ │ ├── vunsigned_subr_arm64.go │ │ │ │ ├── skip_array_subr_arm64.go │ │ │ │ ├── html_escape_subr_arm64.go │ │ │ │ ├── skip_number_subr_arm64.go │ │ │ │ ├── get_by_path_subr_arm64.go │ │ │ │ ├── skip_object_subr_arm64.go │ │ │ │ ├── validate_one_subr_arm64.go │ │ │ │ ├── skip_one_fast_subr_arm64.go │ │ │ │ ├── validate_utf8_subr_arm64.go │ │ │ │ └── validate_utf8_fast_subr_arm64.go │ │ │ │ ├── avx │ │ │ │ ├── lspace_subr.go │ │ │ │ ├── u64toa_subr.go │ │ │ │ ├── f32toa_subr.go │ │ │ │ └── vunsigned_subr.go │ │ │ │ ├── sse │ │ │ │ ├── lspace_subr.go │ │ │ │ ├── u64toa_subr.go │ │ │ │ ├── f32toa_subr.go │ │ │ │ └── vunsigned_subr.go │ │ │ │ └── avx2 │ │ │ │ ├── lspace_subr.go │ │ │ │ ├── u64toa_subr.go │ │ │ │ ├── f32toa_subr.go │ │ │ │ └── vunsigned_subr.go │ │ │ ├── go.work │ │ │ ├── .gitmodules │ │ │ └── .gitignore │ ├── ugorji │ │ └── go │ │ │ └── codec │ │ │ ├── helper.s │ │ │ ├── goversion_vendor_gte_go17.go │ │ │ ├── goversion_vendor_lt_go15.go │ │ │ ├── goversion_unexportedembeddedptr_gte_go110.go │ │ │ ├── goversion_unexportedembeddedptr_lt_go110.go │ │ │ ├── goversion_vendor_eq_go15.go │ │ │ ├── goversion_vendor_eq_go16.go │ │ │ ├── goversion_fmt_time_gte_go15.go │ │ │ ├── 0_importpath.go │ │ │ ├── goversion_makemap_lt_go110.go │ │ │ ├── goversion_fmt_time_lt_go15.go │ │ │ ├── goversion_arrayof_gte_go15.go │ │ │ ├── goversion_makemap_not_unsafe_gte_go110.go │ │ │ ├── goversion_arrayof_lt_go15.go │ │ │ ├── goversion_growslice_unsafe_lt_go120.go │ │ │ ├── codecgen.go │ │ │ ├── helper_not_unsafe_not_gc.go │ │ │ ├── goversion_unsupported_lt_go14.go │ │ │ ├── gen-enc-chan.go.tmpl │ │ │ └── goversion_makemap_unsafe_gte_go110.go │ ├── modern-go │ │ ├── reflect2 │ │ │ ├── reflect2_amd64.s │ │ │ ├── relfect2_386.s │ │ │ ├── relfect2_arm.s │ │ │ ├── relfect2_arm64.s │ │ │ ├── relfect2_mipsx.s │ │ │ ├── relfect2_s390x.s │ │ │ ├── relfect2_amd64p32.s │ │ │ ├── relfect2_mips64x.s │ │ │ ├── relfect2_ppc64x.s │ │ │ ├── .gitignore │ │ │ ├── Gopkg.lock │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── go_below_118.go │ │ │ ├── go_above_118.go │ │ │ ├── Gopkg.toml │ │ │ └── safe_struct.go │ │ └── concurrent │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── go_above_19.go │ │ │ ├── test.sh │ │ │ ├── log.go │ │ │ ├── executor.go │ │ │ └── go_below_19.go │ ├── goccy │ │ └── go-json │ │ │ ├── .gitignore │ │ │ ├── internal │ │ │ ├── encoder │ │ │ │ ├── map113.go │ │ │ │ ├── map112.go │ │ │ │ ├── vm │ │ │ │ │ └── hack.go │ │ │ │ ├── vm_indent │ │ │ │ │ └── hack.go │ │ │ │ └── vm_color │ │ │ │ │ └── hack.go │ │ │ └── decoder │ │ │ │ ├── option.go │ │ │ │ ├── compile_norace.go │ │ │ │ ├── type.go │ │ │ │ └── compile_race.go │ │ │ ├── docker-compose.yml │ │ │ └── .codecov.yml │ ├── pelletier │ │ └── go-toml │ │ │ └── v2 │ │ │ ├── internal │ │ │ ├── tracker │ │ │ │ └── tracker.go │ │ │ ├── danger │ │ │ │ └── typeid.go │ │ │ └── characters │ │ │ │ └── ascii.go │ │ │ ├── .dockerignore │ │ │ ├── doc.go │ │ │ ├── .gitattributes │ │ │ ├── Dockerfile │ │ │ ├── unstable │ │ │ ├── doc.go │ │ │ └── unmarshaler.go │ │ │ ├── .gitignore │ │ │ ├── types.go │ │ │ └── SECURITY.md │ ├── gabriel-vasile │ │ └── mimetype │ │ │ ├── .gitattributes │ │ │ ├── mimetype.gif │ │ │ ├── internal │ │ │ └── magic │ │ │ │ └── database.go │ │ │ └── CONTRIBUTING.md │ ├── json-iterator │ │ └── go │ │ │ ├── .codecov.yml │ │ │ ├── .gitignore │ │ │ ├── .travis.yml │ │ │ ├── test.sh │ │ │ ├── build.sh │ │ │ ├── Gopkg.lock │ │ │ ├── Gopkg.toml │ │ │ └── fuzzy_mode_convert_table.md │ ├── mattn │ │ └── go-isatty │ │ │ ├── doc.go │ │ │ ├── go.test.sh │ │ │ ├── isatty_others.go │ │ │ ├── isatty_plan9.go │ │ │ ├── isatty_tcgets.go │ │ │ ├── isatty_solaris.go │ │ │ └── isatty_bsd.go │ ├── cloudwego │ │ ├── base64x │ │ │ ├── README.md │ │ │ ├── _typos.toml │ │ │ ├── .licenserc.yaml │ │ │ ├── check_branch_name.sh │ │ │ └── .gitignore │ │ └── iasm │ │ │ ├── x86_64 │ │ │ └── asm.s │ │ │ └── expr │ │ │ └── term.go │ ├── go-playground │ │ ├── locales │ │ │ ├── logo.png │ │ │ ├── .gitignore │ │ │ └── .travis.yml │ │ ├── validator │ │ │ └── v10 │ │ │ │ ├── logo.png │ │ │ │ ├── translations.go │ │ │ │ ├── Makefile │ │ │ │ ├── .gitignore │ │ │ │ └── MAINTAINERS.md │ │ └── universal-translator │ │ │ ├── logo.png │ │ │ ├── .gitignore │ │ │ ├── Makefile │ │ │ └── .travis.yml │ ├── leodido │ │ └── go-urn │ │ │ ├── kind.go │ │ │ ├── .gitignore │ │ │ ├── options.go │ │ │ ├── parsing_mode.go │ │ │ ├── scim │ │ │ └── schema │ │ │ │ └── type.go │ │ │ └── urn8141.go │ ├── google │ │ └── uuid │ │ │ ├── CONTRIBUTORS │ │ │ ├── doc.go │ │ │ ├── node_js.go │ │ │ └── README.md │ ├── gin-gonic │ │ └── gin │ │ │ ├── .gitignore │ │ │ ├── doc.go │ │ │ ├── codecov.yml │ │ │ ├── version.go │ │ │ ├── context_appengine.go │ │ │ ├── binding │ │ │ ├── uri.go │ │ │ ├── query.go │ │ │ ├── xml.go │ │ │ ├── yaml.go │ │ │ ├── toml.go │ │ │ └── msgpack.go │ │ │ ├── CONTRIBUTING.md │ │ │ ├── internal │ │ │ ├── bytesconv │ │ │ │ ├── bytesconv_1.19.go │ │ │ │ └── bytesconv_1.20.go │ │ │ └── json │ │ │ │ ├── go_json.go │ │ │ │ ├── json.go │ │ │ │ ├── jsoniter.go │ │ │ │ └── sonic.go │ │ │ ├── render │ │ │ ├── data.go │ │ │ └── xml.go │ │ │ ├── test_helpers.go │ │ │ └── deprecated.go │ ├── klauspost │ │ └── cpuid │ │ │ └── v2 │ │ │ ├── os_safe_linux_arm64.go │ │ │ ├── os_unsafe_linux_arm64.go │ │ │ ├── .gitignore │ │ │ ├── os_other_arm64.go │ │ │ ├── test-architectures.sh │ │ │ └── detect_ref.go │ ├── stretchr │ │ └── testify │ │ │ └── assert │ │ │ ├── assertion_format.go.tmpl │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── errors.go │ │ │ └── forward_assertions.go │ ├── kljensen │ │ └── snowball │ │ │ ├── swedish │ │ │ ├── preprocess.go │ │ │ ├── README.md │ │ │ ├── step2.go │ │ │ └── stem.go │ │ │ ├── norwegian │ │ │ ├── preprocess.go │ │ │ ├── README.md │ │ │ ├── step2.go │ │ │ ├── stem.go │ │ │ └── step3.go │ │ │ ├── english │ │ │ ├── postprocess.go │ │ │ ├── step0.go │ │ │ ├── preprocess.go │ │ │ ├── step1c.go │ │ │ └── README.md │ │ │ ├── spanish │ │ │ ├── postprocess.go │ │ │ ├── preprocess.go │ │ │ ├── README.md │ │ │ ├── step2a.go │ │ │ └── step3.go │ │ │ ├── russian │ │ │ ├── preprocess.go │ │ │ ├── step2.go │ │ │ ├── step3.go │ │ │ └── stem.go │ │ │ ├── french │ │ │ ├── preprocess.go │ │ │ ├── step5.go │ │ │ ├── postprocess.go │ │ │ └── step3.go │ │ │ ├── hungarian │ │ │ └── README.md │ │ │ └── romance │ │ │ └── common.go │ ├── twitchyliquid64 │ │ └── golang-asm │ │ │ ├── bio │ │ │ └── buf_nommap.go │ │ │ ├── obj │ │ │ ├── go.go │ │ │ ├── abi_string.go │ │ │ ├── addrtype_string.go │ │ │ ├── s390x │ │ │ │ └── anamesz.go │ │ │ ├── mips │ │ │ │ └── anames0.go │ │ │ ├── riscv │ │ │ │ └── list.go │ │ │ └── ppc64 │ │ │ │ └── anames9.go │ │ │ └── objabi │ │ │ └── typekind.go │ ├── gin-contrib │ │ └── sse │ │ │ ├── .travis.yml │ │ │ └── writer.go │ └── davecgh │ │ └── go-spew │ │ └── LICENSE ├── golang.org │ └── x │ │ ├── net │ │ ├── http2 │ │ │ ├── .gitignore │ │ │ └── timer.go │ │ └── idna │ │ │ ├── pre_go118.go │ │ │ └── go118.go │ │ ├── sys │ │ ├── unix │ │ │ ├── .gitignore │ │ │ ├── ptrace_ios.go │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ ├── endian_big.go │ │ │ ├── ptrace_darwin.go │ │ │ ├── constants.go │ │ │ ├── endian_little.go │ │ │ ├── mmap_nomremap.go │ │ │ ├── aliases.go │ │ │ ├── readdirent_getdents.go │ │ │ ├── pagesize_unix.go │ │ │ ├── sysvshm_unix_other.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── syscall_linux_gc_arm.go │ │ │ ├── asm_solaris_amd64.s │ │ │ ├── fcntl_linux_32bit.go │ │ │ ├── syscall_linux_alarm.go │ │ │ ├── gccgo_linux_amd64.go │ │ │ ├── syscall_linux_gc.go │ │ │ ├── syscall_hurd_386.go │ │ │ ├── sysvshm_linux.go │ │ │ ├── sockcmsg_dragonfly.go │ │ │ ├── race0.go │ │ │ ├── syscall_linux_gc_386.go │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ ├── syscall_unix_gc.go │ │ │ ├── syscall_solaris_amd64.go │ │ │ ├── race.go │ │ │ ├── syscall_hurd.go │ │ │ ├── env_unix.go │ │ │ ├── asm_bsd_arm.s │ │ │ ├── readdirent_getdirentries.go │ │ │ ├── zptrace_linux_arm64.go │ │ │ ├── asm_openbsd_mips64.s │ │ │ ├── asm_bsd_386.s │ │ │ ├── asm_bsd_arm64.s │ │ │ ├── asm_bsd_riscv64.s │ │ │ ├── asm_bsd_amd64.s │ │ │ ├── asm_bsd_ppc64.s │ │ │ ├── bluetooth_linux.go │ │ │ ├── dev_aix_ppc.go │ │ │ ├── dev_darwin.go │ │ │ ├── syscall_unix_gc_ppc64x.go │ │ │ ├── fdset.go │ │ │ └── fcntl_darwin.go │ │ └── cpu │ │ │ ├── cpu_other_arm.go │ │ │ ├── cpu_zos.go │ │ │ ├── cpu_other_arm64.go │ │ │ ├── cpu_riscv64.go │ │ │ ├── cpu_loong64.go │ │ │ ├── cpu_mipsx.go │ │ │ ├── cpu_other_riscv64.go │ │ │ ├── cpu_other_mips64x.go │ │ │ ├── cpu_linux_noinit.go │ │ │ ├── cpu_gc_arm64.go │ │ │ ├── cpu_other_ppc64x.go │ │ │ ├── cpu_gccgo_arm64.go │ │ │ ├── cpu_linux.go │ │ │ ├── cpu_mips64x.go │ │ │ ├── cpu_openbsd_arm64.s │ │ │ ├── cpu_ppc64x.go │ │ │ ├── endian_big.go │ │ │ ├── runtime_auxv_go121.go │ │ │ ├── runtime_auxv.go │ │ │ ├── endian_little.go │ │ │ ├── asm_aix_ppc64.s │ │ │ ├── cpu_wasm.go │ │ │ ├── cpu_gc_x86.go │ │ │ ├── cpu_linux_mips64x.go │ │ │ ├── cpu_x86.s │ │ │ ├── cpu_aix.go │ │ │ ├── cpu_zos_s390x.go │ │ │ ├── cpu_gc_s390x.go │ │ │ ├── syscall_aix_gccgo.go │ │ │ ├── cpu_linux_ppc64x.go │ │ │ └── cpu_gccgo_x86.go │ │ ├── arch │ │ └── x86 │ │ │ └── x86asm │ │ │ └── Makefile │ │ ├── crypto │ │ └── sha3 │ │ │ ├── keccakf_amd64.go │ │ │ ├── shake_noasm.go │ │ │ ├── register.go │ │ │ └── hashes_noasm.go │ │ └── text │ │ ├── secure │ │ └── bidirule │ │ │ ├── bidirule10.0.0.go │ │ │ └── bidirule9.0.0.go │ │ └── internal │ │ └── language │ │ ├── common.go │ │ └── coverage.go ├── google.golang.org │ └── protobuf │ │ ├── internal │ │ ├── flags │ │ │ ├── proto_legacy_enable.go │ │ │ └── proto_legacy_disable.go │ │ ├── errors │ │ │ └── is_go113.go │ │ ├── genid │ │ │ ├── doc.go │ │ │ ├── wrappers.go │ │ │ ├── map_entry.go │ │ │ ├── empty_gen.go │ │ │ └── goname.go │ │ └── strs │ │ │ └── strings_pure.go │ │ ├── runtime │ │ └── protoiface │ │ │ └── legacy.go │ │ └── proto │ │ ├── proto_reflect.go │ │ └── proto_methods.go └── gopkg.in │ └── yaml.v3 │ └── NOTICE ├── .golangci.yaml ├── .air.toml ├── pkg ├── tokenizer │ ├── errors.go │ ├── stopwords.go │ └── stems.go └── store │ └── errors.go ├── api └── models.go ├── .gitignore ├── cmd └── server │ └── main.go └── Dockerfile /vendor/github.com/bytedance/sonic/CREDITS: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/ast/asm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/helper.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/jit/asm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/caching/asm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/decoder/asm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/encoder/asm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/resolver/asm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/.gitignore: -------------------------------------------------------------------------------- 1 | cover.html 2 | cover.out 3 | -------------------------------------------------------------------------------- /.golangci.yaml: -------------------------------------------------------------------------------- 1 | run: 2 | timeout: 3m 3 | allow-parallel-runners: true 4 | -------------------------------------------------------------------------------- /vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/internal/tracker/tracker.go: -------------------------------------------------------------------------------- 1 | package tracker 2 | -------------------------------------------------------------------------------- /vendor/github.com/gabriel-vasile/mimetype/.gitattributes: -------------------------------------------------------------------------------- 1 | testdata/* linguist-vendored 2 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/.dockerignore: -------------------------------------------------------------------------------- 1 | cmd/tomll/tomll 2 | cmd/tomljson/tomljson 3 | -------------------------------------------------------------------------------- /vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/doc.go: -------------------------------------------------------------------------------- 1 | // Package toml is a library to read and write TOML documents. 2 | package toml 3 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | 3 | benchmark/benchmark.toml text eol=lf 4 | testdata/** text eol=lf 5 | -------------------------------------------------------------------------------- /vendor/github.com/cloudwego/base64x/README.md: -------------------------------------------------------------------------------- 1 | # base64x 2 | 3 | High performance drop-in replacement of the `encoding/base64` library. 4 | 5 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micpst/minisearch/HEAD/vendor/github.com/go-playground/locales/logo.png -------------------------------------------------------------------------------- /vendor/github.com/gabriel-vasile/mimetype/mimetype.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micpst/minisearch/HEAD/vendor/github.com/gabriel-vasile/mimetype/mimetype.gif -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micpst/minisearch/HEAD/vendor/github.com/go-playground/validator/v10/logo.png -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/go.work: -------------------------------------------------------------------------------- 1 | go 1.18 2 | 3 | use ( 4 | . 5 | ./external_jsonlib_test 6 | ./fuzz 7 | ./generic_test 8 | ./loader 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/micpst/minisearch/HEAD/vendor/github.com/go-playground/universal-translator/logo.png -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/kind.go: -------------------------------------------------------------------------------- 1 | package urn 2 | 3 | type Kind int 4 | 5 | const ( 6 | NONE Kind = iota 7 | RFC2141 8 | RFC7643 9 | RFC8141 10 | ) 11 | -------------------------------------------------------------------------------- /vendor/github.com/cloudwego/base64x/_typos.toml: -------------------------------------------------------------------------------- 1 | # Typo check: https://github.com/crate-ci/typos 2 | 3 | [files] 4 | extend-exclude = ["go.mod", "go.sum", "check_branch_name.sh"] 5 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM scratch 2 | ENV PATH "$PATH:/bin" 3 | COPY tomll /bin/tomll 4 | COPY tomljson /bin/tomljson 5 | COPY jsontoml /bin/jsontoml 6 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/unstable/doc.go: -------------------------------------------------------------------------------- 1 | // Package unstable provides APIs that do not meet the backward compatibility 2 | // guarantees yet. 3 | package unstable 4 | -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/.gitignore: -------------------------------------------------------------------------------- 1 | *.exe 2 | *.dll 3 | *.so 4 | *.dylib 5 | 6 | *.test 7 | 8 | *.out 9 | *.txt 10 | 11 | vendor/ 12 | /removecomments 13 | /snake2camel -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Paul Borman 2 | bmatsuo 3 | shawnps 4 | theory 5 | jboverfelt 6 | dsymonds 7 | cd1 8 | wallclockbuilder 9 | dansouza 10 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/.gitignore: -------------------------------------------------------------------------------- 1 | test_program/test_program_bin 2 | fuzz/ 3 | cmd/tomll/tomll 4 | cmd/tomljson/tomljson 5 | cmd/tomltestgen/tomltestgen 6 | dist 7 | tests/ 8 | -------------------------------------------------------------------------------- /.air.toml: -------------------------------------------------------------------------------- 1 | [build] 2 | args_bin = [ 3 | "-p", 4 | "3000", 5 | ] 6 | bin = "./bin/server" 7 | cmd = "make build" 8 | exclude_dir = [ 9 | "bin", 10 | "tmp", 11 | ] 12 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/* 2 | !vendor/vendor.json 3 | coverage.out 4 | count.out 5 | test 6 | profile.out 7 | tmp.out 8 | 9 | # Develop tools 10 | .idea/ 11 | .vscode/ 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/arch/x86/x86asm/Makefile: -------------------------------------------------------------------------------- 1 | tables.go: ../x86map/map.go ../x86.csv 2 | go run ../x86map/map.go -fmt=decoder ../x86.csv >_tables.go && gofmt _tables.go >tables.go && rm _tables.go 3 | 4 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package gin implements a HTTP web framework called gin. 3 | 4 | See https://gin-gonic.com/ for more information about gin. 5 | */ 6 | package gin // import "github.com/gin-gonic/gin" 7 | -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/options.go: -------------------------------------------------------------------------------- 1 | package urn 2 | 3 | type Option func(Machine) 4 | 5 | func WithParsingMode(mode ParsingMode) Option { 6 | return func(m Machine) { 7 | m.WithParsingMode(mode) 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/v2/os_safe_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2021 Klaus Post, released under MIT License. See LICENSE file. 2 | 3 | //go:build nounsafe 4 | // +build nounsafe 5 | 6 | package cpuid 7 | 8 | var hwcap uint 9 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "cloudwego"] 2 | path = tools/asm2asm 3 | url = https://github.com/cloudwego/asm2asm.git 4 | [submodule "tools/simde"] 5 | path = tools/simde 6 | url = https://github.com/simd-everywhere/simde.git 7 | -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/parsing_mode.go: -------------------------------------------------------------------------------- 1 | package urn 2 | 3 | type ParsingMode int 4 | 5 | const ( 6 | Default ParsingMode = iota 7 | RFC2141Only 8 | RFC7643Only 9 | RFC8141Only 10 | ) 11 | 12 | const DefaultParsingMode = RFC2141Only 13 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/map113.go: -------------------------------------------------------------------------------- 1 | //go:build go1.13 2 | // +build go1.13 3 | 4 | package encoder 5 | 6 | import "unsafe" 7 | 8 | //go:linkname MapIterValue reflect.mapiterelem 9 | func MapIterValue(it *mapIter) unsafe.Pointer 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/map112.go: -------------------------------------------------------------------------------- 1 | //go:build !go1.13 2 | // +build !go1.13 3 | 4 | package encoder 5 | 6 | import "unsafe" 7 | 8 | //go:linkname MapIterValue reflect.mapitervalue 9 | func MapIterValue(it *mapIter) unsafe.Pointer 10 | -------------------------------------------------------------------------------- /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/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/bytedance/sonic/internal/rt/asm_compat.s: -------------------------------------------------------------------------------- 1 | // +build !noasm,!amd64 !appengine,!amd64 2 | 3 | #include "go_asm.h" 4 | #include "funcdata.h" 5 | #include "textflag.h" 6 | 7 | TEXT ·MoreStack(SB), NOSPLIT, $0 - 8 8 | NO_LOCAL_POINTERS 9 | RET 10 | -------------------------------------------------------------------------------- /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/gin-gonic/gin/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | require_ci_to_pass: true 3 | 4 | status: 5 | project: 6 | default: 7 | target: 99% 8 | threshold: 99% 9 | 10 | patch: 11 | default: 12 | target: 99% 13 | threshold: 95% -------------------------------------------------------------------------------- /pkg/tokenizer/errors.go: -------------------------------------------------------------------------------- 1 | package tokenizer 2 | 3 | import "fmt" 4 | 5 | type LanguageNotSupportedError struct { 6 | Language Language 7 | } 8 | 9 | func (e *LanguageNotSupportedError) Error() string { 10 | return fmt.Sprintf("Language '%s' is not supported", e.Language) 11 | } 12 | -------------------------------------------------------------------------------- /api/models.go: -------------------------------------------------------------------------------- 1 | package api 2 | 3 | type Document struct { 4 | Title string `json:"title" xml:"title" index:"title" binding:"required" ` 5 | Url string `json:"url" xml:"url" binding:"required"` 6 | Abstract string `json:"abstract" xml:"abstract" index:"abstract" binding:"required"` 7 | } 8 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/unstable/unmarshaler.go: -------------------------------------------------------------------------------- 1 | package unstable 2 | 3 | // The Unmarshaler interface may be implemented by types to customize their 4 | // behavior when being unmarshaled from a TOML document. 5 | type Unmarshaler interface { 6 | UnmarshalTOML(value *Node) error 7 | } 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm.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 !linux && arm 6 | 7 | package cpu 8 | 9 | func archInit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_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 | package cpu 6 | 7 | func archInit() { 8 | doinit() 9 | Initialized = true 10 | } 11 | -------------------------------------------------------------------------------- /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/gin-gonic/gin/version.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gin 6 | 7 | // Version is the current gin framework's version. 8 | const Version = "v1.10.0" 9 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_gte_go17.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.7 5 | // +build go1.7 6 | 7 | package codec 8 | 9 | const genCheckVendor = true 10 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build !go1.5 5 | // +build !go1.5 6 | 7 | package codec 8 | 9 | var genCheckVendor = false 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_arm64.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 !linux && !netbsd && !openbsd && arm64 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/swedish/preprocess.go: -------------------------------------------------------------------------------- 1 | package swedish 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Get the r1 of the word 8 | // 9 | func preprocess(word *snowballword.SnowballWord) { 10 | // Find the region R1. R2 is not used 11 | word.R1start = r1(word) 12 | } 13 | -------------------------------------------------------------------------------- /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/cloudwego/base64x/.licenserc.yaml: -------------------------------------------------------------------------------- 1 | header: 2 | license: 3 | spdx-id: Apache-2.0 4 | copyright-owner: CloudWeGo Authors 5 | 6 | paths: 7 | - '**/*.go' 8 | - '**/*.s' 9 | 10 | paths-ignore: 11 | - 'native_subr_amd64.go' 12 | - 'native_text_amd64.go' 13 | 14 | comment: on-failure 15 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/norwegian/preprocess.go: -------------------------------------------------------------------------------- 1 | package norwegian 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Get the r1 of the word 8 | // 9 | func preprocess(word *snowballword.SnowballWord) { 10 | // Find the region R1. R2 is not used 11 | word.R1start = r1(word) 12 | } 13 | -------------------------------------------------------------------------------- /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/golang.org/x/sys/cpu/cpu_riscv64.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 riscv64 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 64 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_loong64.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 loong64 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 64 10 | 11 | func initOptions() { 12 | } 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mipsx.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 mips || mipsle 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() {} 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_riscv64.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 && riscv64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/v2/os_unsafe_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2021 Klaus Post, released under MIT License. See LICENSE file. 2 | 3 | //go:build !nounsafe 4 | // +build !nounsafe 5 | 6 | package cpuid 7 | 8 | import _ "unsafe" // needed for go:linkname 9 | 10 | //go:linkname hwcap internal/cpu.HWCap 11 | var hwcap uint 12 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/english/postprocess.go: -------------------------------------------------------------------------------- 1 | package english 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Applies transformations necessary after 8 | // a word has been completely processed. 9 | // 10 | func postprocess(word *snowballword.SnowballWord) { 11 | 12 | uncapitalizeYs(word) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_other_mips64x.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 !linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | Initialized = true 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/decoder/option.go: -------------------------------------------------------------------------------- 1 | package decoder 2 | 3 | import "context" 4 | 5 | type OptionFlags uint8 6 | 7 | const ( 8 | FirstWinOption OptionFlags = 1 << iota 9 | ContextOption 10 | PathOption 11 | ) 12 | 13 | type Option struct { 14 | Flags OptionFlags 15 | Context context.Context 16 | Path *Path 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/spanish/postprocess.go: -------------------------------------------------------------------------------- 1 | package spanish 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Applies transformations necessary after 8 | // a word has been completely processed. 9 | // 10 | func postprocess(word *snowballword.SnowballWord) { 11 | 12 | removeAccuteAccents(word) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/spanish/preprocess.go: -------------------------------------------------------------------------------- 1 | package spanish 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | func preprocess(word *snowballword.SnowballWord) { 8 | r1start, r2start, rvstart := findRegions(word) 9 | word.R1start = r1start 10 | word.R2start = r2start 11 | word.RVstart = rvstart 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_gte_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.10 5 | // +build go1.10 6 | 7 | package codec 8 | 9 | const allowSetUnexportedEmbeddedPtr = false 10 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unexportedembeddedptr_lt_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build !go1.10 5 | // +build !go1.10 6 | 7 | package codec 8 | 9 | const allowSetUnexportedEmbeddedPtr = true 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_enable.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 protolegacy 6 | // +build protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = true 11 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/context_appengine.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build appengine 6 | 7 | package gin 8 | 9 | func init() { 10 | defaultPlatform = PlatformGoogleAppEngine 11 | } 12 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/flags/proto_legacy_disable.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 !protolegacy 6 | // +build !protolegacy 7 | 8 | package flags 9 | 10 | const protoLegacy = false 11 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | go-json: 4 | image: golang:1.18 5 | volumes: 6 | - '.:/go/src/go-json' 7 | deploy: 8 | resources: 9 | limits: 10 | memory: 620M 11 | working_dir: /go/src/go-json 12 | command: | 13 | sh -c "go test -c . && ls go-json.test" 14 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/russian/preprocess.go: -------------------------------------------------------------------------------- 1 | package russian 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | func preprocess(word *snowballword.SnowballWord) { 8 | 9 | r1start, r2start, rvstart := findRegions(word) 10 | word.R1start = r1start 11 | word.R2start = r2start 12 | word.RVstart = rvstart 13 | 14 | } 15 | -------------------------------------------------------------------------------- /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/golang.org/x/sys/cpu/cpu_linux_noinit.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 linux && !arm && !arm64 && !mips64 && !mips64le && !ppc64 && !ppc64le && !s390x 6 | 7 | package cpu 8 | 9 | func doinit() {} 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_arm64.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 gc 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 10 | func getisar1() uint64 11 | func getpfr0() uint64 12 | func getzfr0() uint64 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 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 10 | return ENOTSUP 11 | } 12 | -------------------------------------------------------------------------------- /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/golang.org/x/sys/cpu/cpu_other_ppc64x.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 !aix && !linux && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | PPC64.IsPOWER8 = true 11 | Initialized = true 12 | } 13 | -------------------------------------------------------------------------------- /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/golang.org/x/net/idna/pre_go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build !go1.18 8 | 9 | package idna 10 | 11 | const transitionalLookup = true 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.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 gccgo 6 | 7 | package cpu 8 | 9 | func getisar0() uint64 { return 0 } 10 | func getisar1() uint64 { return 0 } 11 | func getpfr0() uint64 { return 0 } 12 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/french/preprocess.go: -------------------------------------------------------------------------------- 1 | package french 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | func preprocess(word *snowballword.SnowballWord) { 8 | 9 | capitalizeYUI(word) 10 | 11 | r1start, r2start, rvstart := findRegions(word) 12 | word.R1start = r1start 13 | word.R2start = r2start 14 | word.RVstart = rvstart 15 | 16 | } 17 | -------------------------------------------------------------------------------- /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/ugorji/go/codec/goversion_vendor_eq_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.5 && !go1.6 5 | // +build go1.5,!go1.6 6 | 7 | package codec 8 | 9 | import "os" 10 | 11 | var genCheckVendor = os.Getenv("GO15VENDOREXPERIMENT") == "1" 12 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_vendor_eq_go16.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.6 && !go1.7 5 | // +build go1.6,!go1.7 6 | 7 | package codec 8 | 9 | import "os" 10 | 11 | var genCheckVendor = os.Getenv("GO15VENDOREXPERIMENT") != "0" 12 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //go:noescape 12 | func gettimeofday(tv *Timeval) (err syscall.Errno) 13 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/russian/step2.go: -------------------------------------------------------------------------------- 1 | package russian 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 2 is the removal of the "и" suffix. 8 | // 9 | func step2(word *snowballword.SnowballWord) bool { 10 | suffix, _ := word.RemoveFirstSuffixIn(word.RVstart, "и") 11 | if suffix != "" { 12 | return true 13 | } 14 | return false 15 | } 16 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | const isBigEndian = true 10 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 10 | return ptrace1(request, pid, addr, data) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/keccakf_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 amd64 && !purego && gc 6 | 7 | package sha3 8 | 9 | // This function is implemented in keccakf_amd64.s. 10 | 11 | //go:noescape 12 | 13 | func keccakF1600(a *[25]uint64) 14 | -------------------------------------------------------------------------------- /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/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 | 7 | package unix 8 | 9 | const ( 10 | R_OK = 0x4 11 | W_OK = 0x2 12 | X_OK = 0x1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/french/step5.go: -------------------------------------------------------------------------------- 1 | package french 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 5 Undouble non-vowel endings 8 | // 9 | func step5(word *snowballword.SnowballWord) bool { 10 | 11 | suffix, _ := word.FirstSuffix("enn", "onn", "ett", "ell", "eill") 12 | if suffix != "" { 13 | word.RemoveLastNRunes(1) 14 | } 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/twitchyliquid64/golang-asm/bio/buf_nommap.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 | // +build !darwin,!dragonfly,!freebsd,!linux,!netbsd,!openbsd 6 | 7 | package bio 8 | 9 | func (r *Reader) sliceOS(length uint64) ([]byte, bool) { 10 | return nil, false 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_fmt_time_gte_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.5 5 | // +build go1.5 6 | 7 | package codec 8 | 9 | import "time" 10 | 11 | func fmtTime(t time.Time, fmt string, b []byte) []byte { 12 | return t.AppendFormat(b, fmt) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/.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/klauspost/cpuid/v2/.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/ugorji/go/codec/0_importpath.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2018 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | package codec // import "github.com/ugorji/go/codec" 5 | 6 | // This establishes that this package must be imported as github.com/ugorji/go/codec. 7 | // It makes forking easier, and plays well with pre-module releases of go. 8 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_lt_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build !go1.10 5 | // +build !go1.10 6 | 7 | package codec 8 | 9 | import "reflect" 10 | 11 | func makeMapReflect(t reflect.Type, size int) reflect.Value { 12 | return reflect.MakeMap(t) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_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 !386 && !amd64 && !amd64p32 && !arm64 6 | 7 | package cpu 8 | 9 | func archInit() { 10 | if err := readHWCAP(); err != nil { 11 | return 12 | } 13 | doinit() 14 | Initialized = true 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_mips64x.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 mips64 || mips64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 32 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "msa", Feature: &MIPS64X.HasMSA}, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/bidirule/bidirule10.0.0.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 go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm/hack.go: -------------------------------------------------------------------------------- 1 | package vm 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_indent" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/errors/is_go113.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 go1.13 6 | // +build go1.13 7 | 8 | package errors 9 | 10 | import "errors" 11 | 12 | // Is is errors.Is. 13 | func Is(err, target error) bool { return errors.Is(err, target) } 14 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # IDE files 2 | .idea 3 | 4 | # Build folder 5 | bin 6 | 7 | # Binaries for programs and plugins 8 | *.exe 9 | *.exe~ 10 | *.dll 11 | *.so 12 | *.dylib 13 | 14 | # Test binary, built with `go test -c` 15 | *.test 16 | 17 | # Output of the go coverage tool, specifically when used with LiteIDE 18 | *.out 19 | 20 | # Coverage Files 21 | coverage/* 22 | coverage.html 23 | 24 | # Temporary folder 25 | tmp -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/english/step0.go: -------------------------------------------------------------------------------- 1 | package english 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 0 is to strip off apostrophes and "s". 8 | // 9 | func step0(w *snowballword.SnowballWord) bool { 10 | suffix, suffixRunes := w.FirstSuffix("'s'", "'s", "'") 11 | if suffix == "" { 12 | return false 13 | } 14 | w.RemoveLastNRunes(len(suffixRunes)) 15 | return true 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/shake_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 || purego || !s390x 6 | 7 | package sha3 8 | 9 | func newShake128() *state { 10 | return newShake128Generic() 11 | } 12 | 13 | func newShake256() *state { 14 | return newShake256Generic() 15 | } 16 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | const isBigEndian = false 10 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm_indent/hack.go: -------------------------------------------------------------------------------- 1 | package vm_indent 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_color" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/mmap_nomremap.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 || openbsd || solaris || zos 6 | 7 | package unix 8 | 9 | var mapper = &mmapper{ 10 | active: make(map[*byte][]byte), 11 | mmap: mmap, 12 | munmap: munmap, 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/encoder/vm_color/hack.go: -------------------------------------------------------------------------------- 1 | package vm_color 2 | 3 | import ( 4 | // HACK: compile order 5 | // `vm`, `vm_indent`, `vm_color`, `vm_color_indent` packages uses a lot of memory to compile, 6 | // so forcibly make dependencies and avoid compiling in concurrent. 7 | // dependency order: vm => vm_indent => vm_color => vm_color_indent 8 | _ "github.com/goccy/go-json/internal/encoder/vm_color_indent" 9 | ) 10 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/runtime/protoiface/legacy.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 protoiface 6 | 7 | type MessageV1 interface { 8 | Reset() 9 | String() string 10 | ProtoMessage() 11 | } 12 | 13 | type ExtensionRangeV1 struct { 14 | Start, End int32 // both inclusive 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/.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 | *.coverprofile -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/common.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | package language 4 | 5 | // This file contains code common to the maketables.go and the package code. 6 | 7 | // AliasType is the type of an alias in AliasMap. 8 | type AliasType int8 9 | 10 | const ( 11 | Deprecated AliasType = iota 12 | Macro 13 | Legacy 14 | 15 | AliasTypeUnknown AliasType = -1 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_fmt_time_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build !go1.5 5 | // +build !go1.5 6 | 7 | package codec 8 | 9 | import "time" 10 | 11 | func fmtTime(t time.Time, fmt string, b []byte) []byte { 12 | s := t.Format(fmt) 13 | b = b[:len(s)] 14 | copy(b, s) 15 | return b 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/twitchyliquid64/golang-asm/obj/go.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 | package obj 6 | 7 | // go-specific code shared across loaders (5l, 6l, 8l). 8 | 9 | func Nopout(p *Prog) { 10 | p.As = ANOP 11 | p.Scond = 0 12 | p.From = Addr{} 13 | p.RestArgs = nil 14 | p.Reg = 0 15 | p.To = Addr{} 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT libc_sysctl_trampoline<>(SB),NOSPLIT,$0-0 8 | JMP libc_sysctl(SB) 9 | 10 | GLOBL ·libc_sysctl_trampoline_addr(SB), RODATA, $8 11 | DATA ·libc_sysctl_trampoline_addr(SB)/8, $libc_sysctl_trampoline<>(SB) 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_ppc64x.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 ppc64 || ppc64le 6 | 7 | package cpu 8 | 9 | const cacheLineSize = 128 10 | 11 | func initOptions() { 12 | options = []option{ 13 | {Name: "darn", Feature: &PPC64.HasDARN}, 14 | {Name: "scv", Feature: &PPC64.HasSCV}, 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /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/golang.org/x/text/secure/bidirule/bidirule9.0.0.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 !go1.10 6 | 7 | package bidirule 8 | 9 | func (t *Transformer) isFinal() bool { 10 | if !t.isRTL() { 11 | return true 12 | } 13 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = true 11 | -------------------------------------------------------------------------------- /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 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | type Signal = syscall.Signal 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /pkg/tokenizer/stopwords.go: -------------------------------------------------------------------------------- 1 | package tokenizer 2 | 3 | import ( 4 | "github.com/micpst/minisearch/pkg/tokenizer/stopwords" 5 | ) 6 | 7 | type StopWords map[string]struct{} 8 | 9 | var stopWords = map[Language]StopWords{ 10 | ENGLISH: stopwords.English, 11 | FRENCH: stopwords.French, 12 | HUNGARIAN: stopwords.Hungarian, 13 | NORWEGIAN: stopwords.Norwegian, 14 | RUSSIAN: stopwords.Russian, 15 | SPANISH: stopwords.Spanish, 16 | SWEDISH: stopwords.Swedish, 17 | } 18 | -------------------------------------------------------------------------------- /vendor/github.com/twitchyliquid64/golang-asm/obj/abi_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type ABI"; DO NOT EDIT. 2 | 3 | package obj 4 | 5 | import "strconv" 6 | 7 | const _ABI_name = "ABI0ABIInternalABICount" 8 | 9 | var _ABI_index = [...]uint8{0, 4, 15, 23} 10 | 11 | func (i ABI) String() string { 12 | if i >= ABI(len(_ABI_index)-1) { 13 | return "ABI(" + strconv.FormatInt(int64(i), 10) + ")" 14 | } 15 | return _ABI_name[_ABI_index[i]:_ABI_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_arrayof_gte_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.5 5 | // +build go1.5 6 | 7 | package codec 8 | 9 | import "reflect" 10 | 11 | const reflectArrayOfSupported = true 12 | 13 | func reflectArrayOf(count int, elem reflect.Type) reflect.Type { 14 | return reflect.ArrayOf(count, elem) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/runtime_auxv_go121.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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.21 6 | 7 | package cpu 8 | 9 | import ( 10 | _ "unsafe" // for linkname 11 | ) 12 | 13 | //go:linkname runtime_getAuxv runtime.getAuxv 14 | func runtime_getAuxv() []uintptr 15 | 16 | func init() { 17 | getAuxvFn = runtime_getAuxv 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/v2/os_other_arm64.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2020 Klaus Post, released under MIT License. See LICENSE file. 2 | 3 | //go:build arm64 && !linux && !darwin 4 | // +build arm64,!linux,!darwin 5 | 6 | package cpuid 7 | 8 | import "runtime" 9 | 10 | func detectOS(c *CPUInfo) bool { 11 | c.PhysicalCores = runtime.NumCPU() 12 | // For now assuming 1 thread per core... 13 | c.ThreadsPerCore = 1 14 | c.LogicalCores = c.PhysicalCores 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/doc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 Google Inc. 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 uuid generates and inspects UUIDs. 6 | // 7 | // UUIDs are based on RFC 4122 and DCE 1.1: Authentication and Security 8 | // Services. 9 | // 10 | // A UUID is a 16 byte (128 bit) array. UUIDs may be used as keys to 11 | // maps or compared directly. 12 | package uuid 13 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/idna/go118.go: -------------------------------------------------------------------------------- 1 | // Code generated by running "go generate" in golang.org/x/text. DO NOT EDIT. 2 | 3 | // Copyright 2021 The Go Authors. All rights reserved. 4 | // Use of this source code is governed by a BSD-style 5 | // license that can be found in the LICENSE file. 6 | 7 | //go:build go1.18 8 | 9 | package idna 10 | 11 | // Transitional processing is disabled by default in Go 1.18. 12 | // https://golang.org/issue/47510 13 | const transitionalLookup = false 14 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | // ReadDirent reads directory entries from fd and writes them into buf. 10 | func ReadDirent(fd int, buf []byte) (n int, err error) { 11 | return Getdents(fd, buf) 12 | } 13 | -------------------------------------------------------------------------------- /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/golang.org/x/sys/cpu/runtime_auxv.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 cpu 6 | 7 | // getAuxvFn is non-nil on Go 1.21+ (via runtime_auxv_go121.go init) 8 | // on platforms that use auxv. 9 | var getAuxvFn func() []uintptr 10 | 11 | func getAuxv() []uintptr { 12 | if getAuxvFn == nil { 13 | return nil 14 | } 15 | return getAuxvFn() 16 | } 17 | -------------------------------------------------------------------------------- /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 || zos 6 | 7 | // For Unix, get the pagesize from the runtime. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getpagesize() int { 14 | return syscall.Getpagesize() 15 | } 16 | -------------------------------------------------------------------------------- /vendor/github.com/cloudwego/base64x/check_branch_name.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | current=$(git status | head -n1 | sed 's/On branch //') 4 | name=${1:-$current} 5 | if [[ ! $name =~ ^(((opt(imize)?|feat(ure)?|(bug|hot)?fix|test|refact(or)?|ci)/.+)|(main|develop)|(release-v[0-9]+\.[0-9]+)|(release/v[0-9]+\.[0-9]+\.[0-9]+(-[a-z0-9.]+(\+[a-z0-9.]+)?)?)|revert-[a-z0-9]+)$ ]]; then 6 | echo "branch name '$name' is invalid" 7 | exit 1 8 | else 9 | echo "branch name '$name' is valid" 10 | fi 11 | -------------------------------------------------------------------------------- /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) || zos 6 | 7 | package unix 8 | 9 | // SysvShmCtl performs control operations on the shared memory segment 10 | // specified by id. 11 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 12 | return shmctl(id, cmd, desc) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/quote_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __quote_entry__() uintptr 10 | 11 | var ( 12 | _subr__quote uintptr = __quote_entry__() + 32 13 | ) 14 | 15 | const ( 16 | _stack__quote = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__quote 21 | ) 22 | 23 | const ( 24 | _ = _stack__quote 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/value_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __value_entry__() uintptr 10 | 11 | var ( 12 | _subr__value uintptr = __value_entry__() + 32 13 | ) 14 | 15 | const ( 16 | _stack__value = 112 17 | ) 18 | 19 | var ( 20 | _ = _subr__value 21 | ) 22 | 23 | const ( 24 | _ = _stack__value 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/endian_little.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 || wasm 6 | 7 | package cpu 8 | 9 | // IsBigEndian records whether the GOARCH's byte order is big endian. 10 | const IsBigEndian = false 11 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/f32toa_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __f32toa_entry__() uintptr 10 | 11 | var ( 12 | _subr__f32toa uintptr = __f32toa_entry__() + 0 13 | ) 14 | 15 | const ( 16 | _stack__f32toa = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__f32toa 21 | ) 22 | 23 | const ( 24 | _ = _stack__f32toa 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/f64toa_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __f64toa_entry__() uintptr 10 | 11 | var ( 12 | _subr__f64toa uintptr = __f64toa_entry__() + 0 13 | ) 14 | 15 | const ( 16 | _stack__f64toa = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__f64toa 21 | ) 22 | 23 | const ( 24 | _ = _stack__f64toa 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/i64toa_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __i64toa_entry__() uintptr 10 | 11 | var ( 12 | _subr__i64toa uintptr = __i64toa_entry__() + 48 13 | ) 14 | 15 | const ( 16 | _stack__i64toa = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__i64toa 21 | ) 22 | 23 | const ( 24 | _ = _stack__i64toa 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/lspace_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __lspace_entry__() uintptr 10 | 11 | var ( 12 | _subr__lspace uintptr = __lspace_entry__() + 0 13 | ) 14 | 15 | const ( 16 | _stack__lspace = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__lspace 21 | ) 22 | 23 | const ( 24 | _ = _stack__lspace 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/u64toa_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __u64toa_entry__() uintptr 10 | 11 | var ( 12 | _subr__u64toa uintptr = __u64toa_entry__() + 48 13 | ) 14 | 15 | const ( 16 | _stack__u64toa = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__u64toa 21 | ) 22 | 23 | const ( 24 | _ = _stack__u64toa 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/sse/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: false 3 | go: 4 | - 1.8.x 5 | - 1.9.x 6 | - 1.10.x 7 | - 1.11.x 8 | - 1.12.x 9 | - master 10 | 11 | git: 12 | depth: 10 13 | 14 | matrix: 15 | fast_finish: true 16 | include: 17 | - go: 1.11.x 18 | env: GO111MODULE=on 19 | - go: 1.12.x 20 | env: GO111MODULE=on 21 | 22 | script: 23 | - go test -v -covermode=count -coverprofile=coverage.out 24 | 25 | after_success: 26 | - bash <(curl -s https://codecov.io/bash) 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/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 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 18 | -------------------------------------------------------------------------------- /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 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 11 | // 12 | 13 | TEXT ·syscall6(SB),NOSPLIT,$0-88 14 | JMP syscall·syscall6(SB) 15 | 16 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSyscall6(SB) 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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/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 genid contains constants for declarations in descriptor.proto 6 | // and the well-known types. 7 | package genid 8 | 9 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | const GoogleProtobuf_package protoreflect.FullName = "google.protobuf" 12 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/uri.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package binding 6 | 7 | type uriBinding struct{} 8 | 9 | func (uriBinding) Name() string { 10 | return "uri" 11 | } 12 | 13 | func (uriBinding) BindUri(m map[string][]string, obj any) error { 14 | if err := mapURI(obj, m); err != nil { 15 | return err 16 | } 17 | return validate(obj) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/unquote_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __unquote_entry__() uintptr 10 | 11 | var ( 12 | _subr__unquote uintptr = __unquote_entry__() + 32 13 | ) 14 | 15 | const ( 16 | _stack__unquote = 112 17 | ) 18 | 19 | var ( 20 | _ = _subr__unquote 21 | ) 22 | 23 | const ( 24 | _ = _stack__unquote 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/vnumber_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __vnumber_entry__() uintptr 10 | 11 | var ( 12 | _subr__vnumber uintptr = __vnumber_entry__() + 0 13 | ) 14 | 15 | const ( 16 | _stack__vnumber = 112 17 | ) 18 | 19 | var ( 20 | _ = _subr__vnumber 21 | ) 22 | 23 | const ( 24 | _ = _stack__vnumber 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/vsigned_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __vsigned_entry__() uintptr 10 | 11 | var ( 12 | _subr__vsigned uintptr = __vsigned_entry__() + 0 13 | ) 14 | 15 | const ( 16 | _stack__vsigned = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__vsigned 21 | ) 22 | 23 | const ( 24 | _ = _stack__vsigned 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/vstring_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __vstring_entry__() uintptr 10 | 11 | var ( 12 | _subr__vstring uintptr = __vstring_entry__() + 32 13 | ) 14 | 15 | const ( 16 | _stack__vstring = 48 17 | ) 18 | 19 | var ( 20 | _ = _subr__vstring 21 | ) 22 | 23 | const ( 24 | _ = _stack__vstring 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/translations.go: -------------------------------------------------------------------------------- 1 | package validator 2 | 3 | import ut "github.com/go-playground/universal-translator" 4 | 5 | // TranslationFunc is the function type used to register or override 6 | // custom translations 7 | type TranslationFunc func(ut ut.Translator, fe FieldError) string 8 | 9 | // RegisterTranslationsFunc allows for registering of translations 10 | // for a 'ut.Translator' for use within the 'TranslationFunc' 11 | type RegisterTranslationsFunc func(ut ut.Translator) error 12 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_not_unsafe_gte_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.10 && (safe || codec.safe || appengine) 5 | // +build go1.10 6 | // +build safe codec.safe appengine 7 | 8 | package codec 9 | 10 | import "reflect" 11 | 12 | func makeMapReflect(t reflect.Type, size int) reflect.Value { 13 | return reflect.MakeMapWithSize(t, size) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/skip_one_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __skip_one_entry__() uintptr 10 | 11 | var ( 12 | _subr__skip_one uintptr = __skip_one_entry__() + 48 13 | ) 14 | 15 | const ( 16 | _stack__skip_one = 112 17 | ) 18 | 19 | var ( 20 | _ = _subr__skip_one 21 | ) 22 | 23 | const ( 24 | _ = _stack__skip_one 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/Makefile: -------------------------------------------------------------------------------- 1 | GOCMD=go 2 | 3 | linters-install: 4 | @golangci-lint --version >/dev/null 2>&1 || { \ 5 | echo "installing linting tools..."; \ 6 | curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.41.1; \ 7 | } 8 | 9 | lint: linters-install 10 | golangci-lint run 11 | 12 | test: 13 | $(GOCMD) test -cover -race ./... 14 | 15 | bench: 16 | $(GOCMD) test -run=NONE -bench=. -benchmem ./... 17 | 18 | .PHONY: test lint linters-install 19 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/register.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 go1.4 6 | 7 | package sha3 8 | 9 | import ( 10 | "crypto" 11 | ) 12 | 13 | func init() { 14 | crypto.RegisterHash(crypto.SHA3_224, New224) 15 | crypto.RegisterHash(crypto.SHA3_256, New256) 16 | crypto.RegisterHash(crypto.SHA3_384, New384) 17 | crypto.RegisterHash(crypto.SHA3_512, New512) 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/vunsigned_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __vunsigned_entry__() uintptr 10 | 11 | var ( 12 | _subr__vunsigned uintptr = __vunsigned_entry__() + 0 13 | ) 14 | 15 | const ( 16 | _stack__vunsigned = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__vunsigned 21 | ) 22 | 23 | const ( 24 | _ = _stack__vunsigned 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/Makefile: -------------------------------------------------------------------------------- 1 | GOCMD=GO111MODULE=on go 2 | 3 | linters-install: 4 | @golangci-lint --version >/dev/null 2>&1 || { \ 5 | echo "installing linting tools..."; \ 6 | curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s v1.41.1; \ 7 | } 8 | 9 | lint: linters-install 10 | golangci-lint run 11 | 12 | test: 13 | $(GOCMD) test -cover -race ./... 14 | 15 | bench: 16 | $(GOCMD) test -bench=. -benchmem ./... 17 | 18 | .PHONY: test lint linters-install -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/.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 | bin 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | *.test 27 | *.out 28 | *.txt 29 | /**/*.DS_Store 30 | cover.html 31 | README.html 32 | .idea 33 | -------------------------------------------------------------------------------- /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 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 11 | // 12 | 13 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 14 | JMP syscall·sysvicall6(SB) 15 | 16 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 17 | JMP syscall·rawSysvicall6(SB) 18 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | func init() { 10 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 11 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 12 | fcntl64Syscall = SYS_FCNTL64 13 | } 14 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 10 | // values. 11 | 12 | //sys Alarm(seconds uint) (remaining uint, err error) 13 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/skip_array_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __skip_array_entry__() uintptr 10 | 11 | var ( 12 | _subr__skip_array uintptr = __skip_array_entry__() + 48 13 | ) 14 | 15 | const ( 16 | _stack__skip_array = 112 17 | ) 18 | 19 | var ( 20 | _ = _subr__skip_array 21 | ) 22 | 23 | const ( 24 | _ = _stack__skip_array 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/gin-contrib/sse/writer.go: -------------------------------------------------------------------------------- 1 | package sse 2 | 3 | import "io" 4 | 5 | type stringWriter interface { 6 | io.Writer 7 | WriteString(string) (int, error) 8 | } 9 | 10 | type stringWrapper struct { 11 | io.Writer 12 | } 13 | 14 | func (w stringWrapper) WriteString(str string) (int, error) { 15 | return w.Writer.Write([]byte(str)) 16 | } 17 | 18 | func checkWriter(writer io.Writer) stringWriter { 19 | if w, ok := writer.(stringWriter); ok { 20 | return w 21 | } else { 22 | return stringWrapper{writer} 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/types.go: -------------------------------------------------------------------------------- 1 | package toml 2 | 3 | import ( 4 | "encoding" 5 | "reflect" 6 | "time" 7 | ) 8 | 9 | var timeType = reflect.TypeOf((*time.Time)(nil)).Elem() 10 | var textMarshalerType = reflect.TypeOf((*encoding.TextMarshaler)(nil)).Elem() 11 | var textUnmarshalerType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem() 12 | var mapStringInterfaceType = reflect.TypeOf(map[string]interface{}(nil)) 13 | var sliceInterfaceType = reflect.TypeOf([]interface{}(nil)) 14 | var stringType = reflect.TypeOf("") 15 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/html_escape_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __html_escape_entry__() uintptr 10 | 11 | var ( 12 | _subr__html_escape uintptr = __html_escape_entry__() + 32 13 | ) 14 | 15 | const ( 16 | _stack__html_escape = 32 17 | ) 18 | 19 | var ( 20 | _ = _subr__html_escape 21 | ) 22 | 23 | const ( 24 | _ = _stack__html_escape 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/skip_number_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __skip_number_entry__() uintptr 10 | 11 | var ( 12 | _subr__skip_number uintptr = __skip_number_entry__() + 32 13 | ) 14 | 15 | const ( 16 | _stack__skip_number = 48 17 | ) 18 | 19 | var ( 20 | _ = _subr__skip_number 21 | ) 22 | 23 | const ( 24 | _ = _stack__skip_number 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/swedish/README.md: -------------------------------------------------------------------------------- 1 | Snowball Swedish 2 | ================ 3 | 4 | This package implements the Swedish language 5 | [Snowball stemmer](http://snowball.tartarus.org/algorithms/swedish/stemmer.html). 6 | 7 | ## Implementation 8 | 9 | The Swedish language stemmer comprises preprocessing and 3 steps. 10 | Each of these is defined in a separate file in this 11 | package. All of the steps operate on a `SnowballWord` from the 12 | `snowballword` package and *modify the word in place*. 13 | 14 | ## Caveats 15 | 16 | None -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_wasm.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 wasm 6 | 7 | package cpu 8 | 9 | // We're compiling the cpu package for an unknown (software-abstracted) CPU. 10 | // Make CacheLinePad an empty struct and hope that the usual struct alignment 11 | // rules are good enough. 12 | 13 | const cacheLineSize = 0 14 | 15 | func initOptions() {} 16 | 17 | func archInit() {} 18 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/get_by_path_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __get_by_path_entry__() uintptr 10 | 11 | var ( 12 | _subr__get_by_path uintptr = __get_by_path_entry__() + 48 13 | ) 14 | 15 | const ( 16 | _stack__get_by_path = 208 17 | ) 18 | 19 | var ( 20 | _ = _subr__get_by_path 21 | ) 22 | 23 | const ( 24 | _ = _stack__get_by_path 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/skip_object_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __skip_object_entry__() uintptr 10 | 11 | var ( 12 | _subr__skip_object uintptr = __skip_object_entry__() + 48 13 | ) 14 | 15 | const ( 16 | _stack__skip_object = 112 17 | ) 18 | 19 | var ( 20 | _ = _subr__skip_object 21 | ) 22 | 23 | const ( 24 | _ = _stack__skip_object 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/russian/step3.go: -------------------------------------------------------------------------------- 1 | package russian 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 3 is the removal of the derivational suffix. 8 | // 9 | func step3(word *snowballword.SnowballWord) bool { 10 | 11 | // Search for a DERIVATIONAL ending in R2 (i.e. the entire 12 | // ending must lie in R2), and if one is found, remove it. 13 | 14 | suffix, _ := word.RemoveFirstSuffixIn(word.R2start, "ост", "ость") 15 | if suffix != "" { 16 | return true 17 | } 18 | return false 19 | } 20 | -------------------------------------------------------------------------------- /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/golang.org/x/crypto/sha3/hashes_noasm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 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 || purego || !s390x 6 | 7 | package sha3 8 | 9 | func new224() *state { 10 | return new224Generic() 11 | } 12 | 13 | func new256() *state { 14 | return new256Generic() 15 | } 16 | 17 | func new384() *state { 18 | return new384Generic() 19 | } 20 | 21 | func new512() *state { 22 | return new512Generic() 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/validate_one_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __validate_one_entry__() uintptr 10 | 11 | var ( 12 | _subr__validate_one uintptr = __validate_one_entry__() + 48 13 | ) 14 | 15 | const ( 16 | _stack__validate_one = 112 17 | ) 18 | 19 | var ( 20 | _ = _subr__validate_one 21 | ) 22 | 23 | const ( 24 | _ = _stack__validate_one 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/gabriel-vasile/mimetype/internal/magic/database.go: -------------------------------------------------------------------------------- 1 | package magic 2 | 3 | var ( 4 | // Sqlite matches an SQLite database file. 5 | Sqlite = prefix([]byte{ 6 | 0x53, 0x51, 0x4c, 0x69, 0x74, 0x65, 0x20, 0x66, 7 | 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x20, 0x33, 0x00, 8 | }) 9 | // MsAccessAce matches Microsoft Access dababase file. 10 | MsAccessAce = offset([]byte("Standard ACE DB"), 4) 11 | // MsAccessMdb matches legacy Microsoft Access database file (JET, 2003 and earlier). 12 | MsAccessMdb = offset([]byte("Standard Jet DB"), 4) 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/wrappers.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 genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field name and number for messages in wrappers.proto. 10 | const ( 11 | WrapperValue_Value_field_name protoreflect.Name = "value" 12 | WrapperValue_Value_field_number protoreflect.FieldNumber = 1 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/skip_one_fast_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __skip_one_fast_entry__() uintptr 10 | 11 | var ( 12 | _subr__skip_one_fast uintptr = __skip_one_fast_entry__() + 32 13 | ) 14 | 15 | const ( 16 | _stack__skip_one_fast = 192 17 | ) 18 | 19 | var ( 20 | _ = _subr__skip_one_fast 21 | ) 22 | 23 | const ( 24 | _ = _stack__skip_one_fast 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/validate_utf8_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __validate_utf8_entry__() uintptr 10 | 11 | var ( 12 | _subr__validate_utf8 uintptr = __validate_utf8_entry__() + 0 13 | ) 14 | 15 | const ( 16 | _stack__validate_utf8 = 64 17 | ) 18 | 19 | var ( 20 | _ = _subr__validate_utf8 21 | ) 22 | 23 | const ( 24 | _ = _stack__validate_utf8 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/v2/test-architectures.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | set -e 4 | 5 | go tool dist list | while IFS=/ read os arch; do 6 | echo "Checking $os/$arch..." 7 | echo " normal" 8 | GOARCH=$arch GOOS=$os go build -o /dev/null . 9 | echo " noasm" 10 | GOARCH=$arch GOOS=$os go build -tags noasm -o /dev/null . 11 | echo " appengine" 12 | GOARCH=$arch GOOS=$os go build -tags appengine -o /dev/null . 13 | echo " noasm,appengine" 14 | GOARCH=$arch GOOS=$os go build -tags 'appengine noasm' -o /dev/null . 15 | done 16 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/norwegian/README.md: -------------------------------------------------------------------------------- 1 | Snowball Norwegian 2 | ================ 3 | 4 | This package implements the Norwegian language 5 | [Snowball stemmer](http://snowball.tartarus.org/algorithms/norwegian/stemmer.html). 6 | 7 | ## Implementation 8 | 9 | The Norwegian language stemmer comprises preprocessing and 3 steps. 10 | Each of these is defined in a separate file in this 11 | package. All of the steps operate on a `SnowballWord` from the 12 | `snowballword` package and *modify the word in place*. 13 | 14 | ## Caveats 15 | 16 | None 17 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/validator/v10/MAINTAINERS.md: -------------------------------------------------------------------------------- 1 | ## Maintainers Guide 2 | 3 | ### Semantic Versioning 4 | Semantic versioning as defined [here](https://semver.org) must be strictly adhered to. 5 | 6 | ### External Dependencies 7 | Any new external dependencies MUST: 8 | - Have a compatible LICENSE present. 9 | - Be actively maintained. 10 | - Be approved by @go-playground/admins 11 | 12 | ### PR Merge Requirements 13 | - Up-to-date branch. 14 | - Passing tests and linting. 15 | - CODEOWNERS approval. 16 | - Tests that cover both the Happy and Unhappy paths. -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/french/postprocess.go: -------------------------------------------------------------------------------- 1 | package french 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | func postprocess(word *snowballword.SnowballWord) { 8 | 9 | // Turn "I", "U", and "Y" into "i", "u", and "y". 10 | // Equivalently, unicode code points 11 | // 73 85 89 -> 105 117 121 12 | 13 | for i := 0; i < len(word.RS); i++ { 14 | switch word.RS[i] { 15 | case 73: 16 | word.RS[i] = 105 17 | case 85: 18 | word.RS[i] = 117 19 | case 89: 20 | word.RS[i] = 121 21 | } 22 | } 23 | 24 | } 25 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | //extern gettimeofday 12 | func realGettimeofday(*Timeval, *byte) int32 13 | 14 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 15 | r := realGettimeofday(tv, nil) 16 | if r < 0 { 17 | return syscall.GetErrno() 18 | } 19 | return 0 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/spanish/README.md: -------------------------------------------------------------------------------- 1 | Snowball Spanish 2 | ================ 3 | 4 | This package implements the 5 | [Spanish language Snowball stemmer](http://snowball.tartarus.org/algorithms/spanish/stemmer.html). 6 | 7 | ## Implementation 8 | 9 | The Spanish language stemmer comprises preprocessing, a number of steps, 10 | and postprocessing. Each of these is defined in a separate file in this 11 | package. All of the steps operate on a `SnowballWord` from the 12 | `snowballword` package and *modify the word in place*. 13 | 14 | ## Caveats 15 | 16 | None yet. -------------------------------------------------------------------------------- /vendor/github.com/cloudwego/base64x/.gitignore: -------------------------------------------------------------------------------- 1 | # Binaries for programs and plugins 2 | *.exe 3 | *.exe~ 4 | *.dll 5 | *.so 6 | *.dylib 7 | 8 | # Test binary, built with `go test -c` 9 | *.test 10 | 11 | # Output of the go coverage tool, specifically when used with LiteIDE 12 | *.out 13 | 14 | # Dependency directories (remove the comment below to include it) 15 | # vendor/ 16 | 17 | # the result of the go build 18 | output* 19 | output/* 20 | 21 | # Files generated by IDEs 22 | .idea/ 23 | *.iml 24 | 25 | # Vim swap files 26 | *.swp 27 | 28 | # Vscode files 29 | .vscode 30 | 31 | -------------------------------------------------------------------------------- /vendor/github.com/google/uuid/node_js.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Google Inc. 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 | // +build js 6 | 7 | package uuid 8 | 9 | // getHardwareInterface returns nil values for the JS version of the code. 10 | // This removes the "net" dependency, because it is not used in the browser. 11 | // Using the "net" library inflates the size of the transpiled JS code by 673k bytes. 12 | func getHardwareInterface(name string) (string, []byte) { return "", nil } 13 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/norwegian/step2.go: -------------------------------------------------------------------------------- 1 | package norwegian 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 2: Search for one of the following suffixes in R1, 8 | // and if found delete the last letter. 9 | // 10 | func step2(w *snowballword.SnowballWord) bool { 11 | 12 | suffix, suffixRunes := w.FirstSuffix( 13 | "dt", "vt", 14 | ) 15 | 16 | // If it is not in R1, do nothing 17 | if suffix == "" || len(suffixRunes) > len(w.RS)-w.R1start { 18 | return false 19 | } 20 | w.RemoveLastNRunes(1) 21 | return true 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/neon/validate_utf8_fast_subr_arm64.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package neon 5 | 6 | //go:nosplit 7 | //go:noescape 8 | //goland:noinspection ALL 9 | func __validate_utf8_fast_entry__() uintptr 10 | 11 | var ( 12 | _subr__validate_utf8_fast uintptr = __validate_utf8_fast_entry__() + 0 13 | ) 14 | 15 | const ( 16 | _stack__validate_utf8_fast = 48 17 | ) 18 | 19 | var ( 20 | _ = _subr__validate_utf8_fast 21 | ) 22 | 23 | const ( 24 | _ = _stack__validate_utf8_fast 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/query.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package binding 6 | 7 | import "net/http" 8 | 9 | type queryBinding struct{} 10 | 11 | func (queryBinding) Name() string { 12 | return "query" 13 | } 14 | 15 | func (queryBinding) Bind(req *http.Request, obj any) error { 16 | values := req.URL.Query() 17 | if err := mapForm(obj, values); err != nil { 18 | return err 19 | } 20 | return validate(obj) 21 | } 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_x86.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 (386 || amd64 || amd64p32) && gc 6 | 7 | package cpu 8 | 9 | // cpuid is implemented in cpu_x86.s for gc compiler 10 | // and in cpu_gccgo.c for gccgo. 11 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 12 | 13 | // xgetbv with ecx = 0 is implemented in cpu_x86.s for gc compiler 14 | // and in cpu_gccgo.c for gccgo. 15 | func xgetbv() (eax, edx uint32) 16 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 10 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 11 | 12 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 13 | // fail. 14 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 15 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_arrayof_lt_go15.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build !go1.5 5 | // +build !go1.5 6 | 7 | package codec 8 | 9 | import ( 10 | "errors" 11 | "reflect" 12 | ) 13 | 14 | const reflectArrayOfSupported = false 15 | 16 | var errNoReflectArrayOf = errors.New("codec: reflect.ArrayOf unsupported by this go version") 17 | 18 | func reflectArrayOf(count int, elem reflect.Type) reflect.Type { 19 | panic(errNoReflectArrayOf) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/swedish/step2.go: -------------------------------------------------------------------------------- 1 | package swedish 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 2: Search for one of the following suffixes in R1, 8 | // and if found delete the last letter. 9 | // 10 | func step2(w *snowballword.SnowballWord) bool { 11 | 12 | suffix, suffixRunes := w.FirstSuffix( 13 | "dd", "gd", "nn", "dt", "gt", "kt", "tt", 14 | ) 15 | 16 | // If it is not in R1, do nothing 17 | if suffix == "" || len(suffixRunes) > len(w.RS)-w.R1start { 18 | return false 19 | } 20 | w.RemoveLastNRunes(1) 21 | return true 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_growslice_unsafe_lt_go120.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.9 && !go1.20 && !safe && !codec.safe && !appengine 5 | // +build go1.9,!go1.20,!safe,!codec.safe,!appengine 6 | 7 | package codec 8 | 9 | import ( 10 | _ "runtime" // needed for go linkname(s) 11 | "unsafe" 12 | ) 13 | 14 | //go:linkname growslice runtime.growslice 15 | //go:noescape 16 | func growslice(typ unsafe.Pointer, old unsafeSlice, num int) unsafeSlice 17 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/hungarian/README.md: -------------------------------------------------------------------------------- 1 | Snowball Hungarian 2 | ================ 3 | 4 | This package implements the 5 | [Hungarian language Snowball stemmer](https://snowballstem.org/algorithms/hungarian/stemmer.html) 6 | algorithm by [atordai@science.uval.nl](Anna Tordai). 7 | 8 | ## Implementation 9 | 10 | The Hungarian language stemmer comprises preprocessing, a number of steps, 11 | and postprocessing. Each of these is defined in a separate file in this 12 | package. All of the steps operate on a `SnowballWord` from the 13 | `snowballword` package and *modify the word in place*. 14 | 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd_386.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 386 && hurd 6 | 7 | package unix 8 | 9 | const ( 10 | TIOCGETA = 0x62251713 11 | ) 12 | 13 | type Winsize struct { 14 | Row uint16 15 | Col uint16 16 | Xpixel uint16 17 | Ypixel uint16 18 | } 19 | 20 | type Termios struct { 21 | Iflag uint32 22 | Oflag uint32 23 | Cflag uint32 24 | Lflag uint32 25 | Cc [20]uint8 26 | Ispeed int32 27 | Ospeed int32 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/codecgen.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build codecgen || generated 5 | // +build codecgen generated 6 | 7 | package codec 8 | 9 | // this file sets the codecgen variable to true 10 | // when the build tag codecgen is set. 11 | // 12 | // some tests depend on knowing whether in the context of codecgen or not. 13 | // For example, some tests should be skipped during codecgen e.g. missing fields tests. 14 | 15 | func init() { 16 | codecgen = true 17 | } 18 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_mips64x.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 linux && (mips64 || mips64le) 6 | 7 | package cpu 8 | 9 | // HWCAP bits. These are exposed by the Linux kernel 5.4. 10 | const ( 11 | // CPU features 12 | hwcap_MIPS_MSA = 1 << 1 13 | ) 14 | 15 | func doinit() { 16 | // HWCAP feature bits 17 | MIPS64X.HasMSA = isSet(hwCap, hwcap_MIPS_MSA) 18 | } 19 | 20 | func isSet(hwc uint, value uint) bool { 21 | return hwc&value != 0 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/scim/schema/type.go: -------------------------------------------------------------------------------- 1 | package scimschema 2 | 3 | type Type int 4 | 5 | const ( 6 | Unsupported Type = iota 7 | Schemas 8 | API 9 | Param 10 | ) 11 | 12 | func (t Type) String() string { 13 | switch t { 14 | case Schemas: 15 | return "schemas" 16 | case API: 17 | return "api" 18 | case Param: 19 | return "param" 20 | } 21 | 22 | return "" 23 | } 24 | 25 | func TypeFromString(input string) Type { 26 | switch input { 27 | case "schemas": 28 | return Schemas 29 | case "api": 30 | return API 31 | case "param": 32 | return Param 33 | } 34 | 35 | return Unsupported 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/v2/detect_ref.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2015 Klaus Post, released under MIT License. See LICENSE file. 2 | 3 | //go:build (!amd64 && !386 && !arm64) || gccgo || noasm || appengine 4 | // +build !amd64,!386,!arm64 gccgo noasm appengine 5 | 6 | package cpuid 7 | 8 | func initCPU() { 9 | cpuid = func(uint32) (a, b, c, d uint32) { return 0, 0, 0, 0 } 10 | cpuidex = func(x, y uint32) (a, b, c, d uint32) { return 0, 0, 0, 0 } 11 | xgetbv = func(uint32) (a, b uint32) { return 0, 0 } 12 | rdtscpAsm = func() (a, b, c, d uint32) { return 0, 0, 0, 0 } 13 | } 14 | 15 | func addInfo(info *CPUInfo, safe bool) {} 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/timer.go: -------------------------------------------------------------------------------- 1 | // Copyright 2024 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 | package http2 5 | 6 | import "time" 7 | 8 | // A timer is a time.Timer, as an interface which can be replaced in tests. 9 | type timer = interface { 10 | C() <-chan time.Time 11 | Reset(d time.Duration) bool 12 | Stop() bool 13 | } 14 | 15 | // timeTimer adapts a time.Timer to the timer interface. 16 | type timeTimer struct { 17 | *time.Timer 18 | } 19 | 20 | func (t timeTimer) C() <-chan time.Time { return t.Timer.C } 21 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v3/NOTICE: -------------------------------------------------------------------------------- 1 | Copyright 2011-2016 Canonical Ltd. 2 | 3 | Licensed under the Apache License, Version 2.0 (the "License"); 4 | you may not use this file except in compliance with the License. 5 | You may obtain a copy of the License at 6 | 7 | http://www.apache.org/licenses/LICENSE-2.0 8 | 9 | Unless required by applicable law or agreed to in writing, software 10 | distributed under the License is distributed on an "AS IS" BASIS, 11 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | See the License for the specific language governing permissions and 13 | limitations under the License. 14 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | //go:build (appengine || js || nacl || tinygo || wasm) && !windows 2 | // +build appengine js nacl tinygo wasm 3 | // +build !windows 4 | 5 | package isatty 6 | 7 | // IsTerminal returns true if the file descriptor is terminal which 8 | // is always false on js and appengine classic which is a sandboxed PaaS. 9 | func IsTerminal(fd uintptr) bool { 10 | return false 11 | } 12 | 13 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 14 | // terminal. This is also always false on this environment. 15 | func IsCygwinTerminal(fd uintptr) bool { 16 | return false 17 | } 18 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import "runtime" 10 | 11 | // SysvShmCtl performs control operations on the shared memory segment 12 | // specified by id. 13 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 14 | if runtime.GOARCH == "arm" || 15 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 16 | cmd |= ipc_64 17 | } 18 | 19 | return shmctl(id, cmd, desc) 20 | } 21 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_reflect.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 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build protoreflect 7 | // +build protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = false 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return nil 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/locales/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.13.1 4 | - tip 5 | matrix: 6 | allow_failures: 7 | - go: tip 8 | 9 | notifications: 10 | email: 11 | recipients: dean.karn@gmail.com 12 | on_success: change 13 | on_failure: always 14 | 15 | before_install: 16 | - go install github.com/mattn/goveralls 17 | 18 | # Only clone the most recent commit. 19 | git: 20 | depth: 1 21 | 22 | script: 23 | - go test -v -race -covermode=atomic -coverprofile=coverage.coverprofile ./... 24 | 25 | after_success: | 26 | goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/.codecov.yml: -------------------------------------------------------------------------------- 1 | codecov: 2 | require_ci_to_pass: yes 3 | 4 | coverage: 5 | precision: 2 6 | round: down 7 | range: "70...100" 8 | 9 | status: 10 | project: 11 | default: 12 | target: 70% 13 | threshold: 2% 14 | patch: off 15 | changes: no 16 | 17 | parsers: 18 | gcov: 19 | branch_detection: 20 | conditional: yes 21 | loop: yes 22 | method: no 23 | macro: no 24 | 25 | comment: 26 | layout: "header,diff" 27 | behavior: default 28 | require_changes: no 29 | 30 | ignore: 31 | - internal/encoder/vm_color 32 | - internal/encoder/vm_color_indent 33 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/french/step3.go: -------------------------------------------------------------------------------- 1 | package french 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 3 is the cleaning up of "Y" and "ç" suffixes. 8 | // 9 | func step3(word *snowballword.SnowballWord) bool { 10 | 11 | // Replace final Y with i or final ç with c 12 | if idx := len(word.RS) - 1; idx >= 0 { 13 | 14 | switch word.RS[idx] { 15 | 16 | case 89: 17 | // Replace Y (89) with "i" (105) 18 | word.RS[idx] = 105 19 | return true 20 | 21 | case 231: 22 | // Replace ç (231) with "c" (99) 23 | word.RS[idx] = 99 24 | return true 25 | } 26 | } 27 | return false 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_plan9.go: -------------------------------------------------------------------------------- 1 | //go:build plan9 2 | // +build plan9 3 | 4 | package isatty 5 | 6 | import ( 7 | "syscall" 8 | ) 9 | 10 | // IsTerminal returns true if the given file descriptor is a terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | path, err := syscall.Fd2path(int(fd)) 13 | if err != nil { 14 | return false 15 | } 16 | return path == "/dev/cons" || path == "/mnt/term/dev/cons" 17 | } 18 | 19 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 20 | // terminal. This is also always false on this environment. 21 | func IsCygwinTerminal(fd uintptr) bool { 22 | return false 23 | } 24 | -------------------------------------------------------------------------------- /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/github.com/pelletier/go-toml/v2/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | | Version | Supported | 6 | | ---------- | ------------------ | 7 | | Latest 2.x | :white_check_mark: | 8 | | All 1.x | :x: | 9 | | All 0.x | :x: | 10 | 11 | ## Reporting a Vulnerability 12 | 13 | Email a vulnerability report to `security@pelletier.codes`. Make sure to include 14 | as many details as possible to reproduce the vulnerability. This is a 15 | side-project: I will try to get back to you as quickly as possible, time 16 | permitting in my personal life. Providing a working patch helps very much! 17 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/proto/proto_methods.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 | // The protoreflect build tag disables use of fast-path methods. 6 | //go:build !protoreflect 7 | // +build !protoreflect 8 | 9 | package proto 10 | 11 | import ( 12 | "google.golang.org/protobuf/reflect/protoreflect" 13 | "google.golang.org/protobuf/runtime/protoiface" 14 | ) 15 | 16 | const hasProtoMethods = true 17 | 18 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 19 | return m.ProtoMethods() 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/gabriel-vasile/mimetype/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contribute 2 | Contributions to **mimetype** are welcome. If you find an issue and you consider 3 | contributing, you can use the [Github issues tracker](https://github.com/gabriel-vasile/mimetype/issues) 4 | in order to report it, or better yet, open a pull request. 5 | 6 | Code contributions must respect these rules: 7 | - code must be test covered 8 | - code must be formatted using gofmt tool 9 | - exported names must be documented 10 | 11 | **Important**: By submitting a pull request, you agree to allow the project 12 | owner to license your work under the same license as that used by the project. 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | //go:build (linux || aix || zos) && !appengine && !tinygo 2 | // +build linux aix zos 3 | // +build !appengine 4 | // +build !tinygo 5 | 6 | package isatty 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | // IsTerminal return true if the file descriptor is terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 13 | return err == nil 14 | } 15 | 16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 17 | // terminal. This is also always false on this environment. 18 | func IsCygwinTerminal(fd uintptr) bool { 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /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/google.golang.org/protobuf/internal/genid/map_entry.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 genid 6 | 7 | import protoreflect "google.golang.org/protobuf/reflect/protoreflect" 8 | 9 | // Generic field names and numbers for synthetic map entry messages. 10 | const ( 11 | MapEntry_Key_field_name protoreflect.Name = "key" 12 | MapEntry_Value_field_name protoreflect.Name = "value" 13 | 14 | MapEntry_Key_field_number protoreflect.FieldNumber = 1 15 | MapEntry_Value_field_number protoreflect.FieldNumber = 2 16 | ) 17 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/russian/stem.go: -------------------------------------------------------------------------------- 1 | package russian 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | "strings" 6 | ) 7 | 8 | // Stem an Russian word. This is the only exported 9 | // function in this package. 10 | // 11 | func Stem(word string, stemStopwWords bool) string { 12 | 13 | word = strings.ToLower(strings.TrimSpace(word)) 14 | w := snowballword.New(word) 15 | 16 | // Return small words and stop words 17 | if len(w.RS) <= 2 || (stemStopwWords == false && IsStopWord(word)) { 18 | return word 19 | } 20 | 21 | preprocess(w) 22 | step1(w) 23 | step2(w) 24 | step3(w) 25 | step4(w) 26 | return w.String() 27 | 28 | } 29 | -------------------------------------------------------------------------------- /pkg/store/errors.go: -------------------------------------------------------------------------------- 1 | package store 2 | 3 | import "fmt" 4 | 5 | type DocumentNotFoundError struct { 6 | Id string 7 | } 8 | 9 | type DocumentAlreadyExistsError struct { 10 | Id string 11 | } 12 | 13 | type WrongSearchPropertyType struct { 14 | Property string 15 | } 16 | 17 | func (e *DocumentNotFoundError) Error() string { 18 | return fmt.Sprintf("Document with id '%s' not found", e.Id) 19 | } 20 | 21 | func (e *DocumentAlreadyExistsError) Error() string { 22 | return fmt.Sprintf("Document with id '%s' already exists", e.Id) 23 | } 24 | 25 | func (e *WrongSearchPropertyType) Error() string { 26 | return fmt.Sprintf("Property '%s' is not searchable", e.Property) 27 | } 28 | -------------------------------------------------------------------------------- /cmd/server/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "flag" 5 | "log" 6 | 7 | "github.com/micpst/minisearch/api" 8 | "github.com/micpst/minisearch/pkg/tokenizer" 9 | ) 10 | 11 | func main() { 12 | lang := flag.String("l", string(tokenizer.ENGLISH), "Default language for the search engine") 13 | port := flag.Uint("p", 3000, "Port for the server to listen on") 14 | uploadLimit := flag.Int64("m", 8<<27, "Memory limit for file uploads (in bytes)") 15 | flag.Parse() 16 | 17 | s := api.New(&api.Config{ 18 | DefaultLanguage: tokenizer.Language(*lang), 19 | Port: *port, 20 | UploadLimit: *uploadLimit, 21 | }) 22 | err := s.Run() 23 | log.Fatal(err) 24 | } 25 | -------------------------------------------------------------------------------- /pkg/tokenizer/stems.go: -------------------------------------------------------------------------------- 1 | package tokenizer 2 | 3 | import ( 4 | "github.com/kljensen/snowball/english" 5 | "github.com/kljensen/snowball/french" 6 | "github.com/kljensen/snowball/hungarian" 7 | "github.com/kljensen/snowball/norwegian" 8 | "github.com/kljensen/snowball/russian" 9 | "github.com/kljensen/snowball/spanish" 10 | "github.com/kljensen/snowball/swedish" 11 | ) 12 | 13 | type Stem func(string, bool) string 14 | 15 | var stems = map[Language]Stem{ 16 | ENGLISH: english.Stem, 17 | FRENCH: french.Stem, 18 | HUNGARIAN: hungarian.Stem, 19 | NORWEGIAN: norwegian.Stem, 20 | RUSSIAN: russian.Stem, 21 | SPANISH: spanish.Stem, 22 | SWEDISH: swedish.Stem, 23 | } 24 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/empty_gen.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 | // Code generated by generate-protos. DO NOT EDIT. 6 | 7 | package genid 8 | 9 | import ( 10 | protoreflect "google.golang.org/protobuf/reflect/protoreflect" 11 | ) 12 | 13 | const File_google_protobuf_empty_proto = "google/protobuf/empty.proto" 14 | 15 | // Names for google.protobuf.Empty. 16 | const ( 17 | Empty_message_name protoreflect.Name = "Empty" 18 | Empty_message_fullname protoreflect.FullName = "google.protobuf.Empty" 19 | ) 20 | -------------------------------------------------------------------------------- /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/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 | 7 | package unix 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | const raceenabled = false 14 | 15 | func raceAcquire(addr unsafe.Pointer) { 16 | } 17 | 18 | func raceReleaseMerge(addr unsafe.Pointer) { 19 | } 20 | 21 | func raceReadRange(addr unsafe.Pointer, len int) { 22 | } 23 | 24 | func raceWriteRange(addr unsafe.Pointer, len int) { 25 | } 26 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | // Underlying system call writes to newoffset via pointer. 12 | // Implemented in assembly to avoid allocation. 13 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 14 | 15 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 16 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | -------------------------------------------------------------------------------- /vendor/github.com/leodido/go-urn/urn8141.go: -------------------------------------------------------------------------------- 1 | package urn 2 | 3 | import ( 4 | "encoding/json" 5 | "fmt" 6 | ) 7 | 8 | const errInvalidURN8141 = "invalid URN per RFC 8141: %s" 9 | 10 | type URN8141 struct { 11 | *URN 12 | } 13 | 14 | func (u URN8141) MarshalJSON() ([]byte, error) { 15 | return json.Marshal(u.String()) 16 | } 17 | 18 | func (u *URN8141) UnmarshalJSON(bytes []byte) error { 19 | var str string 20 | if err := json.Unmarshal(bytes, &str); err != nil { 21 | return err 22 | } 23 | if value, ok := Parse([]byte(str), WithParsingMode(RFC8141Only)); !ok { 24 | return fmt.Errorf(errInvalidURN8141, str) 25 | } else { 26 | *u = URN8141{value} 27 | } 28 | 29 | return nil 30 | } 31 | -------------------------------------------------------------------------------- /vendor/github.com/twitchyliquid64/golang-asm/obj/addrtype_string.go: -------------------------------------------------------------------------------- 1 | // Code generated by "stringer -type AddrType"; DO NOT EDIT. 2 | 3 | package obj 4 | 5 | import "strconv" 6 | 7 | const _AddrType_name = "TYPE_NONETYPE_BRANCHTYPE_TEXTSIZETYPE_MEMTYPE_CONSTTYPE_FCONSTTYPE_SCONSTTYPE_REGTYPE_ADDRTYPE_SHIFTTYPE_REGREGTYPE_REGREG2TYPE_INDIRTYPE_REGLIST" 8 | 9 | var _AddrType_index = [...]uint8{0, 9, 20, 33, 41, 51, 62, 73, 81, 90, 100, 111, 123, 133, 145} 10 | 11 | func (i AddrType) String() string { 12 | if i >= AddrType(len(_AddrType_index)-1) { 13 | return "AddrType(" + strconv.FormatInt(int64(i), 10) + ")" 14 | } 15 | return _AddrType_name[_AddrType_index[i]:_AddrType_index[i+1]] 16 | } 17 | -------------------------------------------------------------------------------- /vendor/github.com/cloudwego/iasm/x86_64/asm.s: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright 2024 CloudWeGo Authors 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | -------------------------------------------------------------------------------- /vendor/github.com/go-playground/universal-translator/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.13.4 4 | - tip 5 | matrix: 6 | allow_failures: 7 | - go: tip 8 | 9 | notifications: 10 | email: 11 | recipients: dean.karn@gmail.com 12 | on_success: change 13 | on_failure: always 14 | 15 | before_install: 16 | - go install github.com/mattn/goveralls 17 | 18 | # Only clone the most recent commit. 19 | git: 20 | depth: 1 21 | 22 | script: 23 | - go test -v -race -covermode=atomic -coverprofile=coverage.coverprofile ./... 24 | 25 | after_success: | 26 | [ $TRAVIS_GO_VERSION = 1.13.4 ] && 27 | goveralls -coverprofile=coverage.coverprofile -service travis-ci -repotoken $COVERALLS_TOKEN -------------------------------------------------------------------------------- /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/ugorji/go/codec/helper_not_unsafe_not_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build !go1.9 || safe || codec.safe || appengine || !gc 5 | // +build !go1.9 safe codec.safe appengine !gc 6 | 7 | package codec 8 | 9 | // import "reflect" 10 | 11 | // This files contains safe versions of the code where the unsafe versions are not supported 12 | // in either gccgo or gollvm. 13 | // 14 | // - rvType: 15 | // reflect.toType is not supported in gccgo, gollvm. 16 | 17 | // func rvType(rv reflect.Value) reflect.Type { 18 | // return rv.Type() 19 | // } 20 | 21 | var _ = 0 22 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing 2 | 3 | - With issues: 4 | - Use the search tool before opening a new issue. 5 | - Please provide source code and commit sha if you found a bug. 6 | - Review existing issues and provide feedback or react to them. 7 | 8 | - With pull requests: 9 | - Open your pull request against `master` 10 | - Your pull request should have no more than two commits, if not you should squash them. 11 | - It should pass all tests in the available continuous integration systems such as GitHub Actions. 12 | - You should add/modify tests to cover your proposed code changes. 13 | - If your pull request contains a new feature, please document it on the README. 14 | -------------------------------------------------------------------------------- /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/kljensen/snowball/english/preprocess.go: -------------------------------------------------------------------------------- 1 | package english 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Applies various transformations necessary for the 8 | // other, subsequent stemming steps. Most important 9 | // of which is defining the two regions R1 & R2. 10 | // 11 | func preprocess(word *snowballword.SnowballWord) { 12 | 13 | // Clean up apostrophes 14 | normalizeApostrophes(word) 15 | trimLeftApostrophes(word) 16 | 17 | // Capitalize Y's that are not behaving 18 | // as vowels. 19 | capitalizeYs(word) 20 | 21 | // Find the two regions, R1 & R2 22 | r1start, r2start := r1r2(word) 23 | word.R1start = r1start 24 | word.R2start = r2start 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_solaris.go: -------------------------------------------------------------------------------- 1 | //go:build solaris && !appengine 2 | // +build solaris,!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/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 | 7 | package unix 8 | 9 | import ( 10 | "syscall" 11 | "unsafe" 12 | ) 13 | 14 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 15 | var newoffset int64 16 | offsetLow := uint32(offset & 0xffffffff) 17 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 18 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 19 | return newoffset, err 20 | } 21 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build (darwin || freebsd || openbsd || netbsd || dragonfly || hurd) && !appengine && !tinygo 2 | // +build darwin freebsd openbsd netbsd dragonfly hurd 3 | // +build !appengine 4 | // +build !tinygo 5 | 6 | package isatty 7 | 8 | import "golang.org/x/sys/unix" 9 | 10 | // IsTerminal return true if the file descriptor is terminal. 11 | func IsTerminal(fd uintptr) bool { 12 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 13 | return err == nil 14 | } 15 | 16 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 17 | // terminal. This is also always false on this environment. 18 | func IsCygwinTerminal(fd uintptr) bool { 19 | return false 20 | } 21 | -------------------------------------------------------------------------------- /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 && !ppc64 && !ppc64le) || netbsd || openbsd || solaris) && gc 6 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 12 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 13 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 14 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /vendor/github.com/twitchyliquid64/golang-asm/obj/s390x/anamesz.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 | package s390x 6 | 7 | var cnamesz = []string{ 8 | "NONE", 9 | "REG", 10 | "FREG", 11 | "VREG", 12 | "AREG", 13 | "ZCON", 14 | "SCON", 15 | "UCON", 16 | "ADDCON", 17 | "ANDCON", 18 | "LCON", 19 | "DCON", 20 | "SACON", 21 | "LACON", 22 | "DACON", 23 | "SBRA", 24 | "LBRA", 25 | "SAUTO", 26 | "LAUTO", 27 | "ZOREG", 28 | "SOREG", 29 | "LOREG", 30 | "TLS_LE", 31 | "TLS_IE", 32 | "GOK", 33 | "ADDR", 34 | "SYMADDR", 35 | "GOTADDR", 36 | "TEXTSIZE", 37 | "ANY", 38 | "NCLASS", 39 | } 40 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_x86.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 (386 || amd64 || amd64p32) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) 10 | TEXT ·cpuid(SB), NOSPLIT, $0-24 11 | MOVL eaxArg+0(FP), AX 12 | MOVL ecxArg+4(FP), CX 13 | CPUID 14 | MOVL AX, eax+8(FP) 15 | MOVL BX, ebx+12(FP) 16 | MOVL CX, ecx+16(FP) 17 | MOVL DX, edx+20(FP) 18 | RET 19 | 20 | // func xgetbv() (eax, edx uint32) 21 | TEXT ·xgetbv(SB),NOSPLIT,$0-8 22 | MOVL $0, CX 23 | XGETBV 24 | MOVL AX, eax+0(FP) 25 | MOVL DX, edx+4(FP) 26 | RET 27 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/english/step1c.go: -------------------------------------------------------------------------------- 1 | package english 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 1c is the normalization of various "y" endings. 8 | // 9 | func step1c(w *snowballword.SnowballWord) bool { 10 | 11 | rsLen := len(w.RS) 12 | 13 | // Replace suffix y or Y by i if preceded by a non-vowel which is not 14 | // the first letter of the word (so cry -> cri, by -> by, say -> say) 15 | // 16 | // Note: the unicode code points for 17 | // y, Y, & i are 121, 89, & 105 respectively. 18 | // 19 | if len(w.RS) > 2 && (w.RS[rsLen-1] == 121 || w.RS[rsLen-1] == 89) && !isLowerVowel(w.RS[rsLen-2]) { 20 | w.RS[rsLen-1] = 105 21 | return true 22 | } 23 | return false 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/english/README.md: -------------------------------------------------------------------------------- 1 | Snowball English 2 | ================ 3 | 4 | This package implements the English language 5 | [Snowball stemmer](http://snowball.tartarus.org/algorithms/english/stemmer.html). 6 | 7 | ## Implementation 8 | 9 | The English language stemmer comprises preprocessing, a number of steps, 10 | and postprocessing. Each of these is defined in a separate file in this 11 | package. All of the steps operate on a `SnowballWord` from the 12 | `snowballword` package and *modify the word in place*. 13 | 14 | ## Caveats 15 | 16 | There is a single difference between this implementation and the original. 17 | Here, all apostrophes on the left hand side of a word are stripped off before 18 | the word is stemmed. -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/internal/bytesconv/bytesconv_1.19.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.20 6 | 7 | package bytesconv 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | // StringToBytes converts string to byte slice without a memory allocation. 14 | func StringToBytes(s string) []byte { 15 | return *(*[]byte)(unsafe.Pointer( 16 | &struct { 17 | string 18 | Cap int 19 | }{s, len(s)}, 20 | )) 21 | } 22 | 23 | // BytesToString converts byte slice to string without a memory allocation. 24 | func BytesToString(b []byte) string { 25 | return *(*string)(unsafe.Pointer(&b)) 26 | } 27 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | func setTimespec(sec, nsec int64) Timespec { 10 | return Timespec{Sec: sec, Nsec: nsec} 11 | } 12 | 13 | func setTimeval(sec, usec int64) Timeval { 14 | return Timeval{Sec: sec, Usec: usec} 15 | } 16 | 17 | func (iov *Iovec) SetLen(length int) { 18 | iov.Len = uint64(length) 19 | } 20 | 21 | func (msghdr *Msghdr) SetIovlen(length int) { 22 | msghdr.Iovlen = int32(length) 23 | } 24 | 25 | func (cmsg *Cmsghdr) SetLen(length int) { 26 | cmsg.Len = uint32(length) 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/.gitignore: -------------------------------------------------------------------------------- 1 | *.o 2 | *.swp 3 | *.swm 4 | *.swn 5 | *.a 6 | *.so 7 | _obj 8 | _test 9 | *.[568vq] 10 | [568vq].out 11 | *.cgo1.go 12 | *.cgo2.c 13 | _cgo_defun.c 14 | _cgo_gotypes.go 15 | _cgo_export.* 16 | _testmain.go 17 | *.exe 18 | *.exe~ 19 | *.test 20 | *.prof 21 | *.rar 22 | *.zip 23 | *.gz 24 | *.psd 25 | *.bmd 26 | *.cfg 27 | *.pptx 28 | *.log 29 | *nohup.out 30 | *settings.pyc 31 | *.sublime-project 32 | *.sublime-workspace 33 | .DS_Store 34 | /.idea/ 35 | /.vscode/ 36 | /output/ 37 | /vendor/ 38 | /Gopkg.lock 39 | /Gopkg.toml 40 | coverage.html 41 | coverage.out 42 | coverage.xml 43 | junit.xml 44 | *.profile 45 | *.svg 46 | *.out 47 | ast/test.out 48 | ast/bench.sh 49 | 50 | !testdata/*.json.gz 51 | fuzz/testdata 52 | *__debug_bin -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/internal/json/go_json.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Bo-Yi Wu. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go_json 6 | 7 | package json 8 | 9 | import json "github.com/goccy/go-json" 10 | 11 | var ( 12 | // Marshal is exported by gin/json package. 13 | Marshal = json.Marshal 14 | // Unmarshal is exported by gin/json package. 15 | Unmarshal = json.Unmarshal 16 | // MarshalIndent is exported by gin/json package. 17 | MarshalIndent = json.MarshalIndent 18 | // NewDecoder is exported by gin/json package. 19 | NewDecoder = json.NewDecoder 20 | // NewEncoder is exported by gin/json package. 21 | NewEncoder = json.NewEncoder 22 | ) 23 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/norwegian/stem.go: -------------------------------------------------------------------------------- 1 | package norwegian 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | "strings" 6 | ) 7 | 8 | // Stem a Norwegian word. This is the only exported 9 | // function in this package. 10 | // 11 | func Stem(word string, stemStopwWords bool) string { 12 | 13 | word = strings.ToLower(strings.TrimSpace(word)) 14 | 15 | // Return small words and stop words 16 | if len(word) <= 2 || (stemStopwWords == false && IsStopWord(word)) { 17 | return word 18 | } 19 | 20 | w := snowballword.New(word) 21 | 22 | // Stem the word. Note, each of these 23 | // steps will alter `w` in place. 24 | // 25 | preprocess(w) 26 | step1(w) 27 | step2(w) 28 | step3(w) 29 | 30 | return w.String() 31 | 32 | } 33 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/spanish/step2a.go: -------------------------------------------------------------------------------- 1 | package spanish 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 2a is the removal of verb suffixes beginning y, 8 | // Search for the longest among the following suffixes 9 | // in RV, and if found, delete if preceded by u. 10 | // 11 | func step2a(word *snowballword.SnowballWord) bool { 12 | suffix, suffixRunes := word.FirstSuffixIn(word.RVstart, len(word.RS), "ya", "ye", "yan", "yen", "yeron", "yendo", "yo", "yó", "yas", "yes", "yais", "yamos") 13 | if suffix != "" { 14 | idx := len(word.RS) - len(suffixRunes) - 1 15 | if idx >= 0 && word.RS[idx] == 117 { 16 | word.RemoveLastNRunes(len(suffixRunes)) 17 | return true 18 | } 19 | } 20 | return false 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/swedish/stem.go: -------------------------------------------------------------------------------- 1 | package swedish 2 | 3 | import ( 4 | "strings" 5 | 6 | "github.com/kljensen/snowball/snowballword" 7 | ) 8 | 9 | // Stem a Swedish word. This is the only exported 10 | // function in this package. 11 | // 12 | func Stem(word string, stemStopwWords bool) string { 13 | 14 | word = strings.ToLower(strings.TrimSpace(word)) 15 | 16 | // Return small words and stop words 17 | if len(word) <= 2 || (stemStopwWords == false && IsStopWord(word)) { 18 | return word 19 | } 20 | 21 | w := snowballword.New(word) 22 | 23 | // Stem the word. Note, each of these 24 | // steps will alter `w` in place. 25 | // 26 | preprocess(w) 27 | step1(w) 28 | step2(w) 29 | step3(w) 30 | 31 | return w.String() 32 | 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_unsupported_lt_go14.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build !go1.4 5 | // +build !go1.4 6 | 7 | package codec 8 | 9 | import "errors" 10 | 11 | // This codec package will only work for go1.4 and above. 12 | // This is for the following reasons: 13 | // - go 1.4 was released in 2014 14 | // - go runtime is written fully in go 15 | // - interface only holds pointers 16 | // - reflect.Value is stabilized as 3 words 17 | 18 | var errCodecSupportedOnlyFromGo14 = errors.New("codec: go 1.3 and below are not supported") 19 | 20 | func init() { 21 | panic(errCodecSupportedOnlyFromGo14) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/decoder/compile_norace.go: -------------------------------------------------------------------------------- 1 | //go:build !race 2 | // +build !race 3 | 4 | package decoder 5 | 6 | import ( 7 | "unsafe" 8 | 9 | "github.com/goccy/go-json/internal/runtime" 10 | ) 11 | 12 | func CompileToGetDecoder(typ *runtime.Type) (Decoder, error) { 13 | typeptr := uintptr(unsafe.Pointer(typ)) 14 | if typeptr > typeAddr.MaxTypeAddr { 15 | return compileToGetDecoderSlowPath(typeptr, typ) 16 | } 17 | 18 | index := (typeptr - typeAddr.BaseTypeAddr) >> typeAddr.AddrShift 19 | if dec := cachedDecoder[index]; dec != nil { 20 | return dec, nil 21 | } 22 | 23 | dec, err := compileHead(typ, map[uintptr]Decoder{}) 24 | if err != nil { 25 | return nil, err 26 | } 27 | cachedDecoder[index] = dec 28 | return dec, nil 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/norwegian/step3.go: -------------------------------------------------------------------------------- 1 | package norwegian 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 3: 8 | // Search for the longest among the following suffixes, 9 | // and, if found and in R1, delete. 10 | 11 | func step3(w *snowballword.SnowballWord) bool { 12 | // Possible sufficies for this step, longest first. 13 | suffix, suffixRunes := w.FirstSuffixIn(w.R1start, len(w.RS), 14 | "hetslov", "eleg", "elig", "elov", "slov", 15 | "leg", "eig", "lig", "els", "lov", "ig", 16 | ) 17 | 18 | // If it is not in R1, do nothing 19 | if suffix == "" || len(suffixRunes) > len(w.RS)-w.R1start { 20 | return false 21 | } 22 | 23 | w.ReplaceSuffixRunes(suffixRunes, []rune(""), true) 24 | return true 25 | 26 | } 27 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/render/data.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package render 6 | 7 | import "net/http" 8 | 9 | // Data contains ContentType and bytes data. 10 | type Data struct { 11 | ContentType string 12 | Data []byte 13 | } 14 | 15 | // Render (Data) writes data with custom ContentType. 16 | func (r Data) Render(w http.ResponseWriter) (err error) { 17 | r.WriteContentType(w) 18 | _, err = w.Write(r.Data) 19 | return 20 | } 21 | 22 | // WriteContentType (Data) writes custom ContentType. 23 | func (r Data) WriteContentType(w http.ResponseWriter) { 24 | writeContentType(w, []string{r.ContentType}) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_aix.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 6 | 7 | package cpu 8 | 9 | const ( 10 | // getsystemcfg constants 11 | _SC_IMPL = 2 12 | _IMPL_POWER8 = 0x10000 13 | _IMPL_POWER9 = 0x20000 14 | ) 15 | 16 | func archInit() { 17 | impl := getsystemcfg(_SC_IMPL) 18 | if impl&_IMPL_POWER8 != 0 { 19 | PPC64.IsPOWER8 = true 20 | } 21 | if impl&_IMPL_POWER9 != 0 { 22 | PPC64.IsPOWER8 = true 23 | PPC64.IsPOWER9 = true 24 | } 25 | 26 | Initialized = true 27 | } 28 | 29 | func getsystemcfg(label int) (n uint64) { 30 | r0, _ := callgetsystemcfg(label) 31 | n = uint64(r0) 32 | return 33 | } 34 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_zos_s390x.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 | package cpu 6 | 7 | func initS390Xbase() { 8 | // get the facilities list 9 | facilities := stfle() 10 | 11 | // mandatory 12 | S390X.HasZARCH = facilities.Has(zarch) 13 | S390X.HasSTFLE = facilities.Has(stflef) 14 | S390X.HasLDISP = facilities.Has(ldisp) 15 | S390X.HasEIMM = facilities.Has(eimm) 16 | 17 | // optional 18 | S390X.HasETF3EH = facilities.Has(etf3eh) 19 | S390X.HasDFP = facilities.Has(dfp) 20 | S390X.HasMSA = facilities.Has(msa) 21 | S390X.HasVX = facilities.Has(vx) 22 | if S390X.HasVX { 23 | S390X.HasVXE = facilities.Has(vxe) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/pelletier/go-toml/v2/internal/danger/typeid.go: -------------------------------------------------------------------------------- 1 | package danger 2 | 3 | import ( 4 | "reflect" 5 | "unsafe" 6 | ) 7 | 8 | // typeID is used as key in encoder and decoder caches to enable using 9 | // the optimize runtime.mapaccess2_fast64 function instead of the more 10 | // expensive lookup if we were to use reflect.Type as map key. 11 | // 12 | // typeID holds the pointer to the reflect.Type value, which is unique 13 | // in the program. 14 | // 15 | // https://github.com/segmentio/encoding/blob/master/json/codec.go#L59-L61 16 | type TypeID unsafe.Pointer 17 | 18 | func MakeTypeID(t reflect.Type) TypeID { 19 | // reflect.Type has the fields: 20 | // typ unsafe.Pointer 21 | // ptr unsafe.Pointer 22 | return TypeID((*[2]unsafe.Pointer)(unsafe.Pointer(&t))[1]) 23 | } 24 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import ( 10 | "runtime" 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = true 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | runtime.RaceAcquire(addr) 18 | } 19 | 20 | func raceReleaseMerge(addr unsafe.Pointer) { 21 | runtime.RaceReleaseMerge(addr) 22 | } 23 | 24 | func raceReadRange(addr unsafe.Pointer, len int) { 25 | runtime.RaceReadRange(addr, len) 26 | } 27 | 28 | func raceWriteRange(addr unsafe.Pointer, len int) { 29 | runtime.RaceWriteRange(addr, len) 30 | } 31 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gc_s390x.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 gc 6 | 7 | package cpu 8 | 9 | // haveAsmFunctions reports whether the other functions in this file can 10 | // be safely called. 11 | func haveAsmFunctions() bool { return true } 12 | 13 | // The following feature detection functions are defined in cpu_s390x.s. 14 | // They are likely to be expensive to call so the results should be cached. 15 | func stfle() facilityList 16 | func kmQuery() queryResult 17 | func kmcQuery() queryResult 18 | func kmctrQuery() queryResult 19 | func kmaQuery() queryResult 20 | func kimdQuery() queryResult 21 | func klmdQuery() queryResult 22 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/strs/strings_pure.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 purego || appengine 6 | // +build purego appengine 7 | 8 | package strs 9 | 10 | import pref "google.golang.org/protobuf/reflect/protoreflect" 11 | 12 | func UnsafeString(b []byte) string { 13 | return string(b) 14 | } 15 | 16 | func UnsafeBytes(s string) []byte { 17 | return []byte(s) 18 | } 19 | 20 | type Builder struct{} 21 | 22 | func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { 23 | return prefix.Append(name) 24 | } 25 | 26 | func (*Builder) MakeString(b []byte) string { 27 | return string(b) 28 | } 29 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | # syntax = docker/dockerfile:1 2 | FROM golang:1.20-buster AS base 3 | WORKDIR /app 4 | COPY go.mod . 5 | COPY go.sum . 6 | RUN --mount=type=cache,target=/go/pkg/mod \ 7 | go mod download 8 | 9 | FROM golangci/golangci-lint:v1.51 AS dev 10 | WORKDIR /app 11 | COPY --from=base /go/pkg/mod /go/pkg/mod 12 | ENTRYPOINT ["tail", "-f", "/dev/null"] 13 | 14 | FROM base AS build 15 | COPY api ./api 16 | COPY cmd ./cmd 17 | COPY pkg ./pkg 18 | RUN --mount=type=cache,target=/go/pkg/mod \ 19 | --mount=type=cache,target=/root/.cache/go-build \ 20 | go build -o ./bin/server ./cmd/server 21 | 22 | FROM gcr.io/distroless/base-debian11 AS release 23 | COPY --from=build /app/bin/server / 24 | ENV GIN_MODE=release 25 | USER nonroot:nonroot 26 | ENTRYPOINT ["/server"] 27 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/syscall_hurd.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 hurd 6 | 7 | package unix 8 | 9 | /* 10 | #include 11 | int ioctl(int, unsigned long int, uintptr_t); 12 | */ 13 | import "C" 14 | 15 | func ioctl(fd int, req uint, arg uintptr) (err error) { 16 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(arg)) 17 | if r0 == -1 && er != nil { 18 | err = er 19 | } 20 | return 21 | } 22 | 23 | func ioctlPtr(fd int, req uint, arg unsafe.Pointer) (err error) { 24 | r0, er := C.ioctl(C.int(fd), C.ulong(req), C.uintptr_t(uintptr(arg))) 25 | if r0 == -1 && er != nil { 26 | err = er 27 | } 28 | return 29 | } 30 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/avx/lspace_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package avx 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__lspace = 0 12 | ) 13 | 14 | const ( 15 | _stack__lspace = 8 16 | ) 17 | 18 | const ( 19 | _size__lspace = 113 20 | ) 21 | 22 | var ( 23 | _pcsp__lspace = [][2]uint32{ 24 | {1, 0}, 25 | {89, 8}, 26 | {90, 0}, 27 | {103, 8}, 28 | {104, 0}, 29 | {111, 8}, 30 | {113, 0}, 31 | } 32 | ) 33 | 34 | var _cfunc_lspace = []loader.CFunc{ 35 | {"_lspace_entry", 0, _entry__lspace, 0, nil}, 36 | {"_lspace", _entry__lspace, _size__lspace, _stack__lspace, _pcsp__lspace}, 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/sse/lspace_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package sse 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__lspace = 0 12 | ) 13 | 14 | const ( 15 | _stack__lspace = 8 16 | ) 17 | 18 | const ( 19 | _size__lspace = 113 20 | ) 21 | 22 | var ( 23 | _pcsp__lspace = [][2]uint32{ 24 | {1, 0}, 25 | {89, 8}, 26 | {90, 0}, 27 | {103, 8}, 28 | {104, 0}, 29 | {111, 8}, 30 | {113, 0}, 31 | } 32 | ) 33 | 34 | var _cfunc_lspace = []loader.CFunc{ 35 | {"_lspace_entry", 0, _entry__lspace, 0, nil}, 36 | {"_lspace", _entry__lspace, _size__lspace, _stack__lspace, _pcsp__lspace}, 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/avx2/lspace_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package avx2 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__lspace = 32 12 | ) 13 | 14 | const ( 15 | _stack__lspace = 8 16 | ) 17 | 18 | const ( 19 | _size__lspace = 220 20 | ) 21 | 22 | var ( 23 | _pcsp__lspace = [][2]uint32{ 24 | {1, 0}, 25 | {184, 8}, 26 | {188, 0}, 27 | {204, 8}, 28 | {208, 0}, 29 | {215, 8}, 30 | {220, 0}, 31 | } 32 | ) 33 | 34 | var _cfunc_lspace = []loader.CFunc{ 35 | {"_lspace_entry", 0, _entry__lspace, 0, nil}, 36 | {"_lspace", _entry__lspace, _size__lspace, _stack__lspace, _pcsp__lspace}, 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/gen-enc-chan.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Label}}: 2 | switch timeout{{.Sfx}} := z.EncBasicHandle().ChanRecvTimeout; { 3 | case timeout{{.Sfx}} == 0: // only consume available 4 | for { 5 | select { 6 | case b{{.Sfx}} := <-{{.Chan}}: 7 | {{ .Slice }} = append({{.Slice}}, b{{.Sfx}}) 8 | default: 9 | break {{.Label}} 10 | } 11 | } 12 | case timeout{{.Sfx}} > 0: // consume until timeout 13 | tt{{.Sfx}} := time.NewTimer(timeout{{.Sfx}}) 14 | for { 15 | select { 16 | case b{{.Sfx}} := <-{{.Chan}}: 17 | {{.Slice}} = append({{.Slice}}, b{{.Sfx}}) 18 | case <-tt{{.Sfx}}.C: 19 | // close(tt.C) 20 | break {{.Label}} 21 | } 22 | } 23 | default: // consume until close 24 | for b{{.Sfx}} := range {{.Chan}} { 25 | {{.Slice}} = append({{.Slice}}, b{{.Sfx}}) 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/test_helpers.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gin 6 | 7 | import "net/http" 8 | 9 | // CreateTestContext returns a fresh engine and context for testing purposes 10 | func CreateTestContext(w http.ResponseWriter) (c *Context, r *Engine) { 11 | r = New() 12 | c = r.allocateContext(0) 13 | c.reset() 14 | c.writermem.reset(w) 15 | return 16 | } 17 | 18 | // CreateTestContextOnly returns a fresh context base on the engine for testing purposes 19 | func CreateTestContextOnly(w http.ResponseWriter, r *Engine) (c *Context) { 20 | c = r.allocateContext(r.maxParams) 21 | c.reset() 22 | c.writermem.reset(w) 23 | return 24 | } 25 | -------------------------------------------------------------------------------- /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 | 7 | // Unix environment variables. 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | func Getenv(key string) (value string, found bool) { 14 | return syscall.Getenv(key) 15 | } 16 | 17 | func Setenv(key, value string) error { 18 | return syscall.Setenv(key, value) 19 | } 20 | 21 | func Clearenv() { 22 | syscall.Clearenv() 23 | } 24 | 25 | func Environ() []string { 26 | return syscall.Environ() 27 | } 28 | 29 | func Unsetenv(key string) error { 30 | return syscall.Unsetenv(key) 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/internal/json/json.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Bo-Yi Wu. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !jsoniter && !go_json && !(sonic && avx && (linux || windows || darwin) && amd64) 6 | 7 | package json 8 | 9 | import "encoding/json" 10 | 11 | var ( 12 | // Marshal is exported by gin/json package. 13 | Marshal = json.Marshal 14 | // Unmarshal is exported by gin/json package. 15 | Unmarshal = json.Unmarshal 16 | // MarshalIndent is exported by gin/json package. 17 | MarshalIndent = json.MarshalIndent 18 | // NewDecoder is exported by gin/json package. 19 | NewDecoder = json.NewDecoder 20 | // NewEncoder is exported by gin/json package. 21 | NewEncoder = json.NewEncoder 22 | ) 23 | -------------------------------------------------------------------------------- /vendor/github.com/twitchyliquid64/golang-asm/obj/mips/anames0.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 mips 6 | 7 | var cnames0 = []string{ 8 | "NONE", 9 | "REG", 10 | "FREG", 11 | "FCREG", 12 | "MREG", 13 | "WREG", 14 | "HI", 15 | "LO", 16 | "ZCON", 17 | "SCON", 18 | "UCON", 19 | "ADD0CON", 20 | "AND0CON", 21 | "ADDCON", 22 | "ANDCON", 23 | "LCON", 24 | "DCON", 25 | "SACON", 26 | "SECON", 27 | "LACON", 28 | "LECON", 29 | "DACON", 30 | "STCON", 31 | "SBRA", 32 | "LBRA", 33 | "SAUTO", 34 | "LAUTO", 35 | "SEXT", 36 | "LEXT", 37 | "ZOREG", 38 | "SOREG", 39 | "LOREG", 40 | "GOK", 41 | "ADDR", 42 | "TLS", 43 | "TEXTSIZE", 44 | "NCLASS", 45 | } 46 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/internal/json/jsoniter.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Bo-Yi Wu. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build jsoniter 6 | 7 | package json 8 | 9 | import jsoniter "github.com/json-iterator/go" 10 | 11 | var ( 12 | json = jsoniter.ConfigCompatibleWithStandardLibrary 13 | // Marshal is exported by gin/json package. 14 | Marshal = json.Marshal 15 | // Unmarshal is exported by gin/json package. 16 | Unmarshal = json.Unmarshal 17 | // MarshalIndent is exported by gin/json package. 18 | MarshalIndent = json.MarshalIndent 19 | // NewDecoder is exported by gin/json package. 20 | NewDecoder = json.NewDecoder 21 | // NewEncoder is exported by gin/json package. 22 | NewEncoder = json.NewEncoder 23 | ) 24 | -------------------------------------------------------------------------------- /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 | 7 | #include "textflag.h" 8 | 9 | // System call support for ARM BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-28 15 | B syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 18 | B syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 21 | B syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 24 | B syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 27 | B syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /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 || zos 6 | 7 | package unix 8 | 9 | import "unsafe" 10 | 11 | // ReadDirent reads directory entries from fd and writes them into buf. 12 | func ReadDirent(fd int, buf []byte) (n int, err error) { 13 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 14 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 15 | // actual system call is getdirentries64, 64 is a good guess. 16 | // TODO(rsc): Can we use a single global basep for all calls? 17 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 18 | return Getdirentries(fd, buf, base) 19 | } 20 | -------------------------------------------------------------------------------- /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 ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), 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 ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 17 | } 18 | -------------------------------------------------------------------------------- /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/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 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for mips64, OpenBSD 11 | // 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/github.com/gin-gonic/gin/internal/json/sonic.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build sonic && avx && (linux || windows || darwin) && amd64 6 | 7 | package json 8 | 9 | import "github.com/bytedance/sonic" 10 | 11 | var ( 12 | json = sonic.ConfigStd 13 | // Marshal is exported by gin/json package. 14 | Marshal = json.Marshal 15 | // Unmarshal is exported by gin/json package. 16 | Unmarshal = json.Unmarshal 17 | // MarshalIndent is exported by gin/json package. 18 | MarshalIndent = json.MarshalIndent 19 | // NewDecoder is exported by gin/json package. 20 | NewDecoder = json.NewDecoder 21 | // NewEncoder is exported by gin/json package. 22 | NewEncoder = json.NewEncoder 23 | ) 24 | -------------------------------------------------------------------------------- /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 | 7 | #include "textflag.h" 8 | 9 | // System call support for 386 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-28 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/spanish/step3.go: -------------------------------------------------------------------------------- 1 | package spanish 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // Step 3 is the removal of residual suffixes. 8 | // 9 | func step3(word *snowballword.SnowballWord) bool { 10 | suffix, suffixRunes := word.FirstSuffixIfIn(word.RVstart, len(word.RS), 11 | "os", "a", "o", "á", "í", "ó", "e", "é", 12 | ) 13 | 14 | // No suffix found, nothing to do. 15 | // 16 | if suffix == "" { 17 | return false 18 | } 19 | 20 | // Remove all these suffixes 21 | word.RemoveLastNRunes(len(suffixRunes)) 22 | 23 | if suffix == "e" || suffix == "é" { 24 | 25 | // If preceded by gu with the u in RV delete the u 26 | // 27 | guSuffix, _ := word.FirstSuffix("gu") 28 | if guSuffix != "" { 29 | word.RemoveLastNRunes(1) 30 | } 31 | } 32 | return true 33 | } 34 | -------------------------------------------------------------------------------- /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/pelletier/go-toml/v2/internal/characters/ascii.go: -------------------------------------------------------------------------------- 1 | package characters 2 | 3 | var invalidAsciiTable = [256]bool{ 4 | 0x00: true, 5 | 0x01: true, 6 | 0x02: true, 7 | 0x03: true, 8 | 0x04: true, 9 | 0x05: true, 10 | 0x06: true, 11 | 0x07: true, 12 | 0x08: true, 13 | // 0x09 TAB 14 | // 0x0A LF 15 | 0x0B: true, 16 | 0x0C: true, 17 | // 0x0D CR 18 | 0x0E: true, 19 | 0x0F: true, 20 | 0x10: true, 21 | 0x11: true, 22 | 0x12: true, 23 | 0x13: true, 24 | 0x14: true, 25 | 0x15: true, 26 | 0x16: true, 27 | 0x17: true, 28 | 0x18: true, 29 | 0x19: true, 30 | 0x1A: true, 31 | 0x1B: true, 32 | 0x1C: true, 33 | 0x1D: true, 34 | 0x1E: true, 35 | 0x1F: true, 36 | // 0x20 - 0x7E Printable ASCII characters 37 | 0x7F: true, 38 | } 39 | 40 | func InvalidAscii(b byte) bool { 41 | return invalidAsciiTable[b] 42 | } 43 | -------------------------------------------------------------------------------- /vendor/github.com/ugorji/go/codec/goversion_makemap_unsafe_gte_go110.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2020 Ugorji Nwoke. All rights reserved. 2 | // Use of this source code is governed by a MIT license found in the LICENSE file. 3 | 4 | //go:build go1.10 && !safe && !codec.safe && !appengine 5 | // +build go1.10,!safe,!codec.safe,!appengine 6 | 7 | package codec 8 | 9 | import ( 10 | "reflect" 11 | "unsafe" 12 | ) 13 | 14 | func makeMapReflect(typ reflect.Type, size int) (rv reflect.Value) { 15 | t := (*unsafeIntf)(unsafe.Pointer(&typ)).ptr 16 | urv := (*unsafeReflectValue)(unsafe.Pointer(&rv)) 17 | urv.typ = t 18 | urv.flag = uintptr(reflect.Map) 19 | urv.ptr = makemap(t, size, nil) 20 | return 21 | } 22 | 23 | //go:linkname makemap runtime.makemap 24 | //go:noescape 25 | func makemap(typ unsafe.Pointer, size int, h unsafe.Pointer) unsafe.Pointer 26 | -------------------------------------------------------------------------------- /vendor/google.golang.org/protobuf/internal/genid/goname.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 genid 6 | 7 | // Go names of implementation-specific struct fields in generated messages. 8 | const ( 9 | State_goname = "state" 10 | 11 | SizeCache_goname = "sizeCache" 12 | SizeCacheA_goname = "XXX_sizecache" 13 | 14 | WeakFields_goname = "weakFields" 15 | WeakFieldsA_goname = "XXX_weak" 16 | 17 | UnknownFields_goname = "unknownFields" 18 | UnknownFieldsA_goname = "XXX_unrecognized" 19 | 20 | ExtensionFields_goname = "extensionFields" 21 | ExtensionFieldsA_goname = "XXX_InternalExtensions" 22 | ExtensionFieldsB_goname = "XXX_extensions" 23 | 24 | WeakFieldPrefix_goname = "XXX_weak_" 25 | ) 26 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/avx/u64toa_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package avx 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__u64toa = 64 12 | ) 13 | 14 | const ( 15 | _stack__u64toa = 8 16 | ) 17 | 18 | const ( 19 | _size__u64toa = 1232 20 | ) 21 | 22 | var ( 23 | _pcsp__u64toa = [][2]uint32{ 24 | {1, 0}, 25 | {161, 8}, 26 | {162, 0}, 27 | {457, 8}, 28 | {458, 0}, 29 | {756, 8}, 30 | {757, 0}, 31 | {1221, 8}, 32 | {1232, 0}, 33 | } 34 | ) 35 | 36 | var _cfunc_u64toa = []loader.CFunc{ 37 | {"_u64toa_entry", 0, _entry__u64toa, 0, nil}, 38 | {"_u64toa", _entry__u64toa, _size__u64toa, _stack__u64toa, _pcsp__u64toa}, 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/avx2/u64toa_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package avx2 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__u64toa = 64 12 | ) 13 | 14 | const ( 15 | _stack__u64toa = 8 16 | ) 17 | 18 | const ( 19 | _size__u64toa = 1232 20 | ) 21 | 22 | var ( 23 | _pcsp__u64toa = [][2]uint32{ 24 | {1, 0}, 25 | {161, 8}, 26 | {162, 0}, 27 | {457, 8}, 28 | {458, 0}, 29 | {758, 8}, 30 | {759, 0}, 31 | {1225, 8}, 32 | {1232, 0}, 33 | } 34 | ) 35 | 36 | var _cfunc_u64toa = []loader.CFunc{ 37 | {"_u64toa_entry", 0, _entry__u64toa, 0, nil}, 38 | {"_u64toa", _entry__u64toa, _size__u64toa, _stack__u64toa, _pcsp__u64toa}, 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/sse/u64toa_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package sse 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__u64toa = 80 12 | ) 13 | 14 | const ( 15 | _stack__u64toa = 8 16 | ) 17 | 18 | const ( 19 | _size__u64toa = 1264 20 | ) 21 | 22 | var ( 23 | _pcsp__u64toa = [][2]uint32{ 24 | {1, 0}, 25 | {161, 8}, 26 | {162, 0}, 27 | {457, 8}, 28 | {458, 0}, 29 | {772, 8}, 30 | {773, 0}, 31 | {1249, 8}, 32 | {1264, 0}, 33 | } 34 | ) 35 | 36 | var _cfunc_u64toa = []loader.CFunc{ 37 | {"_u64toa_entry", 0, _entry__u64toa, 0, nil}, 38 | {"_u64toa", _entry__u64toa, _size__u64toa, _stack__u64toa, _pcsp__u64toa}, 39 | } 40 | -------------------------------------------------------------------------------- /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/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 | 7 | #include "textflag.h" 8 | 9 | // System call support for ARM64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /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 | 7 | #include "textflag.h" 8 | 9 | // System call support for RISCV64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/xml.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package binding 6 | 7 | import ( 8 | "bytes" 9 | "encoding/xml" 10 | "io" 11 | "net/http" 12 | ) 13 | 14 | type xmlBinding struct{} 15 | 16 | func (xmlBinding) Name() string { 17 | return "xml" 18 | } 19 | 20 | func (xmlBinding) Bind(req *http.Request, obj any) error { 21 | return decodeXML(req.Body, obj) 22 | } 23 | 24 | func (xmlBinding) BindBody(body []byte, obj any) error { 25 | return decodeXML(bytes.NewReader(body), obj) 26 | } 27 | func decodeXML(r io.Reader, obj any) error { 28 | decoder := xml.NewDecoder(r) 29 | if err := decoder.Decode(obj); err != nil { 30 | return err 31 | } 32 | return validate(obj) 33 | } 34 | -------------------------------------------------------------------------------- /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/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 | 7 | #include "textflag.h" 8 | 9 | // System call support for AMD64 BSD 10 | 11 | // Just jump to package syscall's implementation for all these functions. 12 | // The runtime may know about them. 13 | 14 | TEXT ·Syscall(SB),NOSPLIT,$0-56 15 | JMP syscall·Syscall(SB) 16 | 17 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 18 | JMP syscall·Syscall6(SB) 19 | 20 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 21 | JMP syscall·Syscall9(SB) 22 | 23 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 24 | JMP syscall·RawSyscall(SB) 25 | 26 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 27 | JMP syscall·RawSyscall6(SB) 28 | -------------------------------------------------------------------------------- /vendor/github.com/kljensen/snowball/romance/common.go: -------------------------------------------------------------------------------- 1 | package romance 2 | 3 | import ( 4 | "github.com/kljensen/snowball/snowballword" 5 | ) 6 | 7 | // A function type that accepts a rune and 8 | // returns a bool. In this particular case, 9 | // it is used for identifying vowels. 10 | type isVowelFunc func(rune) bool 11 | 12 | // Finds the region after the first non-vowel following a vowel, 13 | // or a the null region at the end of the word if there is no 14 | // such non-vowel. Returns the index in the Word where the 15 | // region starts; optionally skips the first `start` characters. 16 | // 17 | func VnvSuffix(word *snowballword.SnowballWord, f isVowelFunc, start int) int { 18 | for i := 1; i < len(word.RS[start:]); i++ { 19 | j := start + i 20 | if f(word.RS[j-1]) && !f(word.RS[j]) { 21 | return j + 1 22 | } 23 | } 24 | return len(word.RS) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/unix/asm_bsd_ppc64.s: -------------------------------------------------------------------------------- 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 (darwin || freebsd || netbsd || openbsd) && gc 6 | 7 | #include "textflag.h" 8 | 9 | // 10 | // System call support for ppc64, BSD 11 | // 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/github.com/cloudwego/iasm/expr/term.go: -------------------------------------------------------------------------------- 1 | // 2 | // Copyright 2024 CloudWeGo Authors 3 | // 4 | // Licensed under the Apache License, Version 2.0 (the "License"); 5 | // you may not use this file except in compliance with the License. 6 | // You may obtain a copy of the License at 7 | // 8 | // http://www.apache.org/licenses/LICENSE-2.0 9 | // 10 | // Unless required by applicable law or agreed to in writing, software 11 | // distributed under the License is distributed on an "AS IS" BASIS, 12 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 | // See the License for the specific language governing permissions and 14 | // limitations under the License. 15 | // 16 | 17 | package expr 18 | 19 | // Term represents a value that can Evaluate() into an integer. 20 | type Term interface { 21 | Free() 22 | Evaluate() (int64, error) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/yaml.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package binding 6 | 7 | import ( 8 | "bytes" 9 | "io" 10 | "net/http" 11 | 12 | "gopkg.in/yaml.v3" 13 | ) 14 | 15 | type yamlBinding struct{} 16 | 17 | func (yamlBinding) Name() string { 18 | return "yaml" 19 | } 20 | 21 | func (yamlBinding) Bind(req *http.Request, obj any) error { 22 | return decodeYAML(req.Body, obj) 23 | } 24 | 25 | func (yamlBinding) BindBody(body []byte, obj any) error { 26 | return decodeYAML(bytes.NewReader(body), obj) 27 | } 28 | 29 | func decodeYAML(r io.Reader, obj any) error { 30 | decoder := yaml.NewDecoder(r) 31 | if err := decoder.Decode(obj); err != nil { 32 | return err 33 | } 34 | return validate(obj) 35 | } 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/syscall_aix_gccgo.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 | // Recreate a getsystemcfg syscall handler instead of 6 | // using the one provided by x/sys/unix to avoid having 7 | // the dependency between them. (See golang.org/issue/32102) 8 | // Moreover, this file will be used during the building of 9 | // gccgo's libgo and thus must not used a CGo method. 10 | 11 | //go:build aix && gccgo 12 | 13 | package cpu 14 | 15 | import ( 16 | "syscall" 17 | ) 18 | 19 | //extern getsystemcfg 20 | func gccgoGetsystemcfg(label uint32) (r uint64) 21 | 22 | func callgetsystemcfg(label int) (r1 uintptr, e1 syscall.Errno) { 23 | r1 = uintptr(gccgoGetsystemcfg(uint32(label))) 24 | e1 = syscall.GetErrno() 25 | return 26 | } 27 | -------------------------------------------------------------------------------- /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/github.com/twitchyliquid64/golang-asm/objabi/typekind.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 | package objabi 6 | 7 | // Must match runtime and reflect. 8 | // Included by cmd/gc. 9 | 10 | const ( 11 | KindBool = 1 + iota 12 | KindInt 13 | KindInt8 14 | KindInt16 15 | KindInt32 16 | KindInt64 17 | KindUint 18 | KindUint8 19 | KindUint16 20 | KindUint32 21 | KindUint64 22 | KindUintptr 23 | KindFloat32 24 | KindFloat64 25 | KindComplex64 26 | KindComplex128 27 | KindArray 28 | KindChan 29 | KindFunc 30 | KindInterface 31 | KindMap 32 | KindPtr 33 | KindSlice 34 | KindString 35 | KindStruct 36 | KindUnsafePointer 37 | KindDirectIface = 1 << 5 38 | KindGCProg = 1 << 6 39 | KindMask = (1 << 5) - 1 40 | ) 41 | -------------------------------------------------------------------------------- /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 | 7 | // Functions to access/create device major and minor numbers matching the 8 | // encoding used by AIX. 9 | 10 | package unix 11 | 12 | // Major returns the major component of a Linux device number. 13 | func Major(dev uint64) uint32 { 14 | return uint32((dev >> 16) & 0xffff) 15 | } 16 | 17 | // Minor returns the minor component of a Linux device number. 18 | func Minor(dev uint64) uint32 { 19 | return uint32(dev & 0xffff) 20 | } 21 | 22 | // Mkdev returns a Linux device number generated from the given major and minor 23 | // components. 24 | func Mkdev(major, minor uint32) uint64 { 25 | return uint64(((major) << 16) | (minor)) 26 | } 27 | -------------------------------------------------------------------------------- /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/github.com/gin-gonic/gin/render/xml.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package render 6 | 7 | import ( 8 | "encoding/xml" 9 | "net/http" 10 | ) 11 | 12 | // XML contains the given interface object. 13 | type XML struct { 14 | Data any 15 | } 16 | 17 | var xmlContentType = []string{"application/xml; charset=utf-8"} 18 | 19 | // Render (XML) encodes the given interface object and writes data with custom ContentType. 20 | func (r XML) Render(w http.ResponseWriter) error { 21 | r.WriteContentType(w) 22 | return xml.NewEncoder(w).Encode(r.Data) 23 | } 24 | 25 | // WriteContentType (XML) writes XML ContentType for response. 26 | func (r XML) WriteContentType(w http.ResponseWriter) { 27 | writeContentType(w, xmlContentType) 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/deprecated.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package gin 6 | 7 | import ( 8 | "log" 9 | 10 | "github.com/gin-gonic/gin/binding" 11 | ) 12 | 13 | // BindWith binds the passed struct pointer using the specified binding engine. 14 | // See the binding package. 15 | // 16 | // Deprecated: Use MustBindWith or ShouldBindWith. 17 | func (c *Context) BindWith(obj any, b binding.Binding) error { 18 | log.Println(`BindWith(\"any, binding.Binding\") error is going to 19 | be deprecated, please check issue #662 and either use MustBindWith() if you 20 | want HTTP 400 to be automatically returned if any error occur, or use 21 | ShouldBindWith() if you need to manage the error.`) 22 | return c.MustBindWith(obj, b) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/internal/bytesconv/bytesconv_1.20.go: -------------------------------------------------------------------------------- 1 | // Copyright 2023 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.20 6 | 7 | package bytesconv 8 | 9 | import ( 10 | "unsafe" 11 | ) 12 | 13 | // StringToBytes converts string to byte slice without a memory allocation. 14 | // For more details, see https://github.com/golang/go/issues/53003#issuecomment-1140276077. 15 | func StringToBytes(s string) []byte { 16 | return unsafe.Slice(unsafe.StringData(s), len(s)) 17 | } 18 | 19 | // BytesToString converts byte slice to string without a memory allocation. 20 | // For more details, see https://github.com/golang/go/issues/53003#issuecomment-1140276077. 21 | func BytesToString(b []byte) string { 22 | return unsafe.String(unsafe.SliceData(b), len(b)) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/decoder/type.go: -------------------------------------------------------------------------------- 1 | package decoder 2 | 3 | import ( 4 | "context" 5 | "encoding" 6 | "encoding/json" 7 | "reflect" 8 | "unsafe" 9 | ) 10 | 11 | type Decoder interface { 12 | Decode(*RuntimeContext, int64, int64, unsafe.Pointer) (int64, error) 13 | DecodePath(*RuntimeContext, int64, int64) ([][]byte, int64, error) 14 | DecodeStream(*Stream, int64, unsafe.Pointer) error 15 | } 16 | 17 | const ( 18 | nul = '\000' 19 | maxDecodeNestingDepth = 10000 20 | ) 21 | 22 | type unmarshalerContext interface { 23 | UnmarshalJSON(context.Context, []byte) error 24 | } 25 | 26 | var ( 27 | unmarshalJSONType = reflect.TypeOf((*json.Unmarshaler)(nil)).Elem() 28 | unmarshalJSONContextType = reflect.TypeOf((*unmarshalerContext)(nil)).Elem() 29 | unmarshalTextType = reflect.TypeOf((*encoding.TextUnmarshaler)(nil)).Elem() 30 | ) 31 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/toml.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 Gin Core Team. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | package binding 6 | 7 | import ( 8 | "bytes" 9 | "io" 10 | "net/http" 11 | 12 | "github.com/pelletier/go-toml/v2" 13 | ) 14 | 15 | type tomlBinding struct{} 16 | 17 | func (tomlBinding) Name() string { 18 | return "toml" 19 | } 20 | 21 | func (tomlBinding) Bind(req *http.Request, obj any) error { 22 | return decodeToml(req.Body, obj) 23 | } 24 | 25 | func (tomlBinding) BindBody(body []byte, obj any) error { 26 | return decodeToml(bytes.NewReader(body), obj) 27 | } 28 | 29 | func decodeToml(r io.Reader, obj any) error { 30 | decoder := toml.NewDecoder(r) 31 | if err := decoder.Decode(obj); err != nil { 32 | return err 33 | } 34 | return decoder.Decode(obj) 35 | } 36 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/language/coverage.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 | package language 6 | 7 | // BaseLanguages returns the list of all supported base languages. It generates 8 | // the list by traversing the internal structures. 9 | func BaseLanguages() []Language { 10 | base := make([]Language, 0, NumLanguages) 11 | for i := 0; i < langNoIndexOffset; i++ { 12 | // We included "und" already for the value 0. 13 | if i != nonCanonicalUnd { 14 | base = append(base, Language(i)) 15 | } 16 | } 17 | i := langNoIndexOffset 18 | for _, v := range langNoIndex { 19 | for k := 0; k < 8; k++ { 20 | if v&1 == 1 { 21 | base = append(base, Language(i)) 22 | } 23 | v >>= 1 24 | i++ 25 | } 26 | } 27 | return base 28 | } 29 | -------------------------------------------------------------------------------- /vendor/github.com/twitchyliquid64/golang-asm/obj/riscv/list.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 riscv 6 | 7 | import ( 8 | "fmt" 9 | 10 | "github.com/twitchyliquid64/golang-asm/obj" 11 | ) 12 | 13 | func init() { 14 | obj.RegisterRegister(obj.RBaseRISCV, REG_END, RegName) 15 | obj.RegisterOpcode(obj.ABaseRISCV, Anames) 16 | } 17 | 18 | func RegName(r int) string { 19 | switch { 20 | case r == 0: 21 | return "NONE" 22 | case r == REG_G: 23 | return "g" 24 | case r == REG_SP: 25 | return "SP" 26 | case REG_X0 <= r && r <= REG_X31: 27 | return fmt.Sprintf("X%d", r-REG_X0) 28 | case REG_F0 <= r && r <= REG_F31: 29 | return fmt.Sprintf("F%d", r-REG_F0) 30 | default: 31 | return fmt.Sprintf("Rgok(%d)", r-obj.RBaseRISCV) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /vendor/github.com/twitchyliquid64/golang-asm/obj/ppc64/anames9.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 ppc64 6 | 7 | var cnames9 = []string{ 8 | "NONE", 9 | "REG", 10 | "FREG", 11 | "VREG", 12 | "VSREG", 13 | "CREG", 14 | "SPR", 15 | "ZCON", 16 | "SCON", 17 | "UCON", 18 | "ADDCON", 19 | "ANDCON", 20 | "LCON", 21 | "DCON", 22 | "SACON", 23 | "SECON", 24 | "LACON", 25 | "LECON", 26 | "DACON", 27 | "SBRA", 28 | "LBRA", 29 | "LBRAPIC", 30 | "SAUTO", 31 | "LAUTO", 32 | "SEXT", 33 | "LEXT", 34 | "ZOREG", 35 | "SOREG", 36 | "LOREG", 37 | "FPSCR", 38 | "MSR", 39 | "XER", 40 | "LR", 41 | "CTR", 42 | "ANY", 43 | "GOK", 44 | "ADDR", 45 | "GOTADDR", 46 | "TOCADDR", 47 | "TLS_LE", 48 | "TLS_IE", 49 | "TEXTSIZE", 50 | "NCLASS", 51 | } 52 | -------------------------------------------------------------------------------- /vendor/github.com/goccy/go-json/internal/decoder/compile_race.go: -------------------------------------------------------------------------------- 1 | //go:build race 2 | // +build race 3 | 4 | package decoder 5 | 6 | import ( 7 | "sync" 8 | "unsafe" 9 | 10 | "github.com/goccy/go-json/internal/runtime" 11 | ) 12 | 13 | var decMu sync.RWMutex 14 | 15 | func CompileToGetDecoder(typ *runtime.Type) (Decoder, error) { 16 | typeptr := uintptr(unsafe.Pointer(typ)) 17 | if typeptr > typeAddr.MaxTypeAddr { 18 | return compileToGetDecoderSlowPath(typeptr, typ) 19 | } 20 | 21 | index := (typeptr - typeAddr.BaseTypeAddr) >> typeAddr.AddrShift 22 | decMu.RLock() 23 | if dec := cachedDecoder[index]; dec != nil { 24 | decMu.RUnlock() 25 | return dec, nil 26 | } 27 | decMu.RUnlock() 28 | 29 | dec, err := compileHead(typ, map[uintptr]Decoder{}) 30 | if err != nil { 31 | return nil, err 32 | } 33 | decMu.Lock() 34 | cachedDecoder[index] = dec 35 | decMu.Unlock() 36 | return dec, nil 37 | } 38 | -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | import "syscall" 10 | 11 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 12 | return syscall.Syscall(trap, a1, a2, a3) 13 | } 14 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 15 | return syscall.Syscall6(trap, a1, a2, a3, a4, a5, a6) 16 | } 17 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) { 18 | return syscall.RawSyscall(trap, a1, a2, a3) 19 | } 20 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) { 21 | return syscall.RawSyscall6(trap, a1, a2, a3, a4, a5, a6) 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/rt/stub_go116.go: -------------------------------------------------------------------------------- 1 | // +build go1.16,!go1.20 2 | 3 | // Copyright 2024 CloudWeGo Authors 4 | // 5 | // Licensed under the Apache License, Version 2.0 (the "License"); 6 | // you may not use this file except in compliance with the License. 7 | // You may obtain a copy of the License at 8 | // 9 | // https://www.apache.org/licenses/LICENSE-2.0 10 | // 11 | // Unless required by applicable law or agreed to in writing, software 12 | // distributed under the License is distributed on an "AS IS" BASIS, 13 | // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | // See the License for the specific language governing permissions and 15 | // limitations under the License. 16 | 17 | package rt 18 | 19 | import _ "unsafe" 20 | 21 | //go:linkname GrowSlice runtime.growslice 22 | //goland:noinspection GoUnusedParameter 23 | func GrowSlice(et *GoType, old GoSlice, cap int) GoSlice -------------------------------------------------------------------------------- /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 | 7 | package unix 8 | 9 | // Set adds fd to the set fds. 10 | func (fds *FdSet) Set(fd int) { 11 | fds.Bits[fd/NFDBITS] |= (1 << (uintptr(fd) % NFDBITS)) 12 | } 13 | 14 | // Clear removes fd from the set fds. 15 | func (fds *FdSet) Clear(fd int) { 16 | fds.Bits[fd/NFDBITS] &^= (1 << (uintptr(fd) % NFDBITS)) 17 | } 18 | 19 | // IsSet returns whether fd is in the set fds. 20 | func (fds *FdSet) IsSet(fd int) bool { 21 | return fds.Bits[fd/NFDBITS]&(1<<(uintptr(fd)%NFDBITS)) != 0 22 | } 23 | 24 | // Zero clears the set fds. 25 | func (fds *FdSet) Zero() { 26 | for i := range fds.Bits { 27 | fds.Bits[i] = 0 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_linux_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 && (ppc64 || ppc64le) 6 | 7 | package cpu 8 | 9 | // HWCAP/HWCAP2 bits. These are exposed by the kernel. 10 | const ( 11 | // ISA Level 12 | _PPC_FEATURE2_ARCH_2_07 = 0x80000000 13 | _PPC_FEATURE2_ARCH_3_00 = 0x00800000 14 | 15 | // CPU features 16 | _PPC_FEATURE2_DARN = 0x00200000 17 | _PPC_FEATURE2_SCV = 0x00100000 18 | ) 19 | 20 | func doinit() { 21 | // HWCAP2 feature bits 22 | PPC64.IsPOWER8 = isSet(hwCap2, _PPC_FEATURE2_ARCH_2_07) 23 | PPC64.IsPOWER9 = isSet(hwCap2, _PPC_FEATURE2_ARCH_3_00) 24 | PPC64.HasDARN = isSet(hwCap2, _PPC_FEATURE2_DARN) 25 | PPC64.HasSCV = isSet(hwCap2, _PPC_FEATURE2_SCV) 26 | } 27 | 28 | func isSet(hwc uint, value uint) bool { 29 | return hwc&value != 0 30 | } 31 | -------------------------------------------------------------------------------- /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/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/google/uuid/README.md: -------------------------------------------------------------------------------- 1 | # uuid 2 | The uuid package generates and inspects UUIDs based on 3 | [RFC 4122](https://datatracker.ietf.org/doc/html/rfc4122) 4 | and DCE 1.1: Authentication and Security Services. 5 | 6 | This package is based on the github.com/pborman/uuid package (previously named 7 | code.google.com/p/go-uuid). It differs from these earlier packages in that 8 | a UUID is a 16 byte array rather than a byte slice. One loss due to this 9 | change is the ability to represent an invalid UUID (vs a NIL UUID). 10 | 11 | ###### Install 12 | ```sh 13 | go get github.com/google/uuid 14 | ``` 15 | 16 | ###### Documentation 17 | [![Go Reference](https://pkg.go.dev/badge/github.com/google/uuid.svg)](https://pkg.go.dev/github.com/google/uuid) 18 | 19 | Full `go doc` style documentation for the package can be viewed online without 20 | installing this package by using the GoDoc site here: 21 | http://pkg.go.dev/github.com/google/uuid 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/sys/cpu/cpu_gccgo_x86.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 (386 || amd64 || amd64p32) && gccgo 6 | 7 | package cpu 8 | 9 | //extern gccgoGetCpuidCount 10 | func gccgoGetCpuidCount(eaxArg, ecxArg uint32, eax, ebx, ecx, edx *uint32) 11 | 12 | func cpuid(eaxArg, ecxArg uint32) (eax, ebx, ecx, edx uint32) { 13 | var a, b, c, d uint32 14 | gccgoGetCpuidCount(eaxArg, ecxArg, &a, &b, &c, &d) 15 | return a, b, c, d 16 | } 17 | 18 | //extern gccgoXgetbv 19 | func gccgoXgetbv(eax, edx *uint32) 20 | 21 | func xgetbv() (eax, edx uint32) { 22 | var a, d uint32 23 | gccgoXgetbv(&a, &d) 24 | return a, d 25 | } 26 | 27 | // gccgo doesn't build on Darwin, per: 28 | // https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/gcc.rb#L76 29 | func darwinSupportsAVX512() bool { 30 | return false 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/avx/f32toa_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package avx 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__f32toa = 32 12 | ) 13 | 14 | const ( 15 | _stack__f32toa = 48 16 | ) 17 | 18 | const ( 19 | _size__f32toa = 3392 20 | ) 21 | 22 | var ( 23 | _pcsp__f32toa = [][2]uint32{ 24 | {1, 0}, 25 | {4, 8}, 26 | {6, 16}, 27 | {8, 24}, 28 | {10, 32}, 29 | {12, 40}, 30 | {3350, 48}, 31 | {3351, 40}, 32 | {3353, 32}, 33 | {3355, 24}, 34 | {3357, 16}, 35 | {3359, 8}, 36 | {3363, 0}, 37 | {3392, 48}, 38 | } 39 | ) 40 | 41 | var _cfunc_f32toa = []loader.CFunc{ 42 | {"_f32toa_entry", 0, _entry__f32toa, 0, nil}, 43 | {"_f32toa", _entry__f32toa, _size__f32toa, _stack__f32toa, _pcsp__f32toa}, 44 | } 45 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/avx/vunsigned_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package avx 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__vunsigned = 0 12 | ) 13 | 14 | const ( 15 | _stack__vunsigned = 8 16 | ) 17 | 18 | const ( 19 | _size__vunsigned = 324 20 | ) 21 | 22 | var ( 23 | _pcsp__vunsigned = [][2]uint32{ 24 | {1, 0}, 25 | {71, 8}, 26 | {72, 0}, 27 | {83, 8}, 28 | {84, 0}, 29 | {107, 8}, 30 | {108, 0}, 31 | {273, 8}, 32 | {274, 0}, 33 | {312, 8}, 34 | {313, 0}, 35 | {320, 8}, 36 | {324, 0}, 37 | } 38 | ) 39 | 40 | var _cfunc_vunsigned = []loader.CFunc{ 41 | {"_vunsigned_entry", 0, _entry__vunsigned, 0, nil}, 42 | {"_vunsigned", _entry__vunsigned, _size__vunsigned, _stack__vunsigned, _pcsp__vunsigned}, 43 | } 44 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/avx2/f32toa_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package avx2 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__f32toa = 32 12 | ) 13 | 14 | const ( 15 | _stack__f32toa = 48 16 | ) 17 | 18 | const ( 19 | _size__f32toa = 3392 20 | ) 21 | 22 | var ( 23 | _pcsp__f32toa = [][2]uint32{ 24 | {1, 0}, 25 | {4, 8}, 26 | {6, 16}, 27 | {8, 24}, 28 | {10, 32}, 29 | {12, 40}, 30 | {3350, 48}, 31 | {3351, 40}, 32 | {3353, 32}, 33 | {3355, 24}, 34 | {3357, 16}, 35 | {3359, 8}, 36 | {3363, 0}, 37 | {3392, 48}, 38 | } 39 | ) 40 | 41 | var _cfunc_f32toa = []loader.CFunc{ 42 | {"_f32toa_entry", 0, _entry__f32toa, 0, nil}, 43 | {"_f32toa", _entry__f32toa, _size__f32toa, _stack__f32toa, _pcsp__f32toa}, 44 | } 45 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/avx2/vunsigned_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package avx2 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__vunsigned = 0 12 | ) 13 | 14 | const ( 15 | _stack__vunsigned = 8 16 | ) 17 | 18 | const ( 19 | _size__vunsigned = 324 20 | ) 21 | 22 | var ( 23 | _pcsp__vunsigned = [][2]uint32{ 24 | {1, 0}, 25 | {71, 8}, 26 | {72, 0}, 27 | {83, 8}, 28 | {84, 0}, 29 | {107, 8}, 30 | {108, 0}, 31 | {273, 8}, 32 | {274, 0}, 33 | {312, 8}, 34 | {313, 0}, 35 | {320, 8}, 36 | {324, 0}, 37 | } 38 | ) 39 | 40 | var _cfunc_vunsigned = []loader.CFunc{ 41 | {"_vunsigned_entry", 0, _entry__vunsigned, 0, nil}, 42 | {"_vunsigned", _entry__vunsigned, _size__vunsigned, _stack__vunsigned, _pcsp__vunsigned}, 43 | } 44 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/sse/f32toa_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package sse 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__f32toa = 16 12 | ) 13 | 14 | const ( 15 | _stack__f32toa = 48 16 | ) 17 | 18 | const ( 19 | _size__f32toa = 3328 20 | ) 21 | 22 | var ( 23 | _pcsp__f32toa = [][2]uint32{ 24 | {1, 0}, 25 | {4, 8}, 26 | {6, 16}, 27 | {8, 24}, 28 | {10, 32}, 29 | {12, 40}, 30 | {3286, 48}, 31 | {3287, 40}, 32 | {3289, 32}, 33 | {3291, 24}, 34 | {3293, 16}, 35 | {3295, 8}, 36 | {3296, 0}, 37 | {3328, 48}, 38 | } 39 | ) 40 | 41 | var _cfunc_f32toa = []loader.CFunc{ 42 | {"_f32toa_entry", 0, _entry__f32toa, 0, nil}, 43 | {"_f32toa", _entry__f32toa, _size__f32toa, _stack__f32toa, _pcsp__f32toa}, 44 | } 45 | -------------------------------------------------------------------------------- /vendor/github.com/bytedance/sonic/internal/native/sse/vunsigned_subr.go: -------------------------------------------------------------------------------- 1 | // +build !noasm !appengine 2 | // Code generated by asm2asm, DO NOT EDIT. 3 | 4 | package sse 5 | 6 | import ( 7 | `github.com/bytedance/sonic/loader` 8 | ) 9 | 10 | const ( 11 | _entry__vunsigned = 0 12 | ) 13 | 14 | const ( 15 | _stack__vunsigned = 8 16 | ) 17 | 18 | const ( 19 | _size__vunsigned = 324 20 | ) 21 | 22 | var ( 23 | _pcsp__vunsigned = [][2]uint32{ 24 | {1, 0}, 25 | {78, 8}, 26 | {79, 0}, 27 | {90, 8}, 28 | {91, 0}, 29 | {114, 8}, 30 | {115, 0}, 31 | {273, 8}, 32 | {274, 0}, 33 | {312, 8}, 34 | {313, 0}, 35 | {320, 8}, 36 | {324, 0}, 37 | } 38 | ) 39 | 40 | var _cfunc_vunsigned = []loader.CFunc{ 41 | {"_vunsigned_entry", 0, _entry__vunsigned, 0, nil}, 42 | {"_vunsigned", _entry__vunsigned, _size__vunsigned, _stack__vunsigned, _pcsp__vunsigned}, 43 | } 44 | -------------------------------------------------------------------------------- /vendor/github.com/gin-gonic/gin/binding/msgpack.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 Manu Martinez-Almeida. All rights reserved. 2 | // Use of this source code is governed by a MIT style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !nomsgpack 6 | 7 | package binding 8 | 9 | import ( 10 | "bytes" 11 | "io" 12 | "net/http" 13 | 14 | "github.com/ugorji/go/codec" 15 | ) 16 | 17 | type msgpackBinding struct{} 18 | 19 | func (msgpackBinding) Name() string { 20 | return "msgpack" 21 | } 22 | 23 | func (msgpackBinding) Bind(req *http.Request, obj any) error { 24 | return decodeMsgPack(req.Body, obj) 25 | } 26 | 27 | func (msgpackBinding) BindBody(body []byte, obj any) error { 28 | return decodeMsgPack(bytes.NewReader(body), obj) 29 | } 30 | 31 | func decodeMsgPack(r io.Reader, obj any) error { 32 | cdc := new(codec.MsgpackHandle) 33 | if err := codec.NewDecoder(r, cdc).Decode(&obj); err != nil { 34 | return err 35 | } 36 | return validate(obj) 37 | } 38 | -------------------------------------------------------------------------------- /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| --------------------------------------------------------------------------------