├── echo ├── assets │ ├── js │ │ └── index.js │ └── pages │ │ └── index.html ├── vendor │ ├── golang.org │ │ └── x │ │ │ ├── net │ │ │ ├── http2 │ │ │ │ ├── .gitignore │ │ │ │ ├── Makefile │ │ │ │ ├── not_go111.go │ │ │ │ ├── go115.go │ │ │ │ ├── not_go115.go │ │ │ │ └── go111.go │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── idna │ │ │ │ ├── pre_go118.go │ │ │ │ └── go118.go │ │ │ ├── sys │ │ │ ├── unix │ │ │ │ ├── .gitignore │ │ │ │ ├── ptrace_ios.go │ │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ │ ├── ptrace_darwin.go │ │ │ │ ├── constants.go │ │ │ │ ├── endian_big.go │ │ │ │ ├── sysvshm_unix_other.go │ │ │ │ ├── endian_little.go │ │ │ │ ├── asm_aix_ppc64.s │ │ │ │ ├── syscall_linux_gc_arm.go │ │ │ │ ├── asm_solaris_amd64.s │ │ │ │ ├── readdirent_getdents.go │ │ │ │ ├── pagesize_unix.go │ │ │ │ ├── aliases.go │ │ │ │ ├── errors_freebsd_arm64.go │ │ │ │ ├── fcntl_linux_32bit.go │ │ │ │ ├── gccgo_linux_amd64.go │ │ │ │ ├── syscall_linux_gc.go │ │ │ │ ├── syscall_linux_alarm.go │ │ │ │ ├── sockcmsg_dragonfly.go │ │ │ │ ├── sysvshm_linux.go │ │ │ │ ├── syscall_linux_gc_386.go │ │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ │ ├── race0.go │ │ │ │ ├── syscall_solaris_amd64.go │ │ │ │ ├── race.go │ │ │ │ ├── readdirent_getdirentries.go │ │ │ │ ├── zptrace_linux_arm64.go │ │ │ │ ├── str.go │ │ │ │ ├── asm_openbsd_mips64.s │ │ │ │ ├── syscall_unix_gc.go │ │ │ │ ├── bluetooth_linux.go │ │ │ │ ├── asm_bsd_arm.s │ │ │ │ ├── dev_darwin.go │ │ │ │ ├── ztypes_illumos_amd64.go │ │ │ │ ├── env_unix.go │ │ │ │ ├── asm_bsd_386.s │ │ │ │ ├── dev_aix_ppc.go │ │ │ │ ├── asm_bsd_arm64.s │ │ │ │ ├── zsyscall_darwin_amd64.1_13.s │ │ │ │ └── zsyscall_darwin_arm64.1_13.s │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ │ │ ├── text │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── secure │ │ │ │ └── bidirule │ │ │ │ ├── bidirule10.0.0.go │ │ │ │ └── bidirule9.0.0.go │ │ │ └── crypto │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── acme │ │ │ └── version_go112.go │ └── github.com │ │ ├── mattn │ │ ├── go-isatty │ │ │ ├── doc.go │ │ │ ├── go.test.sh │ │ │ ├── isatty_others.go │ │ │ ├── isatty_tcgets.go │ │ │ ├── isatty_plan9.go │ │ │ ├── isatty_bsd.go │ │ │ └── isatty_solaris.go │ │ └── go-colorable │ │ │ └── go.test.sh │ │ ├── labstack │ │ ├── gommon │ │ │ └── log │ │ │ │ ├── README.md │ │ │ │ ├── white.go │ │ │ │ └── color.go │ │ └── echo │ │ │ └── v4 │ │ │ ├── .gitignore │ │ │ ├── codecov.yml │ │ │ ├── .travis.yml │ │ │ ├── .editorconfig │ │ │ └── .gitattributes │ │ ├── valyala │ │ ├── fasttemplate │ │ │ ├── unsafe_gae.go │ │ │ └── unsafe.go │ │ └── bytebufferpool │ │ │ ├── doc.go │ │ │ └── .travis.yml │ │ └── CoderVlogger │ │ └── go-web-frameworks │ │ └── pkg │ │ └── errors.go ├── docker-compose.yml ├── cmd │ └── demoapp │ │ └── main.go ├── Makefile ├── Dockerfile ├── Notes.md ├── go.mod └── server.go ├── iris ├── assets │ ├── js │ │ └── index.js │ └── pages │ │ └── index.html ├── vendor │ ├── github.com │ │ ├── aymerick │ │ │ ├── raymond │ │ │ │ ├── VERSION │ │ │ │ ├── .gitmodules │ │ │ │ ├── raymond.png │ │ │ │ └── .travis.yml │ │ │ └── douceur │ │ │ │ └── css │ │ │ │ └── stylesheet.go │ │ ├── kataras │ │ │ ├── golog │ │ │ │ ├── .gitignore │ │ │ │ ├── screen.png │ │ │ │ ├── AUTHORS │ │ │ │ ├── .gitattributes │ │ │ │ └── .travis.yml │ │ │ ├── pio │ │ │ │ ├── .gitignore │ │ │ │ ├── .gitattributes │ │ │ │ ├── AUTHORS │ │ │ │ ├── terminal │ │ │ │ │ ├── terminal_linux.go │ │ │ │ │ ├── terminal.go │ │ │ │ │ ├── terminal_appengine.go │ │ │ │ │ ├── terminal_bsd.go │ │ │ │ │ ├── terminal_solaris.go │ │ │ │ │ └── terminal_notwindows.go │ │ │ │ └── .travis.yml │ │ │ ├── tunnel │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ └── CONTRIBUTING.md │ │ │ ├── sitemap │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── doc.go │ │ │ │ └── CONTRIBUTING.md │ │ │ ├── iris │ │ │ │ └── v12 │ │ │ │ │ ├── VERSION │ │ │ │ │ ├── AUTHORS │ │ │ │ │ ├── i18n │ │ │ │ │ └── internal │ │ │ │ │ │ └── aliases.go │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── core │ │ │ │ │ └── netutil │ │ │ │ │ │ ├── tcp_soreuse_control_wasm.go │ │ │ │ │ │ ├── tcp_soreuse_control_windows.go │ │ │ │ │ │ ├── tcp_soreuse_control_unix.go │ │ │ │ │ │ └── client.go │ │ │ │ │ ├── .fossa.yml │ │ │ │ │ ├── cache │ │ │ │ │ ├── client │ │ │ │ │ │ └── rule │ │ │ │ │ │ │ ├── rule.go │ │ │ │ │ │ │ ├── not_satisfied.go │ │ │ │ │ │ │ └── satisfied.go │ │ │ │ │ └── entry │ │ │ │ │ │ └── util.go │ │ │ │ │ ├── .deepsource.toml │ │ │ │ │ ├── .gitattributes │ │ │ │ │ └── SECURITY.md │ │ │ └── blocks │ │ │ │ ├── .travis.yml │ │ │ │ ├── .gitignore │ │ │ │ └── CONTRIBUTING.md │ │ ├── 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 │ │ │ └── concurrent │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── go_above_19.go │ │ │ │ ├── test.sh │ │ │ │ ├── log.go │ │ │ │ ├── executor.go │ │ │ │ └── go_below_19.go │ │ ├── CloudyKit │ │ │ ├── jet │ │ │ │ └── v6 │ │ │ │ │ ├── .gitignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── profile.sh │ │ │ │ │ └── stress.bash │ │ │ └── fastprinter │ │ │ │ └── README.md │ │ ├── Shopify │ │ │ └── goreferrer │ │ │ │ ├── .gitignore │ │ │ │ ├── dev.yml │ │ │ │ └── Gopkg.toml │ │ ├── flosch │ │ │ └── pongo2 │ │ │ │ └── v4 │ │ │ │ ├── .gitattributes │ │ │ │ ├── .travis.yml │ │ │ │ ├── helpers.go │ │ │ │ ├── AUTHORS │ │ │ │ ├── nodes.go │ │ │ │ ├── nodes_wrapper.go │ │ │ │ ├── pongo2.go │ │ │ │ ├── nodes_html.go │ │ │ │ ├── .gitignore │ │ │ │ ├── tags_comment.go │ │ │ │ └── options.go │ │ ├── BurntSushi │ │ │ └── toml │ │ │ │ ├── .gitignore │ │ │ │ ├── COMPATIBLE │ │ │ │ ├── decode_go116.go │ │ │ │ ├── doc.go │ │ │ │ └── deprecated.go │ │ ├── microcosm-cc │ │ │ └── bluemonday │ │ │ │ ├── .gitattributes │ │ │ │ ├── .coveralls.yml │ │ │ │ ├── .editorconfig │ │ │ │ ├── stringwriterwriter_go1.12.go │ │ │ │ ├── .gitignore │ │ │ │ ├── stringwriterwriter_ltgo1.12.go │ │ │ │ ├── CREDITS.md │ │ │ │ ├── .travis.yml │ │ │ │ └── SECURITY.md │ │ ├── schollz │ │ │ └── closestmatch │ │ │ │ ├── .travis.yml │ │ │ │ └── Makefile │ │ ├── json-iterator │ │ │ └── go │ │ │ │ ├── .codecov.yml │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── test.sh │ │ │ │ ├── build.sh │ │ │ │ ├── Gopkg.lock │ │ │ │ └── Gopkg.toml │ │ ├── tdewolff │ │ │ ├── parse │ │ │ │ └── v2 │ │ │ │ │ ├── .gitattributes │ │ │ │ │ ├── .gitignore │ │ │ │ │ └── .golangci.yml │ │ │ └── minify │ │ │ │ └── v2 │ │ │ │ ├── .gitattributes │ │ │ │ ├── .golangci.yml │ │ │ │ ├── .gitignore │ │ │ │ ├── Dockerfile │ │ │ │ └── xml │ │ │ │ └── table.go │ │ ├── yosssi │ │ │ └── ace │ │ │ │ ├── doc.go │ │ │ │ ├── file.go │ │ │ │ ├── .gitignore │ │ │ │ ├── source.go │ │ │ │ ├── result.go │ │ │ │ ├── comment.go │ │ │ │ └── empty_element.go │ │ ├── mailru │ │ │ └── easyjson │ │ │ │ ├── .gitignore │ │ │ │ ├── .travis.yml │ │ │ │ └── jlexer │ │ │ │ ├── error.go │ │ │ │ └── bytestostr_nounsafe.go │ │ ├── vmihailenco │ │ │ ├── msgpack │ │ │ │ └── v5 │ │ │ │ │ ├── package.json │ │ │ │ │ ├── .prettierrc │ │ │ │ │ ├── commitlint.config.js │ │ │ │ │ ├── version.go │ │ │ │ │ ├── Makefile │ │ │ │ │ ├── safe.go │ │ │ │ │ ├── .travis.yml │ │ │ │ │ └── unsafe.go │ │ │ └── tagparser │ │ │ │ └── v2 │ │ │ │ ├── internal │ │ │ │ ├── safe.go │ │ │ │ └── unsafe.go │ │ │ │ ├── Makefile │ │ │ │ ├── .travis.yml │ │ │ │ └── README.md │ │ ├── eknkc │ │ │ └── amber │ │ │ │ └── .travis.yml │ │ ├── russross │ │ │ └── blackfriday │ │ │ │ └── v2 │ │ │ │ ├── .gitignore │ │ │ │ └── .travis.yml │ │ ├── andybalholm │ │ │ └── brotli │ │ │ │ ├── util.go │ │ │ │ ├── README.md │ │ │ │ ├── symbol_list.go │ │ │ │ └── encoder_dict.go │ │ ├── google │ │ │ └── uuid │ │ │ │ ├── .travis.yml │ │ │ │ ├── CONTRIBUTORS │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ ├── doc.go │ │ │ │ └── node_js.go │ │ ├── josharian │ │ │ └── intern │ │ │ │ └── README.md │ │ ├── iris-contrib │ │ │ └── jade │ │ │ │ └── README.md │ │ ├── valyala │ │ │ └── bytebufferpool │ │ │ │ ├── doc.go │ │ │ │ └── .travis.yml │ │ ├── CoderVlogger │ │ │ └── go-web-frameworks │ │ │ │ └── pkg │ │ │ │ ├── errors.go │ │ │ │ └── model.go │ │ ├── fatih │ │ │ └── structs │ │ │ │ ├── .travis.yml │ │ │ │ ├── .gitignore │ │ │ │ └── tags.go │ │ ├── klauspost │ │ │ └── compress │ │ │ │ └── s2 │ │ │ │ ├── .gitignore │ │ │ │ └── decode_asm.go │ │ └── golang │ │ │ └── snappy │ │ │ ├── .gitignore │ │ │ ├── decode_asm.go │ │ │ ├── AUTHORS │ │ │ └── encode_asm.go │ ├── golang.org │ │ └── x │ │ │ ├── sys │ │ │ ├── unix │ │ │ │ ├── .gitignore │ │ │ │ ├── ptrace_ios.go │ │ │ │ ├── syscall_linux_amd64_gc.go │ │ │ │ ├── ptrace_darwin.go │ │ │ │ ├── constants.go │ │ │ │ ├── endian_big.go │ │ │ │ ├── sysvshm_unix_other.go │ │ │ │ ├── endian_little.go │ │ │ │ ├── asm_aix_ppc64.s │ │ │ │ ├── syscall_linux_gc_arm.go │ │ │ │ ├── asm_solaris_amd64.s │ │ │ │ ├── readdirent_getdents.go │ │ │ │ ├── pagesize_unix.go │ │ │ │ ├── aliases.go │ │ │ │ ├── errors_freebsd_arm64.go │ │ │ │ ├── fcntl_linux_32bit.go │ │ │ │ ├── gccgo_linux_amd64.go │ │ │ │ ├── syscall_linux_gc.go │ │ │ │ ├── syscall_linux_alarm.go │ │ │ │ ├── sockcmsg_dragonfly.go │ │ │ │ ├── sysvshm_linux.go │ │ │ │ ├── syscall_linux_gc_386.go │ │ │ │ ├── syscall_linux_gccgo_arm.go │ │ │ │ ├── race0.go │ │ │ │ ├── syscall_solaris_amd64.go │ │ │ │ ├── race.go │ │ │ │ ├── readdirent_getdirentries.go │ │ │ │ ├── zptrace_linux_arm64.go │ │ │ │ ├── str.go │ │ │ │ ├── asm_openbsd_mips64.s │ │ │ │ ├── syscall_unix_gc.go │ │ │ │ ├── bluetooth_linux.go │ │ │ │ ├── asm_bsd_arm.s │ │ │ │ ├── dev_darwin.go │ │ │ │ ├── ztypes_illumos_amd64.go │ │ │ │ ├── env_unix.go │ │ │ │ ├── asm_bsd_386.s │ │ │ │ └── dev_aix_ppc.go │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── windows │ │ │ │ ├── empty.s │ │ │ │ ├── aliases.go │ │ │ │ ├── mksyscall.go │ │ │ │ ├── race0.go │ │ │ │ ├── str.go │ │ │ │ └── race.go │ │ │ ├── net │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── idna │ │ │ │ ├── pre_go118.go │ │ │ │ └── go118.go │ │ │ ├── text │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── language │ │ │ │ └── go1_2.go │ │ │ ├── secure │ │ │ │ └── bidirule │ │ │ │ │ ├── bidirule10.0.0.go │ │ │ │ │ └── bidirule9.0.0.go │ │ │ ├── internal │ │ │ │ └── language │ │ │ │ │ ├── common.go │ │ │ │ │ └── coverage.go │ │ │ └── message │ │ │ │ └── catalog │ │ │ │ ├── go19.go │ │ │ │ └── gopre19.go │ │ │ ├── time │ │ │ ├── AUTHORS │ │ │ └── CONTRIBUTORS │ │ │ └── crypto │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ └── acme │ │ │ └── version_go112.go │ ├── gopkg.in │ │ ├── ini.v1 │ │ │ ├── .gitignore │ │ │ ├── codecov.yml │ │ │ ├── .editorconfig │ │ │ ├── Makefile │ │ │ ├── .golangci.yml │ │ │ └── helper.go │ │ └── yaml.v3 │ │ │ └── NOTICE │ └── google.golang.org │ │ └── protobuf │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── internal │ │ ├── flags │ │ │ ├── proto_legacy_disable.go │ │ │ └── proto_legacy_enable.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 │ │ ├── encoding │ │ └── protojson │ │ │ └── doc.go │ │ └── proto │ │ ├── proto_reflect.go │ │ └── proto_methods.go ├── docker-compose.yml ├── Makefile └── Dockerfile ├── _steps_by_topics ├── step_002_crud │ ├── echo │ │ └── .gitinclude │ ├── fiber │ │ └── .gitinclude │ └── iris │ │ └── .gitinclude ├── step_003_crud_paging │ ├── echo │ │ └── .gitinclude │ ├── fiber │ │ └── .gitinclude │ └── iris │ │ └── .gitinclude └── step_001_init_project │ ├── iris │ ├── server.go │ └── README.md │ ├── echo │ ├── server.go │ ├── README.md │ └── go.mod │ └── fiber │ ├── go.mod │ ├── server.go │ └── README.md ├── pkg ├── go.mod ├── README.md ├── errors.go └── model.go ├── fiber ├── internal │ ├── app │ │ └── entities │ │ │ └── entities.go │ ├── config.go │ └── demoapp.go ├── Dockerfile ├── cmd │ └── demoapp │ │ └── main.go ├── Makefile └── go.mod ├── .gitignore ├── _step_by_step ├── iris │ └── step_001_init_project │ │ ├── server.go │ │ └── README.md ├── echo │ └── step_001_init_project │ │ ├── server.go │ │ ├── README.md │ │ └── go.mod └── fiber │ ├── step_001_init_project │ ├── go.mod │ ├── server.go │ └── README.md │ └── step_002_crud_api │ ├── README.md │ └── go.mod ├── STRUCTURE.md └── .github └── FUNDING.yml /echo/assets/js/index.js: -------------------------------------------------------------------------------- 1 | console.log("demo") -------------------------------------------------------------------------------- /iris/assets/js/index.js: -------------------------------------------------------------------------------- 1 | console.log("demo") -------------------------------------------------------------------------------- /_steps_by_topics/step_002_crud/echo/.gitinclude: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_steps_by_topics/step_002_crud/fiber/.gitinclude: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_steps_by_topics/step_002_crud/iris/.gitinclude: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_steps_by_topics/step_003_crud_paging/echo/.gitinclude: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_steps_by_topics/step_003_crud_paging/fiber/.gitinclude: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /_steps_by_topics/step_003_crud_paging/iris/.gitinclude: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/aymerick/raymond/VERSION: -------------------------------------------------------------------------------- 1 | 2.0.2 2 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/golog/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/.gitignore: -------------------------------------------------------------------------------- 1 | go.sum 2 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/reflect2_amd64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/relfect2_386.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/relfect2_arm.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/relfect2_arm64.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/relfect2_mipsx.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/relfect2_s390x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/tunnel/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/relfect2_amd64p32.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/relfect2_mips64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/relfect2_ppc64x.s: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/.gitignore: -------------------------------------------------------------------------------- 1 | _obj/ 2 | unix.test 3 | -------------------------------------------------------------------------------- /iris/vendor/github.com/CloudyKit/jet/v6/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .idea -------------------------------------------------------------------------------- /iris/vendor/github.com/Shopify/goreferrer/.gitignore: -------------------------------------------------------------------------------- 1 | vendor/ 2 | .DS_Store -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/sitemap/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | # go.sum -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/concurrent/.gitignore: -------------------------------------------------------------------------------- 1 | /coverage.txt 2 | -------------------------------------------------------------------------------- /iris/vendor/github.com/BurntSushi/toml/.gitignore: -------------------------------------------------------------------------------- 1 | toml.test 2 | /toml-test 3 | -------------------------------------------------------------------------------- /iris/vendor/github.com/modern-go/reflect2/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /coverage.txt 3 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | -------------------------------------------------------------------------------- /pkg/go.mod: -------------------------------------------------------------------------------- 1 | module github.com/CoderVlogger/go-web-frameworks/pkg 2 | 3 | go 1.16 4 | -------------------------------------------------------------------------------- /iris/vendor/github.com/schollz/closestmatch/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8 -------------------------------------------------------------------------------- /iris/vendor/github.com/json-iterator/go/.codecov.yml: -------------------------------------------------------------------------------- 1 | ignore: 2 | - "output_tests/.*" 3 | 4 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/VERSION: -------------------------------------------------------------------------------- 1 | master:https://github.com/kataras/iris/tree/master -------------------------------------------------------------------------------- /iris/vendor/github.com/tdewolff/parse/v2/.gitattributes: -------------------------------------------------------------------------------- 1 | tests/*/corpus/* linguist-generated 2 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /iris/vendor/github.com/json-iterator/go/.gitignore: -------------------------------------------------------------------------------- 1 | /vendor 2 | /bug_test.go 3 | /coverage.txt 4 | /.idea 5 | -------------------------------------------------------------------------------- /iris/vendor/github.com/schollz/closestmatch/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: test 2 | test: 3 | go test -cover -run=. 4 | -------------------------------------------------------------------------------- /fiber/internal/app/entities/entities.go: -------------------------------------------------------------------------------- 1 | package entities 2 | 3 | type Service interface { 4 | List() 5 | } 6 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: x2wlA1x0X8CK45ybWpZRCVRB4g7vtkhaw 2 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | end_of_line = lf 5 | -------------------------------------------------------------------------------- /iris/vendor/github.com/yosssi/ace/doc.go: -------------------------------------------------------------------------------- 1 | // Package ace provides an HTML template engine. 2 | package ace 3 | -------------------------------------------------------------------------------- /echo/vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /iris/vendor/github.com/mailru/easyjson/.gitignore: -------------------------------------------------------------------------------- 1 | .root 2 | *_easyjson.go 3 | *.iml 4 | .idea 5 | *.swp 6 | bin/* 7 | -------------------------------------------------------------------------------- /iris/vendor/github.com/BurntSushi/toml/COMPATIBLE: -------------------------------------------------------------------------------- 1 | Compatible with TOML version [v1.0.0](https://toml.io/en/v1.0.0). 2 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/blocks/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | os: 3 | - linux 4 | - osx 5 | go: 6 | - 1.15.x 7 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/msgpack/v5/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "msgpack", 3 | "version": "5.3.5" 4 | } 5 | -------------------------------------------------------------------------------- /iris/vendor/github.com/eknkc/amber/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - tip 5 | 6 | script: 7 | - go test -v ./... 8 | -------------------------------------------------------------------------------- /echo/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.1' 2 | 3 | services: 4 | demoapp: 5 | build: . 6 | ports: 7 | - 8080:8080 8 | -------------------------------------------------------------------------------- /echo/vendor/github.com/labstack/gommon/log/README.md: -------------------------------------------------------------------------------- 1 | ## WORK IN PROGRESS 2 | 3 | ### Usage 4 | 5 | [log_test.go](log_test.go) 6 | -------------------------------------------------------------------------------- /iris/docker-compose.yml: -------------------------------------------------------------------------------- 1 | version: '3.1' 2 | 3 | services: 4 | demoapp: 5 | build: . 6 | ports: 7 | - 8080:8080 8 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/blocks/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | /_examples/test-* 3 | /_examples/issue-* 4 | /_examples/feature-* 5 | -------------------------------------------------------------------------------- /echo/cmd/demoapp/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import "fmt" 4 | 5 | func main() { 6 | fmt.Println("yet another empty app") 7 | } 8 | -------------------------------------------------------------------------------- /iris/vendor/github.com/russross/blackfriday/v2/.gitignore: -------------------------------------------------------------------------------- 1 | *.out 2 | *.swp 3 | *.8 4 | *.6 5 | _obj 6 | _test* 7 | markdown 8 | tags 9 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/msgpack/v5/.prettierrc: -------------------------------------------------------------------------------- 1 | semi: false 2 | singleQuote: true 3 | proseWrap: always 4 | printWidth: 100 5 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/msgpack/v5/commitlint.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { extends: ['@commitlint/config-conventional'] } 2 | -------------------------------------------------------------------------------- /iris/vendor/github.com/CloudyKit/fastprinter/README.md: -------------------------------------------------------------------------------- 1 | # fastprinter 2 | FastPrinter supports write values in io.Writer without allocation 3 | -------------------------------------------------------------------------------- /iris/vendor/github.com/tdewolff/minify/v2/.gitattributes: -------------------------------------------------------------------------------- 1 | benchmarks/sample_* linguist-generated 2 | tests/*/corpus/* linguist-generated 3 | -------------------------------------------------------------------------------- /echo/vendor/github.com/labstack/echo/v4/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | coverage.txt 3 | _test 4 | vendor 5 | .idea 6 | *.iml 7 | *.out 8 | .vscode 9 | -------------------------------------------------------------------------------- /iris/vendor/github.com/aymerick/raymond/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "mustache"] 2 | path = mustache 3 | url = git://github.com/mustache/spec.git 4 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go linguist-language=Go 2 | vendor/* linguist-vendored 3 | _examples/* linguist-documentation -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/tunnel/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | os: 3 | - linux 4 | - osx 5 | go: 6 | - 1.15.x 7 | - 1.16.x 8 | - 1.17.x -------------------------------------------------------------------------------- /pkg/README.md: -------------------------------------------------------------------------------- 1 | # `pkg` shared Go code 2 | 3 | The `pkg` folder is a separate Go package that contains a shared code for errors, models, and storage layer. 4 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/golog/screen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderVlogger/go-web-frameworks/HEAD/iris/vendor/github.com/kataras/golog/screen.png -------------------------------------------------------------------------------- /iris/vendor/github.com/andybalholm/brotli/util.go: -------------------------------------------------------------------------------- 1 | package brotli 2 | 3 | func assert(cond bool) { 4 | if !cond { 5 | panic("assertion failure") 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /iris/vendor/github.com/aymerick/raymond/raymond.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/CoderVlogger/go-web-frameworks/HEAD/iris/vendor/github.com/aymerick/raymond/raymond.png -------------------------------------------------------------------------------- /iris/vendor/github.com/google/uuid/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.4.3 5 | - 1.5.3 6 | - tip 7 | 8 | script: 9 | - go test -v ./... 10 | -------------------------------------------------------------------------------- /iris/vendor/github.com/tdewolff/parse/v2/.gitignore: -------------------------------------------------------------------------------- 1 | tests/*/fuzz-fuzz.zip 2 | tests/*/crashers 3 | tests/*/suppressions 4 | tests/*/corpus/* 5 | !tests/*/corpus/*.* 6 | -------------------------------------------------------------------------------- /iris/vendor/github.com/aymerick/raymond/.travis.yml: -------------------------------------------------------------------------------- 1 | --- 2 | language: go 3 | 4 | go: 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | - 1.6 9 | - 1.7 10 | - tip 11 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of PIO authors for copyright 2 | # purposes. 3 | 4 | Gerasimos Maropoulos -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/golog/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of golog authors for copyright 2 | # purposes. 3 | 4 | Gerasimos Maropoulos -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Iris authors for copyright 2 | # purposes. 3 | 4 | Gerasimos Maropoulos 5 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/msgpack/v5/version.go: -------------------------------------------------------------------------------- 1 | package msgpack 2 | 3 | // Version is the current release version. 4 | func Version() string { 5 | return "5.3.5" 6 | } 7 | -------------------------------------------------------------------------------- /iris/vendor/gopkg.in/ini.v1/.gitignore: -------------------------------------------------------------------------------- 1 | testdata/conf_out.ini 2 | ini.sublime-project 3 | ini.sublime-workspace 4 | testdata/conf_reflect.ini 5 | .idea 6 | /.vscode 7 | .DS_Store 8 | -------------------------------------------------------------------------------- /iris/vendor/github.com/josharian/intern/README.md: -------------------------------------------------------------------------------- 1 | Docs: https://godoc.org/github.com/josharian/intern 2 | 3 | See also [Go issue 5160](https://golang.org/issue/5160). 4 | 5 | License: MIT 6 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/gopkg.in/ini.v1/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | range: "60...95" 3 | status: 4 | project: 5 | default: 6 | threshold: 1% 7 | 8 | comment: 9 | layout: 'diff' 10 | -------------------------------------------------------------------------------- /iris/vendor/github.com/CloudyKit/jet/v6/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - "1.13.x" 4 | - "1.14.x" 5 | - "1.15.x" 6 | - "tip" 7 | 8 | script: 9 | - env GO111MODULE=on go test -v ./... 10 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | arch: 3 | - AMD64 4 | - ppc64le 5 | os: 6 | - linux 7 | - osx 8 | go: 9 | - 1.12 10 | script: 11 | - go test -v 12 | -------------------------------------------------------------------------------- /echo/vendor/github.com/labstack/gommon/log/white.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package log 4 | 5 | import ( 6 | "io" 7 | "os" 8 | ) 9 | 10 | func output() io.Writer { 11 | return os.Stdout 12 | } 13 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/msgpack/v5/Makefile: -------------------------------------------------------------------------------- 1 | test: 2 | go test ./... 3 | go test ./... -short -race 4 | go test ./... -run=NONE -bench=. -benchmem 5 | env GOOS=linux GOARCH=386 go test ./... 6 | go vet 7 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/net/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/net/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/text/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/time/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/i18n/internal/aliases.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | // Map is just an alias of the map[string]interface{} type. 4 | // Just like the iris.Map one. 5 | type Map = map[string]interface{} 6 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/crypto/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/crypto/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/text/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/time/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/google.golang.org/protobuf/AUTHORS: -------------------------------------------------------------------------------- 1 | # This source code refers to The Go Authors for copyright purposes. 2 | # The master list of authors is in the main Go distribution, 3 | # visible at https://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/terminal/terminal_linux.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package terminal 4 | 5 | import "syscall" 6 | 7 | const ioctlReadTermios = syscall.TCGETS 8 | 9 | type Termios syscall.Termios 10 | -------------------------------------------------------------------------------- /iris/vendor/google.golang.org/protobuf/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | # This source code was written by the Go contributors. 2 | # The master list of contributors is in the main Go distribution, 3 | # visible at https://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /echo/vendor/github.com/labstack/echo/v4/codecov.yml: -------------------------------------------------------------------------------- 1 | coverage: 2 | status: 3 | project: 4 | default: 5 | threshold: 1% 6 | patch: 7 | default: 8 | threshold: 1% 9 | 10 | comment: 11 | require_changes: true -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/terminal/terminal.go: -------------------------------------------------------------------------------- 1 | package terminal 2 | 3 | // SupportColors reports whether a windows terminal platform can support 256 colors. 4 | // See terminal_windows.go#init for further details. 5 | var SupportColors = true 6 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/stringwriterwriter_go1.12.go: -------------------------------------------------------------------------------- 1 | //go:build go1.12 2 | // +build go1.12 3 | 4 | package bluemonday 5 | 6 | import "io" 7 | 8 | type stringWriterWriter interface { 9 | io.Writer 10 | io.StringWriter 11 | } 12 | -------------------------------------------------------------------------------- /echo/vendor/github.com/labstack/gommon/log/color.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package log 4 | 5 | import ( 6 | "io" 7 | 8 | "github.com/mattn/go-colorable" 9 | ) 10 | 11 | func output() io.Writer { 12 | return colorable.NewColorableStdout() 13 | } 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/helpers.go: -------------------------------------------------------------------------------- 1 | package pongo2 2 | 3 | func max(a, b int) int { 4 | if a > b { 5 | return a 6 | } 7 | return b 8 | } 9 | 10 | func min(a, b int) int { 11 | if a < b { 12 | return a 13 | } 14 | return b 15 | } 16 | -------------------------------------------------------------------------------- /iris/vendor/github.com/iris-contrib/jade/README.md: -------------------------------------------------------------------------------- 1 | # Jade(Pug) Parser 2 | 3 | Read more about its syntax at: https://github.com/iris-contrib/jade. 4 | 5 | Fixes: 6 | 7 | - https://github.com/iris-contrib/jade/issues/33 8 | - https://github.com/kataras/iris/issues/1450 9 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/.gitignore: -------------------------------------------------------------------------------- 1 | .vscode 2 | .directory 3 | coverage.out 4 | package-lock.json 5 | access.log 6 | node_modules 7 | issue-*/ 8 | internalcode-*/ 9 | /_examples/feature-*/ 10 | _examples/**/uploads/* 11 | _issues/** 12 | .DS_STORE 13 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/core/netutil/tcp_soreuse_control_wasm.go: -------------------------------------------------------------------------------- 1 | //go:build wasm 2 | // +build wasm 3 | 4 | package netutil 5 | 6 | import "syscall" 7 | 8 | func control(network, address string, c syscall.RawConn) error { 9 | return nil 10 | } 11 | -------------------------------------------------------------------------------- /iris/vendor/github.com/mailru/easyjson/.travis.yml: -------------------------------------------------------------------------------- 1 | arch: 2 | - amd64 3 | - ppc64le 4 | language: go 5 | 6 | go: 7 | - tip 8 | - stable 9 | 10 | matrix: 11 | allow_failures: 12 | - go: tip 13 | 14 | install: 15 | - go get golang.org/x/lint/golint 16 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/tagparser/v2/internal/safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package internal 4 | 5 | func BytesToString(b []byte) string { 6 | return string(b) 7 | } 8 | 9 | func StringToBytes(s string) []byte { 10 | return []byte(s) 11 | } 12 | -------------------------------------------------------------------------------- /echo/vendor/github.com/valyala/fasttemplate/unsafe_gae.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package fasttemplate 4 | 5 | func unsafeBytes2String(b []byte) string { 6 | return string(b) 7 | } 8 | 9 | func unsafeString2Bytes(s string) []byte { 10 | return []byte(s) 11 | } 12 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/gopkg.in/ini.v1/.editorconfig: -------------------------------------------------------------------------------- 1 | # http://editorconfig.org 2 | 3 | root = true 4 | 5 | [*] 6 | charset = utf-8 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | 11 | [*_test.go] 12 | trim_trailing_whitespace = false 13 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/terminal/terminal_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package terminal 4 | 5 | import "io" 6 | 7 | // IsTerminal returns true if stderr's file descriptor is a terminal. 8 | func IsTerminal(f io.Writer) bool { 9 | return true 10 | } 11 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/terminal/terminal_bsd.go: -------------------------------------------------------------------------------- 1 | // +build darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package terminal 5 | 6 | import "syscall" 7 | 8 | const ioctlReadTermios = syscall.TIOCGETA 9 | 10 | type Termios syscall.Termios 11 | -------------------------------------------------------------------------------- /echo/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: run 2 | run: 3 | go run . 4 | 5 | .PHONY: modsync 6 | modsync: 7 | go get -u 8 | go mod tidy 9 | go mod vendor 10 | 11 | .PHONY: docker 12 | docker: modsync 13 | docker build -t echo-demoapp . 14 | docker run --rm -it -p 8080:8080 echo-demoapp:latest 15 | -------------------------------------------------------------------------------- /iris/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: run 2 | run: 3 | go run . 4 | 5 | .PHONY: modsync 6 | modsync: 7 | go get -u 8 | go mod tidy 9 | go mod vendor 10 | 11 | .PHONY: docker 12 | docker: modsync 13 | docker build -t iris-demoapp . 14 | docker run --rm -it -p 8080:8080 iris-demoapp:latest 15 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/.fossa.yml: -------------------------------------------------------------------------------- 1 | version: 2 2 | cli: 3 | server: https://app.fossa.com 4 | fetcher: custom 5 | project: https://github.com/kataras/iris.git 6 | analyze: 7 | modules: 8 | - name: iris 9 | type: go 10 | target: . 11 | path: . -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/cache/client/rule/rule.go: -------------------------------------------------------------------------------- 1 | package rule 2 | 3 | import "github.com/kataras/iris/v12/context" 4 | 5 | // Rule a superset of validators 6 | type Rule interface { 7 | Claim(ctx *context.Context) bool 8 | Valid(ctx *context.Context) bool 9 | } 10 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:1.17 AS builder 2 | RUN apt-get update 3 | ENV GO111MODULE=on \ 4 | CGO_ENABLED=0 \ 5 | GOOS=linux \ 6 | GOARCH=amd64 7 | WORKDIR /go/src/demoapp 8 | COPY . . 9 | RUN go install 10 | 11 | FROM scratch 12 | COPY --from=builder /go/bin/demoapp . 13 | ENTRYPOINT ["./demoapp"] 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/tagparser/v2/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | go test ./... 3 | go test ./... -short -race 4 | go test ./... -run=NONE -bench=. -benchmem 5 | env GOOS=linux GOARCH=386 go test ./... 6 | go vet ./... 7 | go get github.com/gordonklaus/ineffassign 8 | ineffassign . 9 | golangci-lint run 10 | -------------------------------------------------------------------------------- /echo/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:latest AS builder 2 | RUN apt-get update 3 | ENV GO111MODULE=on \ 4 | CGO_ENABLED=0 \ 5 | GOOS=linux \ 6 | GOARCH=amd64 7 | WORKDIR /go/src/demoapp 8 | COPY . . 9 | RUN go install 10 | 11 | FROM scratch 12 | COPY --from=builder /go/bin/demoapp . 13 | ENTRYPOINT ["./demoapp"] 14 | -------------------------------------------------------------------------------- /fiber/Dockerfile: -------------------------------------------------------------------------------- 1 | FROM golang:latest AS builder 2 | RUN apt-get update 3 | ENV GO111MODULE=on \ 4 | CGO_ENABLED=0 \ 5 | GOOS=linux \ 6 | GOARCH=amd64 7 | WORKDIR /go/src/demoapp 8 | COPY . . 9 | RUN go install 10 | 11 | FROM scratch 12 | COPY --from=builder /go/bin/demoapp . 13 | ENTRYPOINT ["./demoapp"] 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/tdewolff/minify/v2/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - depguard 4 | - dogsled 5 | - gofmt 6 | - goimports 7 | - golint 8 | - gosec 9 | - govet 10 | - megacheck 11 | - misspell 12 | - nakedret 13 | - prealloc 14 | - unconvert 15 | - unparam 16 | - wastedassign 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/tdewolff/parse/v2/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters: 2 | enable: 3 | - depguard 4 | - dogsled 5 | - gofmt 6 | - goimports 7 | - golint 8 | - gosec 9 | - govet 10 | - megacheck 11 | - misspell 12 | - nakedret 13 | - prealloc 14 | - unconvert 15 | - unparam 16 | - wastedassign 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/CloudyKit/jet/v6/profile.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | go test -run="^$" -bench="Range" -benchmem -c -cpuprofile=./pprof.out 4 | go test -run="^$" -bench="Range" -benchmem -cpuprofile=./pprof.out 5 | go tool pprof --pdf --focus="$1" jet.test pprof.out >> out.pdf 6 | rm jet.test 7 | rm pprof.out 8 | open out.pdf -------------------------------------------------------------------------------- /iris/vendor/github.com/CloudyKit/jet/v6/stress.bash: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash -e 2 | 3 | go test -c 4 | # comment above and uncomment below to enable the race builder 5 | #go test -c -race 6 | PKG=$(basename $(pwd)) 7 | 8 | while true ; do 9 | export GOMAXPROCS=$[ 1 + $[ RANDOM % 128 ]] 10 | ./$PKG.test $@ 2>&1 11 | done -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/yosssi/ace/file.go: -------------------------------------------------------------------------------- 1 | package ace 2 | 3 | // File represents a file. 4 | type File struct { 5 | path string 6 | data []byte 7 | } 8 | 9 | // NewFile creates and returns a file. 10 | func NewFile(path string, data []byte) *File { 11 | return &File{ 12 | path: path, 13 | data: data, 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /pkg/errors.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | 3 | import "fmt" 4 | 5 | var ( 6 | ErrEntityAlreadyExists = fmt.Errorf("entity already exists") 7 | ErrEntityIDNotProvided = fmt.Errorf("entity id not provided") 8 | ErrEntityNotFound = fmt.Errorf("entity not found") 9 | ErrEntityOutOfRange = fmt.Errorf("entity out of range") 10 | ) 11 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/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 | // +build !protolegacy 6 | 7 | package flags 8 | 9 | const protoLegacy = false 10 | -------------------------------------------------------------------------------- /iris/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 | // +build protolegacy 6 | 7 | package flags 8 | 9 | const protoLegacy = true 10 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/.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 | # goland idea folder 15 | *.idea -------------------------------------------------------------------------------- /iris/vendor/gopkg.in/ini.v1/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build test bench vet coverage 2 | 3 | build: vet bench 4 | 5 | test: 6 | go test -v -cover -race 7 | 8 | bench: 9 | go test -v -cover -test.bench=. -test.benchmem 10 | 11 | vet: 12 | go vet 13 | 14 | coverage: 15 | go test -coverprofile=c.out && go tool cover -html=c.out && rm c.out 16 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/AUTHORS: -------------------------------------------------------------------------------- 1 | Main author and maintainer of pongo2: 2 | 3 | * Florian Schlachter 4 | 5 | Contributors (in no specific order): 6 | 7 | * @romanoaugusto88 8 | * @vitalbh 9 | * @blaubaer 10 | 11 | Feel free to add yourself to the list or to modify your entry if you did a contribution. 12 | -------------------------------------------------------------------------------- /echo/vendor/github.com/valyala/bytebufferpool/doc.go: -------------------------------------------------------------------------------- 1 | // Package bytebufferpool implements a pool of byte buffers 2 | // with anti-fragmentation protection. 3 | // 4 | // The pool may waste limited amount of memory due to fragmentation. 5 | // This amount equals to the maximum total size of the byte buffers 6 | // in concurrent use. 7 | package bytebufferpool 8 | -------------------------------------------------------------------------------- /iris/vendor/github.com/Shopify/goreferrer/dev.yml: -------------------------------------------------------------------------------- 1 | name: goreferrer 2 | 3 | up: 4 | - go: 1.9.2 5 | - custom: 6 | name: Setup go dependencies 7 | meet: echo 'dep failed to install packages'; false 8 | met?: dep ensure -v 9 | 10 | commands: 11 | test: 12 | run: go get -t ./... && go test ./... 13 | desc: 'run unit tests' 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/valyala/bytebufferpool/doc.go: -------------------------------------------------------------------------------- 1 | // Package bytebufferpool implements a pool of byte buffers 2 | // with anti-fragmentation protection. 3 | // 4 | // The pool may waste limited amount of memory due to fragmentation. 5 | // This amount equals to the maximum total size of the byte buffers 6 | // in concurrent use. 7 | package bytebufferpool 8 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/text/language/go1_2.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 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.2 6 | // +build go1.2 7 | 8 | package language 9 | 10 | import "sort" 11 | 12 | var sortStable = sort.Stable 13 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/.deepsource.toml: -------------------------------------------------------------------------------- 1 | version = 1 2 | 3 | test_patterns = ["**/*_test.go"] 4 | 5 | exclude_patterns = [ 6 | "_examples/**", 7 | "_benchmarks/**", 8 | ".github/**" 9 | ] 10 | 11 | [[analyzers]] 12 | name = "go" 13 | enabled = true 14 | 15 | [analyzers.meta] 16 | import_paths = ["github.com/kataras/iris"] 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/msgpack/v5/safe.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package msgpack 4 | 5 | // bytesToString converts byte slice to string. 6 | func bytesToString(b []byte) string { 7 | return string(b) 8 | } 9 | 10 | // stringToBytes converts string to byte slice. 11 | func stringToBytes(s string) []byte { 12 | return []byte(s) 13 | } 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/stringwriterwriter_ltgo1.12.go: -------------------------------------------------------------------------------- 1 | //go:build go1.1 && !go1.12 2 | // +build go1.1,!go1.12 3 | 4 | package bluemonday 5 | 6 | import "io" 7 | 8 | type stringWriterWriter interface { 9 | io.Writer 10 | StringWriter 11 | } 12 | 13 | type StringWriter interface { 14 | WriteString(s string) (n int, err error) 15 | } 16 | -------------------------------------------------------------------------------- /.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 | .vscode 18 | 19 | -------------------------------------------------------------------------------- /echo/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 | -------------------------------------------------------------------------------- /echo/vendor/github.com/mattn/go-colorable/go.test.sh: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | echo "" > coverage.txt 5 | 6 | for d in $(go list ./... | grep -v vendor); do 7 | go test -race -coverprofile=profile.out -covermode=atomic "$d" 8 | if [ -f profile.out ]; then 9 | cat profile.out >> coverage.txt 10 | rm profile.out 11 | fi 12 | done 13 | -------------------------------------------------------------------------------- /echo/vendor/github.com/valyala/bytebufferpool/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.6 5 | 6 | script: 7 | # build test for supported platforms 8 | - GOOS=linux go build 9 | - GOOS=darwin go build 10 | - GOOS=freebsd go build 11 | - GOOS=windows go build 12 | - GOARCH=386 go build 13 | 14 | # run tests on a standard platform 15 | - go test -v ./... 16 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/valyala/bytebufferpool/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.6 5 | 6 | script: 7 | # build test for supported platforms 8 | - GOOS=linux go build 9 | - GOOS=darwin go build 10 | - GOOS=freebsd go build 11 | - GOOS=windows go build 12 | - GOARCH=386 go build 13 | 14 | # run tests on a standard platform 15 | - go test -v ./... 16 | -------------------------------------------------------------------------------- /_step_by_step/iris/step_001_init_project/server.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/kataras/iris/v12" 7 | ) 8 | 9 | func main() { 10 | fmt.Println("Hello, Iris!") 11 | 12 | app := iris.New() 13 | 14 | app.Get("/", func(ctx iris.Context) { 15 | ctx.WriteString("Hello, Iris!") 16 | }) 17 | 18 | app.Logger().Fatal(app.Listen(":8080")) 19 | } 20 | -------------------------------------------------------------------------------- /echo/vendor/github.com/CoderVlogger/go-web-frameworks/pkg/errors.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | 3 | import "fmt" 4 | 5 | var ( 6 | ErrEntityAlreadyExists = fmt.Errorf("entity already exists") 7 | ErrEntityIDNotProvided = fmt.Errorf("entity id not provided") 8 | ErrEntityNotFound = fmt.Errorf("entity not found") 9 | ErrEntityOutOfRange = fmt.Errorf("entity out of range") 10 | ) 11 | -------------------------------------------------------------------------------- /iris/vendor/github.com/CoderVlogger/go-web-frameworks/pkg/errors.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | 3 | import "fmt" 4 | 5 | var ( 6 | ErrEntityAlreadyExists = fmt.Errorf("entity already exists") 7 | ErrEntityIDNotProvided = fmt.Errorf("entity id not provided") 8 | ErrEntityNotFound = fmt.Errorf("entity not found") 9 | ErrEntityOutOfRange = fmt.Errorf("entity out of range") 10 | ) 11 | -------------------------------------------------------------------------------- /_steps_by_topics/step_001_init_project/iris/server.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/kataras/iris/v12" 7 | ) 8 | 9 | func main() { 10 | fmt.Println("Hello, Iris!") 11 | 12 | app := iris.New() 13 | 14 | app.Get("/", func(ctx iris.Context) { 15 | ctx.WriteString("Hello, Iris!") 16 | }) 17 | 18 | app.Logger().Fatal(app.Listen(":8080")) 19 | } 20 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/ptrace_ios.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build ios 6 | // +build ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) (err error) { 11 | return ENOTSUP 12 | } 13 | -------------------------------------------------------------------------------- /iris/vendor/github.com/google/uuid/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # How to contribute 2 | 3 | We definitely welcome patches and contribution to this project! 4 | 5 | ### Legal requirements 6 | 7 | In order to protect both you and ourselves, you will need to sign the 8 | [Contributor License Agreement](https://cla.developers.google.com/clas). 9 | 10 | You may have already signed it for other Google projects. 11 | -------------------------------------------------------------------------------- /iris/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) -------------------------------------------------------------------------------- /iris/vendor/github.com/fatih/structs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.7.x 4 | - 1.8.x 5 | - 1.9.x 6 | - tip 7 | sudo: false 8 | before_install: 9 | - go get github.com/axw/gocov/gocov 10 | - go get github.com/mattn/goveralls 11 | - if ! go get github.com/golang/tools/cmd/cover; then go get golang.org/x/tools/cmd/cover; fi 12 | script: 13 | - $HOME/gopath/bin/goveralls -service=travis-ci 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/nodes.go: -------------------------------------------------------------------------------- 1 | package pongo2 2 | 3 | // The root document 4 | type nodeDocument struct { 5 | Nodes []INode 6 | } 7 | 8 | func (doc *nodeDocument) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error { 9 | for _, n := range doc.Nodes { 10 | err := n.Execute(ctx, writer) 11 | if err != nil { 12 | return err 13 | } 14 | } 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | os: 4 | - linux 5 | - osx 6 | go: 7 | - 1.14.x 8 | - 1.15.x 9 | go_import_path: github.com/kataras/pio 10 | install: 11 | - go get ./... 12 | script: 13 | - go test -v -race -cover ./... 14 | after_script: 15 | # examples 16 | - cd ./_examples 17 | - go get ./... 18 | - go test -v -race -cover ./... 19 | -------------------------------------------------------------------------------- /echo/Notes.md: -------------------------------------------------------------------------------- 1 | Open topics: 2 | 3 | - How to use model without adding tags? 4 | - How to redirect with custom HTTP Method (defaults to "POST")? 5 | - Org url structure when BE API and FE served from the same app 6 | - Refactor API urls (maybe group them) 7 | 8 | 9 | API: 10 | 11 | /api 12 | 13 | Static / Assets: 14 | 15 | /static 16 | 17 | Front-end / Website: 18 | 19 | / 20 | 21 | 22 | -------------------------------------------------------------------------------- /iris/vendor/github.com/fatih/structs/.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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/tdewolff/minify/v2/.gitignore: -------------------------------------------------------------------------------- 1 | release.sh 2 | dist/ 3 | benchmarks/* 4 | !benchmarks/*.go 5 | !benchmarks/sample_* 6 | tests/*/fuzz-fuzz.zip 7 | tests/*/crashers 8 | tests/*/suppressions 9 | tests/*/corpus/* 10 | !tests/*/corpus/*.* 11 | parse/tests/*/fuzz-fuzz.zip 12 | parse/tests/*/crashers 13 | parse/tests/*/suppressions 14 | parse/tests/*/corpus/* 15 | !parse/tests/*/corpus/*.* 16 | -------------------------------------------------------------------------------- /iris/vendor/github.com/tdewolff/minify/v2/Dockerfile: -------------------------------------------------------------------------------- 1 | # Use this image to build the executable 2 | FROM golang:1.16-alpine AS compiler 3 | 4 | RUN apk add --no-cache git ca-certificates 5 | 6 | WORKDIR $GOPATH/src/minify 7 | COPY . . 8 | 9 | RUN make install 10 | 11 | # Final image containing the executable from the previous step 12 | FROM alpine:3 13 | 14 | COPY --from=compiler /bin/minify /bin/minify 15 | -------------------------------------------------------------------------------- /iris/vendor/github.com/yosssi/ace/.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 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/windows/empty.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.12 6 | // +build !go1.12 7 | 8 | // This file is here to allow bodyless functions with go:linkname for Go 1.11 9 | // and earlier (see https://golang.org/issue/23311). 10 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/nodes_wrapper.go: -------------------------------------------------------------------------------- 1 | package pongo2 2 | 3 | type NodeWrapper struct { 4 | Endtag string 5 | nodes []INode 6 | } 7 | 8 | func (wrapper *NodeWrapper) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error { 9 | for _, n := range wrapper.nodes { 10 | err := n.Execute(ctx, writer) 11 | if err != nil { 12 | return err 13 | } 14 | } 15 | return nil 16 | } 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/core/netutil/tcp_soreuse_control_windows.go: -------------------------------------------------------------------------------- 1 | package netutil 2 | 3 | import ( 4 | "syscall" 5 | 6 | "golang.org/x/sys/windows" 7 | ) 8 | 9 | func control(network, address string, c syscall.RawConn) (err error) { 10 | return c.Control(func(fd uintptr) { 11 | err = windows.SetsockoptInt(windows.Handle(fd), windows.SOL_SOCKET, windows.SO_REUSEADDR, 1) 12 | }) 13 | } 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/tdewolff/minify/v2/xml/table.go: -------------------------------------------------------------------------------- 1 | package xml 2 | 3 | // EntitiesMap are all named character entities. 4 | var EntitiesMap = map[string][]byte{ 5 | "apos": []byte("'"), 6 | "gt": []byte(">"), 7 | "quot": []byte("\""), 8 | } 9 | 10 | // TextRevEntitiesMap is a map of escapes. 11 | var TextRevEntitiesMap = map[byte][]byte{ 12 | '<': []byte("<"), 13 | '&': []byte("&"), 14 | } 15 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/windows/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && go1.9 6 | // +build windows,go1.9 7 | 8 | package windows 9 | 10 | import "syscall" 11 | 12 | type Errno = syscall.Errno 13 | type SysProcAttr = syscall.SysProcAttr 14 | -------------------------------------------------------------------------------- /iris/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 | // +build go1.13 6 | 7 | package errors 8 | 9 | import "errors" 10 | 11 | // Is is errors.Is. 12 | func Is(err, target error) bool { return errors.Is(err, target) } 13 | -------------------------------------------------------------------------------- /_step_by_step/echo/step_001_init_project/server.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | 7 | "github.com/labstack/echo/v4" 8 | ) 9 | 10 | func main() { 11 | fmt.Println("Hello, World!") 12 | 13 | app := echo.New() 14 | 15 | app.GET("/", func(c echo.Context) error { 16 | return c.String(http.StatusOK, "Hello, Echo!") 17 | }) 18 | 19 | app.Logger.Fatal(app.Start(":8080")) 20 | } 21 | -------------------------------------------------------------------------------- /_steps_by_topics/step_001_init_project/echo/server.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | "net/http" 6 | 7 | "github.com/labstack/echo/v4" 8 | ) 9 | 10 | func main() { 11 | fmt.Println("Hello, World!") 12 | 13 | app := echo.New() 14 | 15 | app.GET("/", func(c echo.Context) error { 16 | return c.String(http.StatusOK, "Hello, Echo!") 17 | }) 18 | 19 | app.Logger.Fatal(app.Start(":8080")) 20 | } 21 | -------------------------------------------------------------------------------- /echo/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 | // +build !go1.18 9 | 10 | package idna 11 | 12 | const transitionalLookup = true 13 | -------------------------------------------------------------------------------- /iris/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 | // +build !go1.18 9 | 10 | package idna 11 | 12 | const transitionalLookup = true 13 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/syscall_linux_amd64_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && linux && gc 6 | // +build amd64,linux,gc 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //go:noescape 13 | func gettimeofday(tv *Timeval) (err syscall.Errno) 14 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/pongo2.go: -------------------------------------------------------------------------------- 1 | package pongo2 2 | 3 | // Version string 4 | const Version = "4.0.2" 5 | 6 | // Must panics, if a Template couldn't successfully parsed. This is how you 7 | // would use it: 8 | // var baseTemplate = pongo2.Must(pongo2.FromFile("templates/base.html")) 9 | func Must(tpl *Template, err error) *Template { 10 | if err != nil { 11 | panic(err) 12 | } 13 | return tpl 14 | } 15 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/ptrace_darwin.go: -------------------------------------------------------------------------------- 1 | // Copyright 2020 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | func ptrace(request int, pid int, addr uintptr, data uintptr) error { 11 | return ptrace1(request, pid, addr, data) 12 | } 13 | -------------------------------------------------------------------------------- /_step_by_step/echo/step_001_init_project/README.md: -------------------------------------------------------------------------------- 1 | # Go Echo Web Framework - Step 1 - Getting Started 2 | 3 | ## ℹ️ What's inside? 4 | 5 | Getting Started: 6 | 7 | - Intro to the framework 8 | - Initialize project 9 | - Add framework dependencies and “Hello, World!” 10 | - Commit and Push 11 | 12 | ### 👉🏼 Learn more 13 | 14 | - [Go Web Frameworks and Toolkits](https://www.codervlogger.com/go-web-frameworks-and-toolkits/) 15 | 16 | -------------------------------------------------------------------------------- /_step_by_step/iris/step_001_init_project/README.md: -------------------------------------------------------------------------------- 1 | # Go Iris Web Framework - Step 1 - Getting Started 2 | 3 | ## ℹ️ What's inside? 4 | 5 | Getting Started: 6 | 7 | - Intro to the framework 8 | - Initialize project 9 | - Add framework dependencies and “Hello, World!” 10 | - Commit and Push 11 | 12 | ### 👉🏼 Learn more 13 | 14 | - [Go Web Frameworks and Toolkits](https://www.codervlogger.com/go-web-frameworks-and-toolkits/) 15 | 16 | -------------------------------------------------------------------------------- /iris/vendor/github.com/yosssi/ace/source.go: -------------------------------------------------------------------------------- 1 | package ace 2 | 3 | // source represents source for the parsing process. 4 | type source struct { 5 | base *File 6 | inner *File 7 | includes []*File 8 | } 9 | 10 | // NewSource creates and returns source. 11 | func NewSource(base, inner *File, includes []*File) *source { 12 | return &source{ 13 | base: base, 14 | inner: inner, 15 | includes: includes, 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /_steps_by_topics/step_001_init_project/echo/README.md: -------------------------------------------------------------------------------- 1 | # Go Echo Web Framework - Step 1 - Getting Started 2 | 3 | ## ℹ️ What's inside? 4 | 5 | Getting Started: 6 | 7 | - Intro to the framework 8 | - Initialize project 9 | - Add framework dependencies and “Hello, World!” 10 | - Commit and Push 11 | 12 | ### 👉🏼 Learn more 13 | 14 | - [Go Web Frameworks and Toolkits](https://www.codervlogger.com/go-web-frameworks-and-toolkits/) 15 | 16 | -------------------------------------------------------------------------------- /_steps_by_topics/step_001_init_project/iris/README.md: -------------------------------------------------------------------------------- 1 | # Go Iris Web Framework - Step 1 - Getting Started 2 | 3 | ## ℹ️ What's inside? 4 | 5 | Getting Started: 6 | 7 | - Intro to the framework 8 | - Initialize project 9 | - Add framework dependencies and “Hello, World!” 10 | - Commit and Push 11 | 12 | ### 👉🏼 Learn more 13 | 14 | - [Go Web Frameworks and Toolkits](https://www.codervlogger.com/go-web-frameworks-and-toolkits/) 15 | 16 | -------------------------------------------------------------------------------- /iris/vendor/github.com/andybalholm/brotli/README.md: -------------------------------------------------------------------------------- 1 | This package is a brotli compressor and decompressor implemented in Go. 2 | It was translated from the reference implementation (https://github.com/google/brotli) 3 | with the `c2go` tool at https://github.com/andybalholm/c2go. 4 | 5 | I am using it in production with https://github.com/andybalholm/redwood. 6 | 7 | API documentation is found at https://pkg.go.dev/github.com/andybalholm/brotli?tab=doc. 8 | -------------------------------------------------------------------------------- /echo/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 | // +build go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 12 | } 13 | -------------------------------------------------------------------------------- /iris/vendor/github.com/klauspost/compress/s2/.gitignore: -------------------------------------------------------------------------------- 1 | testdata/bench 2 | 3 | # These explicitly listed benchmark data files are for an obsolete version of 4 | # snappy_test.go. 5 | testdata/alice29.txt 6 | testdata/asyoulik.txt 7 | testdata/fireworks.jpeg 8 | testdata/geo.protodata 9 | testdata/html 10 | testdata/html_x_4 11 | testdata/kppkn.gtb 12 | testdata/lcet10.txt 13 | testdata/paper-100k.pdf 14 | testdata/plrabn12.txt 15 | testdata/urls.10K 16 | -------------------------------------------------------------------------------- /iris/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 | // +build go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 12 | } 13 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/CREDITS.md: -------------------------------------------------------------------------------- 1 | 1. John Graham-Cumming http://jgc.org/ 2 | 1. Mohammad Gufran https://github.com/Gufran 3 | 1. Steven Gutzwiller https://github.com/StevenGutzwiller 4 | 1. Andrew Krasichkov @buglloc https://github.com/buglloc 5 | 1. Mike Samuel mikesamuel@gmail.com 6 | 1. Dmitri Shuralyov shurcooL@gmail.com 7 | 1. opennota https://github.com/opennota https://gitlab.com/opennota 8 | 1. Tom Anthony https://www.tomanthony.co.uk/ -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/msgpack/v5/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | 4 | go: 5 | - 1.15.x 6 | - 1.16.x 7 | - tip 8 | 9 | matrix: 10 | allow_failures: 11 | - go: tip 12 | 13 | env: 14 | - GO111MODULE=on 15 | 16 | go_import_path: github.com/vmihailenco/msgpack 17 | 18 | before_install: 19 | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go 20 | env GOPATH)/bin v1.31.0 21 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/tagparser/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | dist: xenial 2 | language: go 3 | 4 | go: 5 | - 1.14.x 6 | - 1.15.x 7 | - tip 8 | 9 | matrix: 10 | allow_failures: 11 | - go: tip 12 | 13 | env: 14 | - GO111MODULE=on 15 | 16 | go_import_path: github.com/vmihailenco/tagparser 17 | 18 | before_install: 19 | - curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b $(go env GOPATH)/bin v1.17.1 20 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/sitemap/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | os: 3 | - linux 4 | - osx 5 | go: 6 | - 1.13.x 7 | go_import_path: github.com/kataras/sitemap 8 | env: 9 | global: 10 | - GO111MODULE=on 11 | install: 12 | - go get ./... 13 | script: 14 | - go test -vet=off -v -cover ./... 15 | after_script: 16 | # examples 17 | - cd ./_examples 18 | - go get ./... 19 | - go test -vet=off -v -cover ./... 20 | - cd ../ 21 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | go: 3 | - 1.2.x 4 | - 1.3.x 5 | - 1.4.x 6 | - 1.5.x 7 | - 1.6.x 8 | - 1.7.x 9 | - 1.8.x 10 | - 1.9.x 11 | - 1.10.x 12 | - 1.11.x 13 | - 1.12.x 14 | - 1.13.x 15 | - 1.14.x 16 | - 1.15.x 17 | - 1.16.x 18 | - tip 19 | matrix: 20 | allow_failures: 21 | - go: tip 22 | fast_finish: true 23 | install: 24 | - go get . 25 | script: 26 | - go test -v ./... 27 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/sitemap/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Source code and other details for the project are available at GitHub: 3 | 4 | https://github.com/kataras/sitemap 5 | 6 | Current Version 7 | 8 | 0.0.5 9 | 10 | Installation 11 | 12 | The only requirement is the Go Programming Language 13 | 14 | $ go get github.com/kataras/sitemap 15 | 16 | Examples 17 | 18 | https://github.com/kataras/sitemap/tree/master/_examples 19 | */ 20 | 21 | package sitemap 22 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/windows/mksyscall.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build generate 6 | // +build generate 7 | 8 | package windows 9 | 10 | //go:generate go run golang.org/x/sys/windows/mkwinsyscall -output zsyscall_windows.go eventlog.go service.go syscall_windows.go security_windows.go setupapi_windows.go 11 | -------------------------------------------------------------------------------- /iris/vendor/github.com/golang/snappy/.gitignore: -------------------------------------------------------------------------------- 1 | cmd/snappytool/snappytool 2 | testdata/bench 3 | 4 | # These explicitly listed benchmark data files are for an obsolete version of 5 | # snappy_test.go. 6 | testdata/alice29.txt 7 | testdata/asyoulik.txt 8 | testdata/fireworks.jpeg 9 | testdata/geo.protodata 10 | testdata/html 11 | testdata/html_x_4 12 | testdata/kppkn.gtb 13 | testdata/lcet10.txt 14 | testdata/paper-100k.pdf 15 | testdata/plrabn12.txt 16 | testdata/urls.10K 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/golang/snappy/decode_asm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-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 !appengine 6 | // +build gc 7 | // +build !noasm 8 | // +build amd64 arm64 9 | 10 | package snappy 11 | 12 | // decode has the same semantics as in decode_other.go. 13 | // 14 | //go:noescape 15 | func decode(dst, src []byte) int 16 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/gopkg.in/ini.v1/.golangci.yml: -------------------------------------------------------------------------------- 1 | linters-settings: 2 | nakedret: 3 | max-func-lines: 0 # Disallow any unnamed return statement 4 | 5 | linters: 6 | enable: 7 | - deadcode 8 | - errcheck 9 | - gosimple 10 | - govet 11 | - ineffassign 12 | - staticcheck 13 | - structcheck 14 | - typecheck 15 | - unused 16 | - varcheck 17 | - nakedret 18 | - gofmt 19 | - rowserrcheck 20 | - unconvert 21 | - goimports 22 | -------------------------------------------------------------------------------- /iris/vendor/github.com/mailru/easyjson/jlexer/error.go: -------------------------------------------------------------------------------- 1 | package jlexer 2 | 3 | import "fmt" 4 | 5 | // LexerError implements the error interface and represents all possible errors that can be 6 | // generated during parsing the JSON data. 7 | type LexerError struct { 8 | Reason string 9 | Offset int 10 | Data string 11 | } 12 | 13 | func (l *LexerError) Error() string { 14 | return fmt.Sprintf("parse error: %s near offset %d of '%s'", l.Reason, l.Offset, l.Data) 15 | } 16 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /iris/vendor/github.com/yosssi/ace/result.go: -------------------------------------------------------------------------------- 1 | package ace 2 | 3 | // result represents a result of the parsing process. 4 | type result struct { 5 | base []element 6 | inner []element 7 | includes map[string][]element 8 | } 9 | 10 | // newResult creates and returns a result. 11 | func newResult(base []element, inner []element, includes map[string][]element) *result { 12 | return &result{ 13 | base: base, 14 | inner: inner, 15 | includes: includes, 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/constants.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | package unix 9 | 10 | const ( 11 | R_OK = 0x4 12 | W_OK = 0x2 13 | X_OK = 0x1 14 | ) 15 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/mailru/easyjson/jlexer/bytestostr_nounsafe.go: -------------------------------------------------------------------------------- 1 | // This file is included to the build if any of the buildtags below 2 | // are defined. Refer to README notes for more details. 3 | 4 | //+build easyjson_nounsafe appengine 5 | 6 | package jlexer 7 | 8 | // bytesToStr creates a string normally from []byte 9 | // 10 | // Note that this method is roughly 1.5x slower than using the 'unsafe' method. 11 | func bytesToStr(data []byte) string { 12 | return string(data) 13 | } 14 | -------------------------------------------------------------------------------- /_step_by_step/fiber/step_001_init_project/go.mod: -------------------------------------------------------------------------------- 1 | module demoapp 2 | 3 | go 1.17 4 | 5 | require ( 6 | github.com/andybalholm/brotli v1.0.4 // indirect 7 | github.com/gofiber/fiber/v2 v2.27.0 // indirect 8 | github.com/klauspost/compress v1.14.1 // indirect 9 | github.com/valyala/bytebufferpool v1.0.0 // indirect 10 | github.com/valyala/fasthttp v1.33.0 // indirect 11 | github.com/valyala/tcplisten v1.0.0 // indirect 12 | golang.org/x/sys v0.0.0-20220111092808-5a964db01320 // indirect 13 | ) 14 | -------------------------------------------------------------------------------- /echo/vendor/github.com/labstack/echo/v4/.travis.yml: -------------------------------------------------------------------------------- 1 | arch: 2 | - amd64 3 | - ppc64le 4 | 5 | language: go 6 | go: 7 | - 1.14.x 8 | - 1.15.x 9 | - tip 10 | env: 11 | - GO111MODULE=on 12 | install: 13 | - go get -v golang.org/x/lint/golint 14 | script: 15 | - golint -set_exit_status ./... 16 | - go test -race -coverprofile=coverage.txt -covermode=atomic ./... 17 | after_success: 18 | - bash <(curl -s https://codecov.io/bash) 19 | matrix: 20 | allow_failures: 21 | - go: tip 22 | -------------------------------------------------------------------------------- /echo/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 | // +build !go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | if !t.isRTL() { 12 | return true 13 | } 14 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 15 | } 16 | -------------------------------------------------------------------------------- /fiber/internal/config.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | type Config struct { 4 | ServerPort int `split_words:"true" default:"8080"` 5 | ServerHost string `split_words:"true" default:"localhost"` 6 | PageSize int `split_words:"true" default:"10"` 7 | } 8 | 9 | func (c Config) GetServerPort() int { 10 | return c.ServerPort 11 | } 12 | 13 | func (c Config) GetServerHost() string { 14 | return c.ServerHost 15 | } 16 | 17 | func (c Config) GetPageSize() int { 18 | return c.PageSize 19 | } 20 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/golog/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go linguist-language=Go 2 | vendor/* linguist-vendored 3 | _examples/* linguist-documentation 4 | _benchmarks/* linguist-documentation 5 | # Set the default behavior, in case people don't have core.autocrlf set. 6 | # if from windows: 7 | # git config --global core.autocrlf true 8 | # if from unix: 9 | # git config --global core.autocrlf input 10 | # https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings 11 | * text=auto -------------------------------------------------------------------------------- /iris/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 | // +build !go1.10 7 | 8 | package bidirule 9 | 10 | func (t *Transformer) isFinal() bool { 11 | if !t.isRTL() { 12 | return true 13 | } 14 | return t.state == ruleLTRFinal || t.state == ruleRTLFinal || t.state == ruleInitial 15 | } 16 | -------------------------------------------------------------------------------- /_steps_by_topics/step_001_init_project/fiber/go.mod: -------------------------------------------------------------------------------- 1 | module demoapp 2 | 3 | go 1.17 4 | 5 | require ( 6 | github.com/andybalholm/brotli v1.0.4 // indirect 7 | github.com/gofiber/fiber/v2 v2.27.0 // indirect 8 | github.com/klauspost/compress v1.14.1 // indirect 9 | github.com/valyala/bytebufferpool v1.0.0 // indirect 10 | github.com/valyala/fasthttp v1.33.0 // indirect 11 | github.com/valyala/tcplisten v1.0.0 // indirect 12 | golang.org/x/sys v0.0.0-20220111092808-5a964db01320 // indirect 13 | ) 14 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/terminal/terminal_solaris.go: -------------------------------------------------------------------------------- 1 | // +build solaris,!appengine 2 | 3 | package terminal 4 | 5 | import ( 6 | "io" 7 | "os" 8 | 9 | "golang.org/x/sys/unix" 10 | ) 11 | 12 | // IsTerminal returns true if the given file descriptor is a terminal. 13 | func IsTerminal(f io.Writer) bool { 14 | switch v := f.(type) { 15 | case *os.File: 16 | _, err := unix.IoctlGetTermios(int(v.Fd()), unix.TCGETA) 17 | return err == nil 18 | default: 19 | return false 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/endian_big.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | // 5 | //go:build armbe || arm64be || m68k || mips || mips64 || mips64p32 || ppc || ppc64 || s390 || s390x || shbe || sparc || sparc64 6 | // +build armbe arm64be m68k mips mips64 mips64p32 ppc ppc64 s390 s390x shbe sparc sparc64 7 | 8 | package unix 9 | 10 | const isBigEndian = true 11 | -------------------------------------------------------------------------------- /_step_by_step/fiber/step_001_init_project/server.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/gofiber/fiber/v2" 7 | ) 8 | 9 | type JSONTextResponse struct { 10 | Message string 11 | } 12 | 13 | func main() { 14 | fmt.Println("Hello, World!") 15 | 16 | app := fiber.New() 17 | 18 | app.Get("/", func(c *fiber.Ctx) error { 19 | // return c.SendString("Hello, Fiber!") 20 | 21 | return c.JSON(JSONTextResponse{Message: "Hello, Fiber!"}) 22 | }) 23 | 24 | app.Listen(":8080") 25 | } 26 | -------------------------------------------------------------------------------- /_step_by_step/fiber/step_002_crud_api/README.md: -------------------------------------------------------------------------------- 1 | # Go Fiber Web Framework - Step 1 - Getting Started 2 | 3 | ## ℹ️ What's inside? 4 | 5 | Getting Started: 6 | 7 | - Intro to the framework 8 | - Initialize project 9 | - Add framework dependencies and “Hello, World!” 10 | - Commit and Push 11 | 12 | ### 👉🏼 Learn more 13 | 14 | - [Create CRUD JSON APIs with Fiber: Full Tutorial](https://youtu.be/oVHoMPV3ZF8) 15 | - [Go Web Frameworks and Toolkits](https://www.codervlogger.com/go-web-frameworks-and-toolkits/) 16 | -------------------------------------------------------------------------------- /_steps_by_topics/step_001_init_project/fiber/server.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "fmt" 5 | 6 | "github.com/gofiber/fiber/v2" 7 | ) 8 | 9 | type JSONTextResponse struct { 10 | Message string 11 | } 12 | 13 | func main() { 14 | fmt.Println("Hello, World!") 15 | 16 | app := fiber.New() 17 | 18 | app.Get("/", func(c *fiber.Ctx) error { 19 | // return c.SendString("Hello, Fiber!") 20 | 21 | return c.JSON(JSONTextResponse{Message: "Hello, Fiber!"}) 22 | }) 23 | 24 | app.Listen(":8080") 25 | } 26 | -------------------------------------------------------------------------------- /echo/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 | // +build go1.18 9 | 10 | package idna 11 | 12 | // Transitional processing is disabled by default in Go 1.18. 13 | // https://golang.org/issue/47510 14 | const transitionalLookup = false 15 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/msgpack/v5/unsafe.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package msgpack 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // bytesToString converts byte slice to string. 10 | func bytesToString(b []byte) string { 11 | return *(*string)(unsafe.Pointer(&b)) 12 | } 13 | 14 | // stringToBytes converts string to byte slice. 15 | func stringToBytes(s string) []byte { 16 | return *(*[]byte)(unsafe.Pointer( 17 | &struct { 18 | string 19 | Cap int 20 | }{s, len(s)}, 21 | )) 22 | } 23 | -------------------------------------------------------------------------------- /iris/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 | // +build go1.18 9 | 10 | package idna 11 | 12 | // Transitional processing is disabled by default in Go 1.18. 13 | // https://golang.org/issue/47510 14 | const transitionalLookup = false 15 | -------------------------------------------------------------------------------- /_step_by_step/fiber/step_001_init_project/README.md: -------------------------------------------------------------------------------- 1 | # Go Fiber Web Framework - Step 1 - Getting Started 2 | 3 | ## ℹ️ What's inside? 4 | 5 | Getting Started: 6 | 7 | - Intro to the framework 8 | - Initialize project 9 | - Add framework dependencies and “Hello, World!” 10 | - Commit and Push 11 | 12 | ### 👉🏼 Learn more 13 | 14 | - [Create CRUD JSON APIs with Fiber: Full Tutorial](https://youtu.be/oVHoMPV3ZF8) 15 | - [Go Web Frameworks and Toolkits](https://www.codervlogger.com/go-web-frameworks-and-toolkits/) 16 | -------------------------------------------------------------------------------- /_steps_by_topics/step_001_init_project/fiber/README.md: -------------------------------------------------------------------------------- 1 | # Go Fiber Web Framework - Step 1 - Getting Started 2 | 3 | ## ℹ️ What's inside? 4 | 5 | Getting Started: 6 | 7 | - Intro to the framework 8 | - Initialize project 9 | - Add framework dependencies and “Hello, World!” 10 | - Commit and Push 11 | 12 | ### 👉🏼 Learn more 13 | 14 | - [Create CRUD JSON APIs with Fiber: Full Tutorial](https://youtu.be/oVHoMPV3ZF8) 15 | - [Go Web Frameworks and Toolkits](https://www.codervlogger.com/go-web-frameworks-and-toolkits/) 16 | -------------------------------------------------------------------------------- /echo/vendor/github.com/valyala/fasttemplate/unsafe.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package fasttemplate 4 | 5 | import ( 6 | "reflect" 7 | "unsafe" 8 | ) 9 | 10 | func unsafeBytes2String(b []byte) string { 11 | return *(*string)(unsafe.Pointer(&b)) 12 | } 13 | 14 | func unsafeString2Bytes(s string) (b []byte) { 15 | sh := (*reflect.StringHeader)(unsafe.Pointer(&s)) 16 | bh := (*reflect.SliceHeader)(unsafe.Pointer(&b)) 17 | bh.Data = sh.Data 18 | bh.Cap = sh.Len 19 | bh.Len = sh.Len 20 | return b 21 | } 22 | -------------------------------------------------------------------------------- /iris/vendor/github.com/russross/blackfriday/v2/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - "1.10.x" 5 | - "1.11.x" 6 | - tip 7 | matrix: 8 | fast_finish: true 9 | allow_failures: 10 | - go: tip 11 | install: 12 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). 13 | script: 14 | - go get -t -v ./... 15 | - diff -u <(echo -n) <(gofmt -d -s .) 16 | - go tool vet . 17 | - go test -v ./... 18 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/tagparser/v2/internal/unsafe.go: -------------------------------------------------------------------------------- 1 | // +build !appengine 2 | 3 | package internal 4 | 5 | import ( 6 | "unsafe" 7 | ) 8 | 9 | // BytesToString converts byte slice to string. 10 | func BytesToString(b []byte) string { 11 | return *(*string)(unsafe.Pointer(&b)) 12 | } 13 | 14 | // StringToBytes converts string to byte slice. 15 | func StringToBytes(s string) []byte { 16 | return *(*[]byte)(unsafe.Pointer( 17 | &struct { 18 | string 19 | Cap int 20 | }{s, len(s)}, 21 | )) 22 | } 23 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | // SysvShmCtl performs control operations on the shared memory segment 11 | // specified by id. 12 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 13 | return shmctl(id, cmd, desc) 14 | } 15 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/sysvshm_unix_other.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin && !ios 6 | // +build darwin,!ios 7 | 8 | package unix 9 | 10 | // SysvShmCtl performs control operations on the shared memory segment 11 | // specified by id. 12 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 13 | return shmctl(id, cmd, desc) 14 | } 15 | -------------------------------------------------------------------------------- /echo/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 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /iris/vendor/github.com/BurntSushi/toml/decode_go116.go: -------------------------------------------------------------------------------- 1 | //go:build go1.16 2 | // +build go1.16 3 | 4 | package toml 5 | 6 | import ( 7 | "io/fs" 8 | ) 9 | 10 | // DecodeFS is just like Decode, except it will automatically read the contents 11 | // of the file at `path` from a fs.FS instance. 12 | func DecodeFS(fsys fs.FS, path string, v interface{}) (MetaData, error) { 13 | fp, err := fsys.Open(path) 14 | if err != nil { 15 | return MetaData{}, err 16 | } 17 | defer fp.Close() 18 | return NewDecoder(fp).Decode(v) 19 | } 20 | -------------------------------------------------------------------------------- /iris/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 || mipsle || mips64le || mips64p32le || nios2 || ppc64le || riscv || riscv64 || sh 6 | // +build 386 amd64 amd64p32 alpha arm arm64 mipsle mips64le mips64p32le nios2 ppc64le riscv riscv64 sh 7 | 8 | package unix 9 | 10 | const isBigEndian = false 11 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /fiber/cmd/demoapp/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "context" 5 | "demoapp/internal" 6 | "log" 7 | "os/signal" 8 | "syscall" 9 | 10 | "github.com/kelseyhightower/envconfig" 11 | ) 12 | 13 | func main() { 14 | ctx, cancel := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) 15 | defer cancel() 16 | 17 | var cfg internal.Config 18 | 19 | err := envconfig.Process("app", &cfg) 20 | if err != nil { 21 | log.Printf("%v", err) 22 | return 23 | } 24 | 25 | internal.Run(ctx, &cfg) 26 | } 27 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/asm_aix_ppc64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for ppc64, AIX are implemented in runtime/syscall_aix.go 12 | // 13 | 14 | TEXT ·syscall6(SB),NOSPLIT,$0-88 15 | JMP syscall·syscall6(SB) 16 | 17 | TEXT ·rawSyscall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSyscall6(SB) 19 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/nodes_html.go: -------------------------------------------------------------------------------- 1 | package pongo2 2 | 3 | import ( 4 | "strings" 5 | ) 6 | 7 | type nodeHTML struct { 8 | token *Token 9 | trimLeft bool 10 | trimRight bool 11 | } 12 | 13 | func (n *nodeHTML) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error { 14 | res := n.token.Val 15 | if n.trimLeft { 16 | res = strings.TrimLeft(res, tokenSpaceChars) 17 | } 18 | if n.trimRight { 19 | res = strings.TrimRight(res, tokenSpaceChars) 20 | } 21 | writer.WriteString(res) 22 | return nil 23 | } 24 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/golog/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | os: 4 | - linux 5 | # - osx 6 | go: 7 | - 1.14.x 8 | - 1.15.x 9 | go_import_path: github.com/kataras/golog 10 | install: 11 | - go get ./... 12 | script: 13 | - go test -v -cover ./... 14 | after_script: 15 | # examples 16 | - cd ./_examples 17 | - go get ./... 18 | - go test -v -race -cover ./... 19 | - cd ../ 20 | # benchmarks 21 | - cd ./_benchmarks 22 | - go get ./... 23 | - go test -run=XXX -bench=. -benchtime=5s 24 | - cd ../ 25 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/syscall_linux_gc_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build arm && gc && linux 6 | // +build arm,gc,linux 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/cache/client/rule/not_satisfied.go: -------------------------------------------------------------------------------- 1 | package rule 2 | 3 | import ( 4 | "github.com/kataras/iris/v12/context" 5 | ) 6 | 7 | type notSatisfiedRule struct{} 8 | 9 | var _ Rule = ¬SatisfiedRule{} 10 | 11 | // NotSatisfied returns a rule which allows nothing 12 | func NotSatisfied() Rule { 13 | return ¬SatisfiedRule{} 14 | } 15 | 16 | func (n *notSatisfiedRule) Claim(*context.Context) bool { 17 | return false 18 | } 19 | 20 | func (n *notSatisfiedRule) Valid(*context.Context) bool { 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/asm_solaris_amd64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System calls for amd64, Solaris are implemented in runtime/syscall_solaris.go 12 | // 13 | 14 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 15 | JMP syscall·sysvicall6(SB) 16 | 17 | TEXT ·rawSysvicall6(SB),NOSPLIT,$0-88 18 | JMP syscall·rawSysvicall6(SB) 19 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/readdirent_getdents.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || dragonfly || freebsd || linux || netbsd || openbsd 6 | // +build aix dragonfly freebsd linux netbsd openbsd 7 | 8 | package unix 9 | 10 | // ReadDirent reads directory entries from fd and writes them into buf. 11 | func ReadDirent(fd int, buf []byte) (n int, err error) { 12 | return Getdents(fd, buf) 13 | } 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/BurntSushi/toml/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package toml implements decoding and encoding of TOML files. 3 | 4 | This package supports TOML v1.0.0, as listed on https://toml.io 5 | 6 | There is also support for delaying decoding with the Primitive type, and 7 | querying the set of keys in a TOML document with the MetaData type. 8 | 9 | The github.com/BurntSushi/toml/cmd/tomlv package implements a TOML validator, 10 | and can be used to verify if TOML document is valid. It can also be used to 11 | print the type of each key. 12 | */ 13 | package toml 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/.gitattributes: -------------------------------------------------------------------------------- 1 | *.go linguist-language=Go 2 | _examples/* linguist-documentation 3 | _benchmarks/* linguist-documentation 4 | go.sum linguist-generated 5 | # Set the default behavior, in case people don't have core.autocrlf set. 6 | # if from windows: 7 | # git config --global core.autocrlf true 8 | # if from unix: 9 | # git config --global core.autocrlf input 10 | # https://help.github.com/articles/dealing-with-line-endings/#per-repository-settings 11 | * text=auto 12 | # ignore perms 13 | # git config core.filemode false 14 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/pagesize_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | // For Unix, get the pagesize from the runtime. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getpagesize() int { 15 | return syscall.Getpagesize() 16 | } 17 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/text/message/catalog/go19.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 go1.9 6 | // +build go1.9 7 | 8 | package catalog 9 | 10 | import "golang.org/x/text/internal/catmsg" 11 | 12 | // A Message holds a collection of translations for the same phrase that may 13 | // vary based on the values of substitution arguments. 14 | type Message = catmsg.Message 15 | 16 | type firstInSequence = catmsg.FirstOf 17 | -------------------------------------------------------------------------------- /fiber/internal/demoapp.go: -------------------------------------------------------------------------------- 1 | package internal 2 | 3 | import ( 4 | "context" 5 | entitiesHTTP "demoapp/internal/pkg/http/entities" 6 | "fmt" 7 | "log" 8 | 9 | "github.com/gofiber/fiber/v2" 10 | ) 11 | 12 | func Run(ctx context.Context, cfg *Config) { 13 | app := fiber.New() 14 | 15 | _ = entitiesHTTP.New(cfg, app) 16 | 17 | go func(ctx context.Context) { 18 | <-ctx.Done() 19 | err := app.Shutdown() 20 | if err != nil { 21 | log.Printf("%v", err) 22 | } 23 | }(ctx) 24 | 25 | log.Println(app.Listen(fmt.Sprintf("%s:%d", cfg.ServerHost, cfg.ServerPort))) 26 | } 27 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /iris/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 remvoves 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 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/aliases.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos) && go1.9 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | // +build go1.9 8 | 9 | package unix 10 | 11 | import "syscall" 12 | 13 | type Signal = syscall.Signal 14 | type Errno = syscall.Errno 15 | type SysProcAttr = syscall.SysProcAttr 16 | -------------------------------------------------------------------------------- /echo/vendor/github.com/mattn/go-isatty/isatty_others.go: -------------------------------------------------------------------------------- 1 | //go:build appengine || js || nacl || wasm 2 | // +build appengine js nacl wasm 3 | 4 | package isatty 5 | 6 | // IsTerminal returns true if the file descriptor is terminal which 7 | // is always false on js and appengine classic which is a sandboxed PaaS. 8 | func IsTerminal(fd uintptr) bool { 9 | return false 10 | } 11 | 12 | // IsCygwinTerminal() return true if the file descriptor is a cygwin or msys2 13 | // terminal. This is also always false on this environment. 14 | func IsCygwinTerminal(fd uintptr) bool { 15 | return false 16 | } 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/klauspost/compress/s2/decode_asm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-Go Authors. All rights reserved. 2 | // Copyright (c) 2019 Klaus Post. All rights reserved. 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | //go:build (amd64 || arm64) && !appengine && gc && !noasm 7 | // +build amd64 arm64 8 | // +build !appengine 9 | // +build gc 10 | // +build !noasm 11 | 12 | package s2 13 | 14 | // decode has the same semantics as in decode_other.go. 15 | // 16 | //go:noescape 17 | func s2Decode(dst, src []byte) int 18 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/errors_freebsd_arm64.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 | // Constants that were deprecated or moved to enums in the FreeBSD headers. Keep 6 | // them here for backwards compatibility. 7 | 8 | package unix 9 | 10 | const ( 11 | DLT_HHDLC = 0x79 12 | IPV6_MIN_MEMBERSHIPS = 0x1f 13 | IP_MAX_SOURCE_FILTER = 0x400 14 | IP_MIN_MEMBERSHIPS = 0x1f 15 | RT_CACHING_CONTEXT = 0x1 16 | RT_NORTREF = 0x2 17 | ) 18 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | // +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc 7 | 8 | package unix 9 | 10 | func init() { 11 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 12 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 13 | fcntl64Syscall = SYS_FCNTL64 14 | } 15 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | // +build gccgo,linux,amd64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //extern gettimeofday 13 | func realGettimeofday(*Timeval, *byte) int32 14 | 15 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 16 | r := realGettimeofday(tv, nil) 17 | if r < 0 { 18 | return syscall.GetErrno() 19 | } 20 | return 0 21 | } 22 | -------------------------------------------------------------------------------- /iris/vendor/github.com/aymerick/douceur/css/stylesheet.go: -------------------------------------------------------------------------------- 1 | package css 2 | 3 | // Stylesheet represents a parsed stylesheet 4 | type Stylesheet struct { 5 | Rules []*Rule 6 | } 7 | 8 | // NewStylesheet instanciate a new Stylesheet 9 | func NewStylesheet() *Stylesheet { 10 | return &Stylesheet{} 11 | } 12 | 13 | // Returns string representation of the Stylesheet 14 | func (sheet *Stylesheet) String() string { 15 | result := "" 16 | 17 | for _, rule := range sheet.Rules { 18 | if result != "" { 19 | result += "\n" 20 | } 21 | result += rule.String() 22 | } 23 | 24 | return result 25 | } 26 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/errors_freebsd_arm64.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 | // Constants that were deprecated or moved to enums in the FreeBSD headers. Keep 6 | // them here for backwards compatibility. 7 | 8 | package unix 9 | 10 | const ( 11 | DLT_HHDLC = 0x79 12 | IPV6_MIN_MEMBERSHIPS = 0x1f 13 | IP_MAX_SOURCE_FILTER = 0x400 14 | IP_MIN_MEMBERSHIPS = 0x1f 15 | RT_CACHING_CONTEXT = 0x1 16 | RT_NORTREF = 0x2 17 | ) 18 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/fcntl_linux_32bit.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (linux && 386) || (linux && arm) || (linux && mips) || (linux && mipsle) || (linux && ppc) 6 | // +build linux,386 linux,arm linux,mips linux,mipsle linux,ppc 7 | 8 | package unix 9 | 10 | func init() { 11 | // On 32-bit Linux systems, the fcntl syscall that matches Go's 12 | // Flock_t type is SYS_FCNTL64, not SYS_FCNTL. 13 | fcntl64Syscall = SYS_FCNTL64 14 | } 15 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/gccgo_linux_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gccgo && linux && amd64 6 | // +build gccgo,linux,amd64 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | //extern gettimeofday 13 | func realGettimeofday(*Timeval, *byte) int32 14 | 15 | func gettimeofday(tv *Timeval) (err syscall.Errno) { 16 | r := realGettimeofday(tv, nil) 17 | if r < 0 { 18 | return syscall.GetErrno() 19 | } 20 | return 0 21 | } 22 | -------------------------------------------------------------------------------- /iris/vendor/github.com/andybalholm/brotli/symbol_list.go: -------------------------------------------------------------------------------- 1 | package brotli 2 | 3 | /* Copyright 2013 Google Inc. All Rights Reserved. 4 | 5 | Distributed under MIT license. 6 | See file LICENSE for detail or copy at https://opensource.org/licenses/MIT 7 | */ 8 | 9 | /* Utilities for building Huffman decoding tables. */ 10 | 11 | type symbolList struct { 12 | storage []uint16 13 | offset int 14 | } 15 | 16 | func symbolListGet(sl symbolList, i int) uint16 { 17 | return sl.storage[i+sl.offset] 18 | } 19 | 20 | func symbolListPut(sl symbolList, i int, val uint16) { 21 | sl.storage[i+sl.offset] = val 22 | } 23 | -------------------------------------------------------------------------------- /iris/vendor/google.golang.org/protobuf/encoding/protojson/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 protojson marshals and unmarshals protocol buffer messages as JSON 6 | // format. It follows the guide at 7 | // https://developers.google.com/protocol-buffers/docs/proto3#json. 8 | // 9 | // This package produces a different output than the standard "encoding/json" 10 | // package, which does not operate correctly on protocol buffer messages. 11 | package protojson 12 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | // +build linux,gc 7 | 8 | package unix 9 | 10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 12 | 13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 14 | // fail. 15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 16 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/syscall_linux_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc 6 | // +build linux,gc 7 | 8 | package unix 9 | 10 | // SyscallNoError may be used instead of Syscall for syscalls that don't fail. 11 | func SyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 12 | 13 | // RawSyscallNoError may be used instead of RawSyscall for syscalls that don't 14 | // fail. 15 | func RawSyscallNoError(trap, a1, a2, a3 uintptr) (r1, r2 uintptr) 16 | -------------------------------------------------------------------------------- /iris/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 | // +build protoreflect 7 | 8 | package proto 9 | 10 | import ( 11 | "google.golang.org/protobuf/reflect/protoreflect" 12 | "google.golang.org/protobuf/runtime/protoiface" 13 | ) 14 | 15 | const hasProtoMethods = false 16 | 17 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 18 | return nil 19 | } 20 | -------------------------------------------------------------------------------- /echo/vendor/github.com/labstack/echo/v4/.editorconfig: -------------------------------------------------------------------------------- 1 | # EditorConfig coding styles definitions. For more information about the 2 | # properties used in this file, please see the EditorConfig documentation: 3 | # http://editorconfig.org/ 4 | 5 | # indicate this is the root of the project 6 | root = true 7 | 8 | [*] 9 | charset = utf-8 10 | 11 | end_of_line = LF 12 | insert_final_newline = true 13 | trim_trailing_whitespace = true 14 | 15 | indent_style = space 16 | indent_size = 2 17 | 18 | [Makefile] 19 | indent_style = tab 20 | 21 | [*.md] 22 | trim_trailing_whitespace = false 23 | 24 | [*.go] 25 | indent_style = tab 26 | -------------------------------------------------------------------------------- /fiber/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: run 2 | run: 3 | go run cmd/demoapp/main.go 4 | 5 | .PHONY: modsync 6 | modsync: 7 | go get -u 8 | go mod tidy 9 | go mod vendor 10 | 11 | .PHONY: docker 12 | docker: modsync 13 | docker build -t echo-demoapp . 14 | docker run --rm -it -p 8080:8080 echo-demoapp:latest 15 | 16 | .PHONY: lint 17 | lint: 18 | golangci-lint run ./... 19 | 20 | .PHONY: format 21 | format: 22 | find . -type f -name '*.go' -not -path './vendor/*' -exec gofmt -s -w {} + 23 | find . -type f -name '*.go' -not -path './vendor/*' -exec goimports -w {} + 24 | 25 | .PHONY: test 26 | test: 27 | go test ./... -race -cover 28 | -------------------------------------------------------------------------------- /echo/vendor/github.com/mattn/go-isatty/isatty_tcgets.go: -------------------------------------------------------------------------------- 1 | //go:build (linux || aix || zos) && !appengine 2 | // +build linux aix zos 3 | // +build !appengine 4 | 5 | package isatty 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | // IsTerminal return true if the file descriptor is terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | _, err := unix.IoctlGetTermios(int(fd), unix.TCGETS) 12 | return err == nil 13 | } 14 | 15 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 16 | // terminal. This is also always false on this environment. 17 | func IsCygwinTerminal(fd uintptr) bool { 18 | return false 19 | } 20 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/windows/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && !race 6 | // +build windows,!race 7 | 8 | package windows 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /iris/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 | // +build !protoreflect 7 | 8 | package proto 9 | 10 | import ( 11 | "google.golang.org/protobuf/reflect/protoreflect" 12 | "google.golang.org/protobuf/runtime/protoiface" 13 | ) 14 | 15 | const hasProtoMethods = true 16 | 17 | func protoMethods(m protoreflect.Message) *protoiface.Methods { 18 | return m.ProtoMethods() 19 | } 20 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | // +build linux 7 | // +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64 8 | 9 | package unix 10 | 11 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 12 | // values. 13 | 14 | //sys Alarm(seconds uint) (remaining uint, err error) 15 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/core/netutil/tcp_soreuse_control_unix.go: -------------------------------------------------------------------------------- 1 | //go:build !windows && !wasm 2 | // +build !windows,!wasm 3 | 4 | package netutil 5 | 6 | import ( 7 | "syscall" 8 | 9 | "golang.org/x/sys/unix" 10 | ) 11 | 12 | func control(network, address string, c syscall.RawConn) (err error) { 13 | c.Control(func(fd uintptr) { 14 | err = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, unix.SO_REUSEADDR, 1) 15 | if err != nil { 16 | return 17 | } 18 | 19 | err = unix.SetsockoptInt(int(fd), unix.SOL_SOCKET, unix.SO_REUSEPORT, 1) 20 | if err != nil { 21 | return 22 | } 23 | }) 24 | 25 | return 26 | } 27 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/syscall_linux_alarm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2022 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && (386 || amd64 || mips || mipsle || mips64 || mipsle || ppc64 || ppc64le || ppc || s390x || sparc64) 6 | // +build linux 7 | // +build 386 amd64 mips mipsle mips64 mipsle ppc64 ppc64le ppc s390x sparc64 8 | 9 | package unix 10 | 11 | // SYS_ALARM is not defined on arm or riscv, but is available for other GOARCH 12 | // values. 13 | 14 | //sys Alarm(seconds uint) (remaining uint, err error) 15 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/pio/terminal/terminal_notwindows.go: -------------------------------------------------------------------------------- 1 | // +build linux darwin freebsd openbsd netbsd dragonfly 2 | // +build !appengine 3 | 4 | package terminal 5 | 6 | import ( 7 | "io" 8 | "os" 9 | "syscall" 10 | "unsafe" 11 | ) 12 | 13 | // IsTerminal returns true if stderr's file descriptor is a terminal. 14 | func IsTerminal(f io.Writer) bool { 15 | var termios Termios 16 | switch v := f.(type) { 17 | case *os.File: 18 | _, _, err := syscall.Syscall6(syscall.SYS_IOCTL, uintptr(v.Fd()), ioctlReadTermios, uintptr(unsafe.Pointer(&termios)), 0, 0, 0) 19 | return err == 0 20 | default: 21 | return false 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /iris/vendor/github.com/yosssi/ace/comment.go: -------------------------------------------------------------------------------- 1 | package ace 2 | 3 | import "io" 4 | 5 | // comment represents a comment. 6 | type comment struct { 7 | elementBase 8 | } 9 | 10 | // Do nothing. 11 | func (e *comment) WriteTo(w io.Writer) (int64, error) { 12 | return 0, nil 13 | } 14 | 15 | // ContainPlainText returns true. 16 | func (e *comment) ContainPlainText() bool { 17 | return true 18 | } 19 | 20 | // newComment creates and returns a comment. 21 | func newComment(ln *line, rslt *result, src *source, parent element, opts *Options) *comment { 22 | return &comment{ 23 | elementBase: newElementBase(ln, rslt, src, parent, opts), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/cache/entry/util.go: -------------------------------------------------------------------------------- 1 | package entry 2 | 3 | import ( 4 | "regexp" 5 | "strconv" 6 | ) 7 | 8 | var maxAgeExp = regexp.MustCompile(`maxage=(\d+)`) 9 | 10 | // ParseMaxAge parses the max age from the receiver parameter, "cache-control" header 11 | // returns seconds as int64 12 | // if header not found or parse failed then it returns -1 13 | func ParseMaxAge(header string) int64 { 14 | if header == "" { 15 | return -1 16 | } 17 | m := maxAgeExp.FindStringSubmatch(header) 18 | if len(m) == 2 { 19 | if v, err := strconv.Atoi(m[1]); err == nil { 20 | return int64(v) 21 | } 22 | } 23 | return -1 24 | } 25 | -------------------------------------------------------------------------------- /echo/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 | -------------------------------------------------------------------------------- /echo/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 | -------------------------------------------------------------------------------- /fiber/go.mod: -------------------------------------------------------------------------------- 1 | module demoapp 2 | 3 | go 1.17 4 | 5 | replace github.com/CoderVlogger/go-web-frameworks/pkg => ../pkg 6 | 7 | require ( 8 | github.com/CoderVlogger/go-web-frameworks/pkg v0.0.0-20220219210813-22c124f9e92d 9 | github.com/andybalholm/brotli v1.0.4 // indirect 10 | github.com/gofiber/fiber/v2 v2.27.0 11 | github.com/kelseyhightower/envconfig v1.4.0 12 | github.com/klauspost/compress v1.14.1 // indirect 13 | github.com/valyala/bytebufferpool v1.0.0 // indirect 14 | github.com/valyala/fasthttp v1.33.0 // indirect 15 | github.com/valyala/tcplisten v1.0.0 // indirect 16 | golang.org/x/sys v0.0.0-20220111092808-5a964db01320 // indirect 17 | ) 18 | -------------------------------------------------------------------------------- /iris/vendor/github.com/Shopify/goreferrer/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" -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/blocks/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | First of all read our [Code of Conduct](CODE_OF_CONDUCT.md). 4 | 5 | ## Found a bug? 6 | 7 | Open a new [issue](https://github.com/kataras/blocks/issues/new). 8 | * Write the Operating System and the version of your machine. 9 | * Describe your problem, what did you expect to see and what you see instead. 10 | * If it's a feature request, describe your idea as better as you can. 11 | 12 | ## Code 13 | 14 | 1. Fork the [repository](https://github.com/kataras/blocks). 15 | 2. Make your changes. 16 | 3. Compare & Push the PR from [here](https://github.com/kataras/blocks/compare). 17 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/windows/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows 6 | // +build windows 7 | 8 | package windows 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + itoa(-val) 13 | } 14 | var buf [32]byte // big enough for int64 15 | i := len(buf) - 1 16 | for val >= 10 { 17 | buf[i] = byte(val%10 + '0') 18 | i-- 19 | val /= 10 20 | } 21 | buf[i] = byte(val + '0') 22 | return string(buf[i:]) 23 | } 24 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/net/http2/not_go111.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 !go1.11 6 | // +build !go1.11 7 | 8 | package http2 9 | 10 | import ( 11 | "net/http/httptrace" 12 | "net/textproto" 13 | ) 14 | 15 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { return false } 16 | 17 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) {} 18 | 19 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 20 | return nil 21 | } 22 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | // +build linux 7 | 8 | package unix 9 | 10 | import "runtime" 11 | 12 | // SysvShmCtl performs control operations on the shared memory segment 13 | // specified by id. 14 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 15 | if runtime.GOARCH == "arm" || 16 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 17 | cmd |= ipc_64 18 | } 19 | 20 | return shmctl(id, cmd, desc) 21 | } 22 | -------------------------------------------------------------------------------- /iris/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 | } -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/sysvshm_linux.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux 6 | // +build linux 7 | 8 | package unix 9 | 10 | import "runtime" 11 | 12 | // SysvShmCtl performs control operations on the shared memory segment 13 | // specified by id. 14 | func SysvShmCtl(id, cmd int, desc *SysvShmDesc) (result int, err error) { 15 | if runtime.GOARCH == "arm" || 16 | runtime.GOARCH == "mips64" || runtime.GOARCH == "mips64le" { 17 | cmd |= ipc_64 18 | } 19 | 20 | return shmctl(id, cmd, desc) 21 | } 22 | -------------------------------------------------------------------------------- /_step_by_step/fiber/step_002_crud_api/go.mod: -------------------------------------------------------------------------------- 1 | module demoapp 2 | 3 | go 1.17 4 | 5 | replace github.com/CoderVlogger/go-web-frameworks/pkg => ../../../pkg 6 | 7 | require ( 8 | github.com/CoderVlogger/go-web-frameworks/pkg v0.0.0-20220219170425-af3312daded6 // indirect 9 | github.com/andybalholm/brotli v1.0.4 // indirect 10 | github.com/gofiber/fiber/v2 v2.27.0 // indirect 11 | github.com/klauspost/compress v1.14.1 // indirect 12 | github.com/valyala/bytebufferpool v1.0.0 // indirect 13 | github.com/valyala/fasthttp v1.33.0 // indirect 14 | github.com/valyala/tcplisten v1.0.0 // indirect 15 | golang.org/x/sys v0.0.0-20220111092808-5a964db01320 // indirect 16 | ) 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/golang/snappy/AUTHORS: -------------------------------------------------------------------------------- 1 | # This is the official list of Snappy-Go authors for copyright purposes. 2 | # This file is distinct from the CONTRIBUTORS files. 3 | # See the latter for an explanation. 4 | 5 | # Names should be added to this file as 6 | # Name or Organization 7 | # The email address is not required for organizations. 8 | 9 | # Please keep the list sorted. 10 | 11 | Amazon.com, Inc 12 | Damian Gryski 13 | Eric Buth 14 | Google Inc. 15 | Jan Mercl <0xjnml@gmail.com> 16 | Klaus Post 17 | Rodolfo Carvalho 18 | Sebastien Binet 19 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/tunnel/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | First of all read our [Code of Conduct](CODE_OF_CONDUCT.md). 4 | 5 | ## Found a bug? 6 | 7 | Open a new [issue](https://github.com/kataras/tunnel/issues/new). 8 | * Write the Operating System and the version of your machine. 9 | * Describe your problem, what did you expect to see and what you see instead. 10 | * If it's a feature request, describe your idea as better as you can. 11 | 12 | ## Code 13 | 14 | 1. Fork the [repository](https://github.com/kataras/tunnel). 15 | 2. Make your changes. 16 | 3. Compare & Push the PR from [here](https://github.com/kataras/tunnel/compare). 17 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /_step_by_step/echo/step_001_init_project/go.mod: -------------------------------------------------------------------------------- 1 | module demoapp 2 | 3 | go 1.17 4 | 5 | require ( 6 | github.com/labstack/echo/v4 v4.6.3 // indirect 7 | github.com/labstack/gommon v0.3.1 // indirect 8 | github.com/mattn/go-colorable v0.1.11 // indirect 9 | github.com/mattn/go-isatty v0.0.14 // indirect 10 | github.com/valyala/bytebufferpool v1.0.0 // indirect 11 | github.com/valyala/fasttemplate v1.2.1 // indirect 12 | golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect 13 | golang.org/x/net v0.0.0-20210913180222-943fd674d43e // indirect 14 | golang.org/x/sys v0.0.0-20211103235746-7861aae1554b // indirect 15 | golang.org/x/text v0.3.7 // indirect 16 | ) 17 | -------------------------------------------------------------------------------- /_steps_by_topics/step_001_init_project/echo/go.mod: -------------------------------------------------------------------------------- 1 | module demoapp 2 | 3 | go 1.17 4 | 5 | require ( 6 | github.com/labstack/echo/v4 v4.6.3 // indirect 7 | github.com/labstack/gommon v0.3.1 // indirect 8 | github.com/mattn/go-colorable v0.1.11 // indirect 9 | github.com/mattn/go-isatty v0.0.14 // indirect 10 | github.com/valyala/bytebufferpool v1.0.0 // indirect 11 | github.com/valyala/fasttemplate v1.2.1 // indirect 12 | golang.org/x/crypto v0.0.0-20210817164053-32db794688a5 // indirect 13 | golang.org/x/net v0.0.0-20210913180222-943fd674d43e // indirect 14 | golang.org/x/sys v0.0.0-20211103235746-7861aae1554b // indirect 15 | golang.org/x/text v0.3.7 // indirect 16 | ) 17 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/cache/client/rule/satisfied.go: -------------------------------------------------------------------------------- 1 | package rule 2 | 3 | import ( 4 | "github.com/kataras/iris/v12/context" 5 | ) 6 | 7 | type satisfiedRule struct{} 8 | 9 | var _ Rule = &satisfiedRule{} 10 | 11 | // Satisfied returns a rule which allows anything, 12 | // it's usually the last rule on chained rules if no next rule is given, 13 | // but it can be used outside of a chain too as a default allow-all rule. 14 | func Satisfied() Rule { 15 | return &satisfiedRule{} 16 | } 17 | 18 | func (n *satisfiedRule) Claim(*context.Context) bool { 19 | return true 20 | } 21 | 22 | func (n *satisfiedRule) Valid(*context.Context) bool { 23 | return true 24 | } 25 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /STRUCTURE.md: -------------------------------------------------------------------------------- 1 | # `demoapp` Project Structure 2 | 3 | This document outlines the Go project structure for each demo app implementation. All web frameworks covered in this repository will follow the same project structure with only some minor framework-specific modifications. 4 | 5 | **Status:** *Work in progress* 6 | 7 | ## Go Project Layout 8 | 9 | - cmd 10 | - api 11 | main.go 12 | - website 13 | main.go 14 | - internal 15 | - app 16 | - entities 17 | - pkg 18 | - http 19 | - entities 20 | - storage 21 | - entities 22 | - website.go 23 | - api.go 24 | -------------------------------------------------------------------------------- /echo/vendor/github.com/mattn/go-isatty/isatty_bsd.go: -------------------------------------------------------------------------------- 1 | //go:build (darwin || freebsd || openbsd || netbsd || dragonfly) && !appengine 2 | // +build darwin freebsd openbsd netbsd dragonfly 3 | // +build !appengine 4 | 5 | package isatty 6 | 7 | import "golang.org/x/sys/unix" 8 | 9 | // IsTerminal return true if the file descriptor is terminal. 10 | func IsTerminal(fd uintptr) bool { 11 | _, err := unix.IoctlGetTermios(int(fd), unix.TIOCGETA) 12 | return err == nil 13 | } 14 | 15 | // IsCygwinTerminal return true if the file descriptor is a cygwin or msys2 16 | // terminal. This is also always false on this environment. 17 | func IsCygwinTerminal(fd uintptr) bool { 18 | return false 19 | } 20 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/.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 | .idea 10 | .vscode 11 | 12 | # Architecture specific extensions/prefixes 13 | *.[568vq] 14 | [568vq].out 15 | 16 | *.cgo1.go 17 | *.cgo2.c 18 | _cgo_defun.c 19 | _cgo_gotypes.go 20 | _cgo_export.* 21 | 22 | _testmain.go 23 | 24 | *.exe 25 | 26 | .project 27 | EBNF.txt 28 | test1.tpl 29 | pongo2_internal_test.go 30 | tpl-error.out 31 | /count.out 32 | /cover.out 33 | *.swp 34 | *.iml 35 | /cpu.out 36 | /mem.out 37 | /pongo2.test 38 | *.error 39 | /profile 40 | /coverage.out 41 | /pongo2_internal_test.ignore 42 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/sitemap/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | First of all read our [Code of Conduct](https://github.com/kataras/sitemap/blob/master/CODE_OF_CONDUCT.md). 4 | 5 | ## PR 6 | 7 | 1. Open a new [issue](https://github.com/kataras/sitemap/issues/new) 8 | * Write version of your local Go programming language. 9 | * Describe your problem, what did you expect to see and what you see instead. 10 | * If it's a feature request, describe your idea as better as you can 11 | 2. Fork the [repository](https://github.com/kataras/sitemap). 12 | 3. Make your changes. 13 | 4. Compare & Push the PR from [here](https://github.com/kataras/sitemap/compare). 14 | -------------------------------------------------------------------------------- /iris/vendor/github.com/microcosm-cc/bluemonday/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | Latest tag and tip are supported. 6 | 7 | Older tags remain present but changes result in new tags and are not back ported... please verify any issue against the latest tag and tip. 8 | 9 | ## Reporting a Vulnerability 10 | 11 | Email: 12 | 13 | Bluemonday is pure OSS and not maintained by a company. As such there is no bug bounty program but security issues will be taken seriously and resolved as soon as possible. 14 | 15 | The maintainer lives in the United Kingdom and whilst the email is monitored expect a reply or ACK when the maintainer is awake. 16 | -------------------------------------------------------------------------------- /iris/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 | } -------------------------------------------------------------------------------- /iris/vendor/github.com/yosssi/ace/empty_element.go: -------------------------------------------------------------------------------- 1 | package ace 2 | 3 | import "io" 4 | 5 | // emptyElement represents an empty element. 6 | type emptyElement struct { 7 | elementBase 8 | } 9 | 10 | // Do nothing. 11 | func (e *emptyElement) WriteTo(w io.Writer) (int64, error) { 12 | return 0, nil 13 | } 14 | 15 | // CanHaveChildren returns false. 16 | func (e *emptyElement) CanHaveChildren() bool { 17 | return false 18 | } 19 | 20 | // newEmpty creates and returns an empty element. 21 | func newEmptyElement(ln *line, rslt *result, src *source, parent element, opts *Options) *emptyElement { 22 | return &emptyElement{ 23 | elementBase: newElementBase(ln, rslt, src, parent, opts), 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [KenanBek] 4 | patreon: # Replace with a single Patreon username 5 | open_collective: # Replace with a single Open Collective username 6 | ko_fi: # Replace with a single Ko-fi username 7 | tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel 8 | community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry 9 | liberapay: # Replace with a single Liberapay username 10 | issuehunt: # Replace with a single IssueHunt username 11 | otechie: # Replace with a single Otechie username 12 | custom: ['https://www.paypal.me/KananRahimov', 'https://www.codervlogger.com/#/portal/signup'] 13 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /echo/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/BurntSushi/toml/deprecated.go: -------------------------------------------------------------------------------- 1 | package toml 2 | 3 | import ( 4 | "encoding" 5 | "io" 6 | ) 7 | 8 | // Deprecated: use encoding.TextMarshaler 9 | type TextMarshaler encoding.TextMarshaler 10 | 11 | // Deprecated: use encoding.TextUnmarshaler 12 | type TextUnmarshaler encoding.TextUnmarshaler 13 | 14 | // Deprecated: use MetaData.PrimitiveDecode. 15 | func PrimitiveDecode(primValue Primitive, v interface{}) error { 16 | md := MetaData{decoded: make(map[string]struct{})} 17 | return md.unify(primValue.undecoded, rvalue(v)) 18 | } 19 | 20 | // Deprecated: use NewDecoder(reader).Decode(&value). 21 | func DecodeReader(r io.Reader, v interface{}) (MetaData, error) { return NewDecoder(r).Decode(v) } 22 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/core/netutil/client.go: -------------------------------------------------------------------------------- 1 | package netutil 2 | 3 | import ( 4 | "net" 5 | "net/http" 6 | "time" 7 | 8 | "github.com/kataras/golog" 9 | ) 10 | 11 | // Client returns a new http.Client using 12 | // the "timeout" for open connection. 13 | func Client(timeout time.Duration) *http.Client { 14 | transport := http.Transport{ 15 | Dial: func(network string, addr string) (net.Conn, error) { 16 | conn, err := net.DialTimeout(network, addr, timeout) 17 | if err != nil { 18 | golog.Debugf("%v", err) 19 | return nil, err 20 | } 21 | return conn, err 22 | }, 23 | } 24 | 25 | client := &http.Client{ 26 | Transport: &transport, 27 | } 28 | 29 | return client 30 | } 31 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | // +build linux,gc,386 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | 16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 18 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/syscall_linux_gc_386.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gc && 386 6 | // +build linux,gc,386 7 | 8 | package unix 9 | 10 | import "syscall" 11 | 12 | // Underlying system call writes to newoffset via pointer. 13 | // Implemented in assembly to avoid allocation. 14 | func seek(fd int, offset int64, whence int) (newoffset int64, err syscall.Errno) 15 | 16 | func socketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 17 | func rawsocketcall(call int, a0, a1, a2, a3, a4, a5 uintptr) (n int, err syscall.Errno) 18 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/text/message/catalog/gopre19.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 !go1.9 6 | // +build !go1.9 7 | 8 | package catalog 9 | 10 | import "golang.org/x/text/internal/catmsg" 11 | 12 | // A Message holds a collection of translations for the same phrase that may 13 | // vary based on the values of substitution arguments. 14 | type Message interface { 15 | catmsg.Message 16 | } 17 | 18 | func firstInSequence(m []Message) catmsg.Message { 19 | a := []catmsg.Message{} 20 | for _, m := range m { 21 | a = append(a, m) 22 | } 23 | return catmsg.FirstOf(a) 24 | } 25 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/crypto/acme/version_go112.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 go1.12 6 | // +build go1.12 7 | 8 | package acme 9 | 10 | import "runtime/debug" 11 | 12 | func init() { 13 | // Set packageVersion if the binary was built in modules mode and x/crypto 14 | // was not replaced with a different module. 15 | info, ok := debug.ReadBuildInfo() 16 | if !ok { 17 | return 18 | } 19 | for _, m := range info.Deps { 20 | if m.Path != "golang.org/x/crypto" { 21 | continue 22 | } 23 | if m.Replace == nil { 24 | packageVersion = m.Version 25 | } 26 | break 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /iris/vendor/github.com/vmihailenco/tagparser/v2/README.md: -------------------------------------------------------------------------------- 1 | # Opinionated Golang tag parser 2 | 3 | [![Build Status](https://travis-ci.org/vmihailenco/tagparser.png?branch=master)](https://travis-ci.org/vmihailenco/tagparser) 4 | [![GoDoc](https://godoc.org/github.com/vmihailenco/tagparser?status.svg)](https://godoc.org/github.com/vmihailenco/tagparser) 5 | 6 | ## Installation 7 | 8 | Install: 9 | 10 | ```shell 11 | go get github.com/vmihailenco/tagparser/v2 12 | ``` 13 | 14 | ## Quickstart 15 | 16 | ```go 17 | func ExampleParse() { 18 | tag := tagparser.Parse("some_name,key:value,key2:'complex value'") 19 | fmt.Println(tag.Name) 20 | fmt.Println(tag.Options) 21 | // Output: some_name 22 | // map[key:value key2:'complex value'] 23 | } 24 | ``` 25 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/crypto/acme/version_go112.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 go1.12 6 | // +build go1.12 7 | 8 | package acme 9 | 10 | import "runtime/debug" 11 | 12 | func init() { 13 | // Set packageVersion if the binary was built in modules mode and x/crypto 14 | // was not replaced with a different module. 15 | info, ok := debug.ReadBuildInfo() 16 | if !ok { 17 | return 18 | } 19 | for _, m := range info.Deps { 20 | if m.Path != "golang.org/x/crypto" { 21 | continue 22 | } 23 | if m.Replace == nil { 24 | packageVersion = m.Version 25 | } 26 | break 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /echo/assets/pages/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Echo

4 | 5 |

Submit a new entity:

6 | 7 | 8 |
9 | 10 | 11 |

12 | 13 | 14 | 15 |

16 | 17 | 18 | 19 |

20 | 21 | 22 |
23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /iris/assets/pages/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

Iris

4 | 5 |

Submit a new entity:

6 | 7 | 8 |
9 | 10 | 11 |

12 | 13 | 14 | 15 |

16 | 17 | 18 | 19 |

20 | 21 | 22 |
23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | // +build linux,gccgo,arm 7 | 8 | package unix 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 16 | var newoffset int64 17 | offsetLow := uint32(offset & 0xffffffff) 18 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 19 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 20 | return newoffset, err 21 | } 22 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/syscall_linux_gccgo_arm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build linux && gccgo && arm 6 | // +build linux,gccgo,arm 7 | 8 | package unix 9 | 10 | import ( 11 | "syscall" 12 | "unsafe" 13 | ) 14 | 15 | func seek(fd int, offset int64, whence int) (int64, syscall.Errno) { 16 | var newoffset int64 17 | offsetLow := uint32(offset & 0xffffffff) 18 | offsetHigh := uint32((offset >> 32) & 0xffffffff) 19 | _, _, err := Syscall6(SYS__LLSEEK, uintptr(fd), uintptr(offsetHigh), uintptr(offsetLow), uintptr(unsafe.Pointer(&newoffset)), uintptr(whence), 0) 20 | return newoffset, err 21 | } 22 | -------------------------------------------------------------------------------- /iris/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 | // +build purego appengine 6 | 7 | package strs 8 | 9 | import pref "google.golang.org/protobuf/reflect/protoreflect" 10 | 11 | func UnsafeString(b []byte) string { 12 | return string(b) 13 | } 14 | 15 | func UnsafeBytes(s string) []byte { 16 | return []byte(s) 17 | } 18 | 19 | type Builder struct{} 20 | 21 | func (*Builder) AppendFullName(prefix pref.FullName, name pref.Name) pref.FullName { 22 | return prefix.Append(name) 23 | } 24 | 25 | func (*Builder) MakeString(b []byte) string { 26 | return string(b) 27 | } 28 | -------------------------------------------------------------------------------- /iris/vendor/github.com/andybalholm/brotli/encoder_dict.go: -------------------------------------------------------------------------------- 1 | package brotli 2 | 3 | /* Dictionary data (words and transforms) for 1 possible context */ 4 | type encoderDictionary struct { 5 | words *dictionary 6 | cutoffTransformsCount uint32 7 | cutoffTransforms uint64 8 | hash_table []uint16 9 | buckets []uint16 10 | dict_words []dictWord 11 | } 12 | 13 | func initEncoderDictionary(dict *encoderDictionary) { 14 | dict.words = getDictionary() 15 | 16 | dict.hash_table = kStaticDictionaryHash[:] 17 | dict.buckets = kStaticDictionaryBuckets[:] 18 | dict.dict_words = kStaticDictionaryWords[:] 19 | 20 | dict.cutoffTransformsCount = kCutoffTransformsCount 21 | dict.cutoffTransforms = kCutoffTransforms 22 | } 23 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos 7 | 8 | package unix 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && solaris 6 | // +build amd64,solaris 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: usec} 16 | } 17 | 18 | func (iov *Iovec) SetLen(length int) { 19 | iov.Len = uint64(length) 20 | } 21 | 22 | func (msghdr *Msghdr) SetIovlen(length int) { 23 | msghdr.Iovlen = int32(length) 24 | } 25 | 26 | func (cmsg *Cmsghdr) SetLen(length int) { 27 | cmsg.Len = uint32(length) 28 | } 29 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/race0.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || (darwin && !race) || (linux && !race) || (freebsd && !race) || netbsd || openbsd || solaris || dragonfly || zos 6 | // +build aix darwin,!race linux,!race freebsd,!race netbsd openbsd solaris dragonfly zos 7 | 8 | package unix 9 | 10 | import ( 11 | "unsafe" 12 | ) 13 | 14 | const raceenabled = false 15 | 16 | func raceAcquire(addr unsafe.Pointer) { 17 | } 18 | 19 | func raceReleaseMerge(addr unsafe.Pointer) { 20 | } 21 | 22 | func raceReadRange(addr unsafe.Pointer, len int) { 23 | } 24 | 25 | func raceWriteRange(addr unsafe.Pointer, len int) { 26 | } 27 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/syscall_solaris_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build amd64 && solaris 6 | // +build amd64,solaris 7 | 8 | package unix 9 | 10 | func setTimespec(sec, nsec int64) Timespec { 11 | return Timespec{Sec: sec, Nsec: nsec} 12 | } 13 | 14 | func setTimeval(sec, usec int64) Timeval { 15 | return Timeval{Sec: sec, Usec: usec} 16 | } 17 | 18 | func (iov *Iovec) SetLen(length int) { 19 | iov.Len = uint64(length) 20 | } 21 | 22 | func (msghdr *Msghdr) SetIovlen(length int) { 23 | msghdr.Iovlen = int32(length) 24 | } 25 | 26 | func (cmsg *Cmsghdr) SetLen(length int) { 27 | cmsg.Len = uint32(length) 28 | } 29 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/windows/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build windows && race 6 | // +build windows,race 7 | 8 | package windows 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/tags_comment.go: -------------------------------------------------------------------------------- 1 | package pongo2 2 | 3 | type tagCommentNode struct{} 4 | 5 | func (node *tagCommentNode) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error { 6 | return nil 7 | } 8 | 9 | func tagCommentParser(doc *Parser, start *Token, arguments *Parser) (INodeTag, *Error) { 10 | commentNode := &tagCommentNode{} 11 | 12 | // TODO: Process the endtag's arguments (see django 'comment'-tag documentation) 13 | err := doc.SkipUntilTag("endcomment") 14 | if err != nil { 15 | return nil, err 16 | } 17 | 18 | if arguments.Count() != 0 { 19 | return nil, arguments.Error("Tag 'comment' does not take any argument.", nil) 20 | } 21 | 22 | return commentNode, nil 23 | } 24 | 25 | func init() { 26 | RegisterTag("comment", tagCommentParser) 27 | } 28 | -------------------------------------------------------------------------------- /echo/go.mod: -------------------------------------------------------------------------------- 1 | module demoapp 2 | 3 | go 1.17 4 | 5 | replace github.com/CoderVlogger/go-web-frameworks/pkg => ../pkg 6 | 7 | require ( 8 | github.com/CoderVlogger/go-web-frameworks/pkg v0.0.0-20220207162710-24ad69459d6b 9 | github.com/labstack/echo/v4 v4.6.3 10 | ) 11 | 12 | require ( 13 | github.com/labstack/gommon v0.3.1 // indirect 14 | github.com/mattn/go-colorable v0.1.12 // indirect 15 | github.com/mattn/go-isatty v0.0.14 // indirect 16 | github.com/valyala/bytebufferpool v1.0.0 // indirect 17 | github.com/valyala/fasttemplate v1.2.1 // indirect 18 | golang.org/x/crypto v0.0.0-20220208050332-20e1d8d225ab // indirect 19 | golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd // indirect 20 | golang.org/x/sys v0.0.0-20220207234003-57398862261d // indirect 21 | golang.org/x/text v0.3.7 // indirect 22 | ) 23 | -------------------------------------------------------------------------------- /iris/vendor/github.com/kataras/iris/v12/SECURITY.md: -------------------------------------------------------------------------------- 1 | # Security Policy 2 | 3 | ## Supported Versions 4 | 5 | We are focusing on fixing issues and security vulnerabilities to the latest and greatest version of Iris. 6 | Iris users SHOULD always update their backend code to the latest version of Iris API, there is a complete [HISTORY](https://github.com/kataras/iris/blob/master/HISTORY.md) file 7 | which acts as a code migration assistant. 8 | 9 | ## Reporting a Vulnerability 10 | 11 | Please report (suspected) security vulnerabilities to 12 | **[iris-go@outlook.com](mailto:iris-go@outlook.com)**. You will receive a response from 13 | us within 3-4 working days. If the issue is confirmed, we will release a new minor version as soon 14 | as possible depending on complexity but historically within a few hours or days. 15 | -------------------------------------------------------------------------------- /echo/vendor/github.com/labstack/echo/v4/.gitattributes: -------------------------------------------------------------------------------- 1 | # Automatically normalize line endings for all text-based files 2 | # http://git-scm.com/docs/gitattributes#_end_of_line_conversion 3 | * text=auto 4 | 5 | # For the following file types, normalize line endings to LF on checking and 6 | # prevent conversion to CRLF when they are checked out (this is required in 7 | # order to prevent newline related issues) 8 | .* text eol=lf 9 | *.go text eol=lf 10 | *.yml text eol=lf 11 | *.html text eol=lf 12 | *.css text eol=lf 13 | *.js text eol=lf 14 | *.json text eol=lf 15 | LICENSE text eol=lf 16 | 17 | # Exclude `website` and `cookbook` from GitHub's language statistics 18 | # https://github.com/github/linguist#using-gitattributes 19 | cookbook/* linguist-documentation 20 | website/* linguist-documentation 21 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/net/http2/go115.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build go1.15 6 | // +build go1.15 7 | 8 | package http2 9 | 10 | import ( 11 | "context" 12 | "crypto/tls" 13 | ) 14 | 15 | // dialTLSWithContext uses tls.Dialer, added in Go 1.15, to open a TLS 16 | // connection. 17 | func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { 18 | dialer := &tls.Dialer{ 19 | Config: cfg, 20 | } 21 | cn, err := dialer.DialContext(ctx, network, addr) 22 | if err != nil { 23 | return nil, err 24 | } 25 | tlsCn := cn.(*tls.Conn) // DialContext comment promises this will always succeed 26 | return tlsCn, nil 27 | } 28 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | // +build darwin,race linux,race freebsd,race 7 | 8 | package unix 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/race.go: -------------------------------------------------------------------------------- 1 | // Copyright 2012 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin && race) || (linux && race) || (freebsd && race) 6 | // +build darwin,race linux,race freebsd,race 7 | 8 | package unix 9 | 10 | import ( 11 | "runtime" 12 | "unsafe" 13 | ) 14 | 15 | const raceenabled = true 16 | 17 | func raceAcquire(addr unsafe.Pointer) { 18 | runtime.RaceAcquire(addr) 19 | } 20 | 21 | func raceReleaseMerge(addr unsafe.Pointer) { 22 | runtime.RaceReleaseMerge(addr) 23 | } 24 | 25 | func raceReadRange(addr unsafe.Pointer, len int) { 26 | runtime.RaceReadRange(addr, len) 27 | } 28 | 29 | func raceWriteRange(addr unsafe.Pointer, len int) { 30 | runtime.RaceWriteRange(addr, len) 31 | } 32 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin 6 | // +build darwin 7 | 8 | package unix 9 | 10 | import "unsafe" 11 | 12 | // ReadDirent reads directory entries from fd and writes them into buf. 13 | func ReadDirent(fd int, buf []byte) (n int, err error) { 14 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 15 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 16 | // actual system call is getdirentries64, 64 is a good guess. 17 | // TODO(rsc): Can we use a single global basep for all calls? 18 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 19 | return Getdirentries(fd, buf, base) 20 | } 21 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 17 | } 18 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/readdirent_getdirentries.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build darwin 6 | // +build darwin 7 | 8 | package unix 9 | 10 | import "unsafe" 11 | 12 | // ReadDirent reads directory entries from fd and writes them into buf. 13 | func ReadDirent(fd int, buf []byte) (n int, err error) { 14 | // Final argument is (basep *uintptr) and the syscall doesn't take nil. 15 | // 64 bits should be enough. (32 bits isn't even on 386). Since the 16 | // actual system call is getdirentries64, 64 is a good guess. 17 | // TODO(rsc): Can we use a single global basep for all calls? 18 | var base = (*uintptr)(unsafe.Pointer(new(uint64))) 19 | return Getdirentries(fd, buf, base) 20 | } 21 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/zptrace_linux_arm64.go: -------------------------------------------------------------------------------- 1 | // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 | 3 | package unix 4 | 5 | import "unsafe" 6 | 7 | // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 | func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 | iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 | return ptrace(PTRACE_GETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 11 | } 12 | 13 | // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 | func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 | iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 | return ptrace(PTRACE_SETREGSET, pid, uintptr(addr), uintptr(unsafe.Pointer(&iovec))) 17 | } 18 | -------------------------------------------------------------------------------- /iris/vendor/gopkg.in/ini.v1/helper.go: -------------------------------------------------------------------------------- 1 | // Copyright 2019 Unknwon 2 | // 3 | // Licensed under the Apache License, Version 2.0 (the "License"): you may 4 | // not use this file except in compliance with the License. You may obtain 5 | // 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, WITHOUT 11 | // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 | // License for the specific language governing permissions and limitations 13 | // under the License. 14 | 15 | package ini 16 | 17 | func inSlice(str string, s []string) bool { 18 | for _, v := range s { 19 | if str == v { 20 | return true 21 | } 22 | } 23 | return false 24 | } 25 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | package unix 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + uitoa(uint(-val)) 13 | } 14 | return uitoa(uint(val)) 15 | } 16 | 17 | func uitoa(val uint) string { 18 | var buf [32]byte // big enough for int64 19 | i := len(buf) - 1 20 | for val >= 10 { 21 | buf[i] = byte(val%10 + '0') 22 | i-- 23 | val /= 10 24 | } 25 | buf[i] = byte(val + '0') 26 | return string(buf[i:]) 27 | } 28 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/str.go: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris 7 | 8 | package unix 9 | 10 | func itoa(val int) string { // do it here rather than with fmt to avoid dependency 11 | if val < 0 { 12 | return "-" + uitoa(uint(-val)) 13 | } 14 | return uitoa(uint(val)) 15 | } 16 | 17 | func uitoa(val uint) string { 18 | var buf [32]byte // big enough for int64 19 | i := len(buf) - 1 20 | for val >= 10 { 21 | buf[i] = byte(val%10 + '0') 22 | i-- 23 | val /= 10 24 | } 25 | buf[i] = byte(val + '0') 26 | return string(buf[i:]) 27 | } 28 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for mips64, OpenBSD 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-56 18 | JMP syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | JMP syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | JMP syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | JMP syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | JMP syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/asm_openbsd_mips64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2019 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build gc 6 | // +build gc 7 | 8 | #include "textflag.h" 9 | 10 | // 11 | // System call support for mips64, OpenBSD 12 | // 13 | 14 | // Just jump to package syscall's implementation for all these functions. 15 | // The runtime may know about them. 16 | 17 | TEXT ·Syscall(SB),NOSPLIT,$0-56 18 | JMP syscall·Syscall(SB) 19 | 20 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 21 | JMP syscall·Syscall6(SB) 22 | 23 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 24 | JMP syscall·Syscall9(SB) 25 | 26 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 27 | JMP syscall·RawSyscall(SB) 28 | 29 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 30 | JMP syscall·RawSyscall6(SB) 31 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc64 6 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 7 | // +build gc 8 | // +build !ppc64le 9 | // +build !ppc64 10 | 11 | package unix 12 | 13 | import "syscall" 14 | 15 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 17 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 18 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 19 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/syscall_unix_gc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris) && gc && !ppc64le && !ppc64 6 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 7 | // +build gc 8 | // +build !ppc64le 9 | // +build !ppc64 10 | 11 | package unix 12 | 13 | import "syscall" 14 | 15 | func Syscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 16 | func Syscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 17 | func RawSyscall(trap, a1, a2, a3 uintptr) (r1, r2 uintptr, err syscall.Errno) 18 | func RawSyscall6(trap, a1, a2, a3, a4, a5, a6 uintptr) (r1, r2 uintptr, err syscall.Errno) 19 | -------------------------------------------------------------------------------- /iris/vendor/github.com/fatih/structs/tags.go: -------------------------------------------------------------------------------- 1 | package structs 2 | 3 | import "strings" 4 | 5 | // tagOptions contains a slice of tag options 6 | type tagOptions []string 7 | 8 | // Has returns true if the given option is available in tagOptions 9 | func (t tagOptions) Has(opt string) bool { 10 | for _, tagOpt := range t { 11 | if tagOpt == opt { 12 | return true 13 | } 14 | } 15 | 16 | return false 17 | } 18 | 19 | // parseTag splits a struct field's tag into its name and a list of options 20 | // which comes after a name. A tag is in the form of: "name,option1,option2". 21 | // The name can be neglectected. 22 | func parseTag(tag string) (string, tagOptions) { 23 | // tag is one of followings: 24 | // "" 25 | // "name" 26 | // "name,opt" 27 | // "name,opt,opt2" 28 | // ",opt" 29 | 30 | res := strings.Split(tag, ",") 31 | return res[0], res[1:] 32 | } 33 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/net/http2/not_go115.go: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build !go1.15 6 | // +build !go1.15 7 | 8 | package http2 9 | 10 | import ( 11 | "context" 12 | "crypto/tls" 13 | ) 14 | 15 | // dialTLSWithContext opens a TLS connection. 16 | func (t *Transport) dialTLSWithContext(ctx context.Context, network, addr string, cfg *tls.Config) (*tls.Conn, error) { 17 | cn, err := tls.Dial(network, addr, cfg) 18 | if err != nil { 19 | return nil, err 20 | } 21 | if err := cn.Handshake(); err != nil { 22 | return nil, err 23 | } 24 | if cfg.InsecureSkipVerify { 25 | return cn, nil 26 | } 27 | if err := cn.VerifyHostname(cfg.ServerName); err != nil { 28 | return nil, err 29 | } 30 | return cn, nil 31 | } 32 | -------------------------------------------------------------------------------- /echo/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 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /pkg/model.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | 3 | type ( 4 | TextResponse struct { 5 | Message string `json:"message"` 6 | } 7 | 8 | Entity struct { 9 | ID string `json:"id"` 10 | Type EntityType `json:"type" form:"type"` 11 | Name string `json:"name" form:"name"` 12 | Description string `json:"description" form:"description"` 13 | } 14 | 15 | EntityType string 16 | ) 17 | 18 | const ( 19 | UknownEntityType EntityType = "unknown" 20 | PersonEntityType EntityType = "person" 21 | CompanyEntityType EntityType = "company" 22 | PlaceEntityType EntityType = "place" 23 | BookEntityType EntityType = "book" 24 | MovieEntityType EntityType = "movie" 25 | TvSeriesEntityType EntityType = "tv_series" 26 | GameEntityType EntityType = "game" 27 | AlbumEntityType EntityType = "album" 28 | SongEntityType EntityType = "song" 29 | ) 30 | -------------------------------------------------------------------------------- /echo/server.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "github.com/CoderVlogger/go-web-frameworks/pkg" 5 | 6 | "github.com/labstack/echo/v4" 7 | ) 8 | 9 | var ( 10 | pageSize = 4 11 | apiPrefix = "/api/" 12 | ) 13 | 14 | type WebApplication struct { 15 | echoApp *echo.Echo 16 | entityRepository pkg.EntityRepository 17 | } 18 | 19 | func NewWebApplication() *WebApplication { 20 | er := pkg.NewEntityMemoryRepository() 21 | er.Init() 22 | 23 | return &WebApplication{ 24 | echoApp: echo.New(), 25 | entityRepository: er, 26 | } 27 | } 28 | 29 | func (wa *WebApplication) Init() { 30 | wa.initAPIRoutes() 31 | wa.initWebsite() 32 | } 33 | 34 | func (wa *WebApplication) Start(address string) { 35 | wa.echoApp.Logger.Fatal(wa.echoApp.Start(address)) 36 | } 37 | 38 | func main() { 39 | wa := NewWebApplication() 40 | 41 | wa.Init() 42 | wa.Start(":8080") 43 | } 44 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/net/http2/go111.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 go1.11 6 | // +build go1.11 7 | 8 | package http2 9 | 10 | import ( 11 | "net/http/httptrace" 12 | "net/textproto" 13 | ) 14 | 15 | func traceHasWroteHeaderField(trace *httptrace.ClientTrace) bool { 16 | return trace != nil && trace.WroteHeaderField != nil 17 | } 18 | 19 | func traceWroteHeaderField(trace *httptrace.ClientTrace, k, v string) { 20 | if trace != nil && trace.WroteHeaderField != nil { 21 | trace.WroteHeaderField(k, []string{v}) 22 | } 23 | } 24 | 25 | func traceGot1xxResponseFunc(trace *httptrace.ClientTrace) func(int, textproto.MIMEHeader) error { 26 | if trace != nil { 27 | return trace.Got1xxResponse 28 | } 29 | return nil 30 | } 31 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/asm_bsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /echo/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 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/ztypes_illumos_amd64.go: -------------------------------------------------------------------------------- 1 | // cgo -godefs types_illumos.go | go run mkpost.go 2 | // Code generated by the command above; see README.md. DO NOT EDIT. 3 | 4 | //go:build amd64 && illumos 5 | // +build amd64,illumos 6 | 7 | package unix 8 | 9 | const ( 10 | TUNNEWPPA = 0x540001 11 | TUNSETPPA = 0x540002 12 | 13 | I_STR = 0x5308 14 | I_POP = 0x5303 15 | I_PUSH = 0x5302 16 | I_LINK = 0x530c 17 | I_UNLINK = 0x530d 18 | I_PLINK = 0x5316 19 | I_PUNLINK = 0x5317 20 | 21 | IF_UNITSEL = -0x7ffb8cca 22 | ) 23 | 24 | type strbuf struct { 25 | Maxlen int32 26 | Len int32 27 | Buf *int8 28 | } 29 | 30 | type Strioctl struct { 31 | Cmd int32 32 | Timout int32 33 | Len int32 34 | Dp *int8 35 | } 36 | 37 | type Lifreq struct { 38 | Name [32]int8 39 | Lifru1 [4]byte 40 | Type uint32 41 | Lifru [336]byte 42 | } 43 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/asm_bsd_arm.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | B syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | B syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | B syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | B syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | B syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/ztypes_illumos_amd64.go: -------------------------------------------------------------------------------- 1 | // cgo -godefs types_illumos.go | go run mkpost.go 2 | // Code generated by the command above; see README.md. DO NOT EDIT. 3 | 4 | //go:build amd64 && illumos 5 | // +build amd64,illumos 6 | 7 | package unix 8 | 9 | const ( 10 | TUNNEWPPA = 0x540001 11 | TUNSETPPA = 0x540002 12 | 13 | I_STR = 0x5308 14 | I_POP = 0x5303 15 | I_PUSH = 0x5302 16 | I_LINK = 0x530c 17 | I_UNLINK = 0x530d 18 | I_PLINK = 0x5316 19 | I_PUNLINK = 0x5317 20 | 21 | IF_UNITSEL = -0x7ffb8cca 22 | ) 23 | 24 | type strbuf struct { 25 | Maxlen int32 26 | Len int32 27 | Buf *int8 28 | } 29 | 30 | type Strioctl struct { 31 | Cmd int32 32 | Timout int32 33 | Len int32 34 | Dp *int8 35 | } 36 | 37 | type Lifreq struct { 38 | Name [32]int8 39 | Lifru1 [4]byte 40 | Type uint32 41 | Lifru [336]byte 42 | } 43 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | // Unix environment variables. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getenv(key string) (value string, found bool) { 15 | return syscall.Getenv(key) 16 | } 17 | 18 | func Setenv(key, value string) error { 19 | return syscall.Setenv(key, value) 20 | } 21 | 22 | func Clearenv() { 23 | syscall.Clearenv() 24 | } 25 | 26 | func Environ() []string { 27 | return syscall.Environ() 28 | } 29 | 30 | func Unsetenv(key string) error { 31 | return syscall.Unsetenv(key) 32 | } 33 | -------------------------------------------------------------------------------- /iris/vendor/github.com/CoderVlogger/go-web-frameworks/pkg/model.go: -------------------------------------------------------------------------------- 1 | package pkg 2 | 3 | type ( 4 | TextResponse struct { 5 | Message string `json:"message"` 6 | } 7 | 8 | Entity struct { 9 | ID string `json:"id"` 10 | Type EntityType `json:"type"` 11 | Name string `json:"name"` 12 | Description string `json:"description"` 13 | } 14 | 15 | EntityType string 16 | ) 17 | 18 | const ( 19 | UknownEntityType EntityType = "unknown" 20 | PersonEntityType EntityType = "person" 21 | CompanyEntityType EntityType = "company" 22 | PlaceEntityType EntityType = "place" 23 | BookEntityType EntityType = "book" 24 | MovieEntityType EntityType = "movie" 25 | TvSeriesEntityType EntityType = "tv_series" 26 | GameEntityType EntityType = "game" 27 | AlbumEntityType EntityType = "album" 28 | SongEntityType EntityType = "song" 29 | ) 30 | -------------------------------------------------------------------------------- /iris/vendor/github.com/flosch/pongo2/v4/options.go: -------------------------------------------------------------------------------- 1 | package pongo2 2 | 3 | // Options allow you to change the behavior of template-engine. 4 | // You can change the options before calling the Execute method. 5 | type Options struct { 6 | // If this is set to true the first newline after a block is removed (block, not variable tag!). Defaults to false. 7 | TrimBlocks bool 8 | 9 | // If this is set to true leading spaces and tabs are stripped from the start of a line to a block. Defaults to false 10 | LStripBlocks bool 11 | } 12 | 13 | func newOptions() *Options { 14 | return &Options{ 15 | TrimBlocks: false, 16 | LStripBlocks: false, 17 | } 18 | } 19 | 20 | // Update updates this options from another options. 21 | func (opt *Options) Update(other *Options) *Options { 22 | opt.TrimBlocks = other.TrimBlocks 23 | opt.LStripBlocks = other.LStripBlocks 24 | 25 | return opt 26 | } 27 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/env_unix.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix || darwin || dragonfly || freebsd || linux || netbsd || openbsd || solaris || zos 6 | // +build aix darwin dragonfly freebsd linux netbsd openbsd solaris zos 7 | 8 | // Unix environment variables. 9 | 10 | package unix 11 | 12 | import "syscall" 13 | 14 | func Getenv(key string) (value string, found bool) { 15 | return syscall.Getenv(key) 16 | } 17 | 18 | func Setenv(key, value string) error { 19 | return syscall.Setenv(key, value) 20 | } 21 | 22 | func Clearenv() { 23 | syscall.Clearenv() 24 | } 25 | 26 | func Environ() []string { 27 | return syscall.Environ() 28 | } 29 | 30 | func Unsetenv(key string) error { 31 | return syscall.Unsetenv(key) 32 | } 33 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/asm_bsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for 386 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/asm_bsd_386.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (freebsd || netbsd || openbsd) && gc 6 | // +build freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for 386 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-28 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-40 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-52 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-28 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-40 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /iris/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 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/dev_aix_ppc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix && ppc 6 | // +build aix,ppc 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used by AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev >> 16) & 0xffff) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32(dev & 0xffff) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | return uint64(((major) << 16) | (minor)) 27 | } 28 | -------------------------------------------------------------------------------- /iris/vendor/github.com/golang/snappy/encode_asm.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Snappy-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 !appengine 6 | // +build gc 7 | // +build !noasm 8 | // +build amd64 arm64 9 | 10 | package snappy 11 | 12 | // emitLiteral has the same semantics as in encode_other.go. 13 | // 14 | //go:noescape 15 | func emitLiteral(dst, lit []byte) int 16 | 17 | // emitCopy has the same semantics as in encode_other.go. 18 | // 19 | //go:noescape 20 | func emitCopy(dst []byte, offset, length int) int 21 | 22 | // extendMatch has the same semantics as in encode_other.go. 23 | // 24 | //go:noescape 25 | func extendMatch(src []byte, i, j int) int 26 | 27 | // encodeBlock has the same semantics as in encode_other.go. 28 | // 29 | //go:noescape 30 | func encodeBlock(dst, src []byte) (d int) 31 | -------------------------------------------------------------------------------- /iris/vendor/golang.org/x/sys/unix/dev_aix_ppc.go: -------------------------------------------------------------------------------- 1 | // Copyright 2018 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build aix && ppc 6 | // +build aix,ppc 7 | 8 | // Functions to access/create device major and minor numbers matching the 9 | // encoding used by AIX. 10 | 11 | package unix 12 | 13 | // Major returns the major component of a Linux device number. 14 | func Major(dev uint64) uint32 { 15 | return uint32((dev >> 16) & 0xffff) 16 | } 17 | 18 | // Minor returns the minor component of a Linux device number. 19 | func Minor(dev uint64) uint32 { 20 | return uint32(dev & 0xffff) 21 | } 22 | 23 | // Mkdev returns a Linux device number generated from the given major and minor 24 | // components. 25 | func Mkdev(major, minor uint32) uint64 { 26 | return uint64(((major) << 16) | (minor)) 27 | } 28 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/asm_bsd_arm64.s: -------------------------------------------------------------------------------- 1 | // Copyright 2021 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | //go:build (darwin || freebsd || netbsd || openbsd) && gc 6 | // +build darwin freebsd netbsd openbsd 7 | // +build gc 8 | 9 | #include "textflag.h" 10 | 11 | // System call support for ARM64 BSD 12 | 13 | // Just jump to package syscall's implementation for all these functions. 14 | // The runtime may know about them. 15 | 16 | TEXT ·Syscall(SB),NOSPLIT,$0-56 17 | JMP syscall·Syscall(SB) 18 | 19 | TEXT ·Syscall6(SB),NOSPLIT,$0-80 20 | JMP syscall·Syscall6(SB) 21 | 22 | TEXT ·Syscall9(SB),NOSPLIT,$0-104 23 | JMP syscall·Syscall9(SB) 24 | 25 | TEXT ·RawSyscall(SB),NOSPLIT,$0-56 26 | JMP syscall·RawSyscall(SB) 27 | 28 | TEXT ·RawSyscall6(SB),NOSPLIT,$0-80 29 | JMP syscall·RawSyscall6(SB) 30 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go amd64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | //go:build go1.13 5 | // +build go1.13 6 | 7 | #include "textflag.h" 8 | 9 | TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 10 | JMP libc_fdopendir(SB) 11 | 12 | GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 13 | DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) 14 | 15 | TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 16 | JMP libc_closedir(SB) 17 | 18 | GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 19 | DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) 20 | 21 | TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 22 | JMP libc_readdir_r(SB) 23 | 24 | GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 25 | DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) 26 | -------------------------------------------------------------------------------- /echo/vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.s: -------------------------------------------------------------------------------- 1 | // go run mkasm_darwin.go arm64 2 | // Code generated by the command above; DO NOT EDIT. 3 | 4 | //go:build go1.13 5 | // +build go1.13 6 | 7 | #include "textflag.h" 8 | 9 | TEXT libc_fdopendir_trampoline<>(SB),NOSPLIT,$0-0 10 | JMP libc_fdopendir(SB) 11 | 12 | GLOBL ·libc_fdopendir_trampoline_addr(SB), RODATA, $8 13 | DATA ·libc_fdopendir_trampoline_addr(SB)/8, $libc_fdopendir_trampoline<>(SB) 14 | 15 | TEXT libc_closedir_trampoline<>(SB),NOSPLIT,$0-0 16 | JMP libc_closedir(SB) 17 | 18 | GLOBL ·libc_closedir_trampoline_addr(SB), RODATA, $8 19 | DATA ·libc_closedir_trampoline_addr(SB)/8, $libc_closedir_trampoline<>(SB) 20 | 21 | TEXT libc_readdir_r_trampoline<>(SB),NOSPLIT,$0-0 22 | JMP libc_readdir_r(SB) 23 | 24 | GLOBL ·libc_readdir_r_trampoline_addr(SB), RODATA, $8 25 | DATA ·libc_readdir_r_trampoline_addr(SB)/8, $libc_readdir_r_trampoline<>(SB) 26 | --------------------------------------------------------------------------------