├── .gitignore ├── _examples ├── intermediate │ ├── i18n │ │ └── locales │ │ │ ├── locale_zh-CN.ini │ │ │ ├── locale_el-GR.ini │ │ │ └── locale_en-US.ini │ ├── view │ │ ├── template_html_1 │ │ │ ├── templates │ │ │ │ ├── mypage.html │ │ │ │ └── layout.html │ │ │ └── main.go │ │ ├── overview │ │ │ └── templates │ │ │ │ └── hi.html │ │ ├── template_html_2 │ │ │ ├── templates │ │ │ │ ├── partials │ │ │ │ │ └── page1_partial1.html │ │ │ │ ├── page1.html │ │ │ │ └── layouts │ │ │ │ │ ├── layout.html │ │ │ │ │ └── mylayout.html │ │ │ └── README.md │ │ ├── template_html_0 │ │ │ ├── templates │ │ │ │ └── hi.html │ │ │ └── main.go │ │ ├── context-view-data │ │ │ └── templates │ │ │ │ ├── index.html │ │ │ │ └── layouts │ │ │ │ └── layout.html │ │ └── embedding-templates-into-app │ │ │ ├── templates │ │ │ └── hi.html │ │ │ └── main.go │ ├── e-mail │ │ └── templates │ │ │ └── mail_body.html │ ├── upload-files │ │ └── templates │ │ │ └── upload_form.html │ ├── websockets │ │ ├── native-messages │ │ │ └── templates │ │ │ │ └── client.html │ │ ├── secure │ │ │ └── templates │ │ │ │ └── client.html │ │ ├── overview │ │ │ └── templates │ │ │ │ └── client.html │ │ ├── connectionlist │ │ │ └── templates │ │ │ │ └── client.html │ │ └── ridiculous-simple │ │ │ └── websockets.html │ ├── pprof │ │ └── main.go │ ├── password-hashing │ │ └── main.go │ ├── custom-listener │ │ └── main.go │ ├── custom-httpserver │ │ └── main.go │ └── graceful-shutdown │ │ └── main.go ├── advanced │ ├── url-shortener │ │ ├── resources │ │ │ └── css │ │ │ │ └── style.css │ │ ├── shortener.go │ │ └── templates │ │ │ └── index.html │ ├── subdomains │ │ └── multi │ │ │ └── public │ │ │ ├── assets │ │ │ └── images │ │ │ │ └── test.ico │ │ │ └── upload_resources │ │ │ └── iris_favicon_32_32.ico │ ├── typescript │ │ └── www │ │ │ ├── index.html │ │ │ └── scripts │ │ │ └── app.ts │ ├── cloud-editor │ │ └── www │ │ │ ├── index.html │ │ │ └── scripts │ │ │ ├── app.ts │ │ │ └── tsconfig.json │ └── online-visitors │ │ ├── static │ │ └── assets │ │ │ └── js │ │ │ └── visitors.js │ │ └── templates │ │ └── other.html └── beginner │ ├── file-server │ ├── assets │ │ └── css │ │ │ └── styles.css │ └── main.go │ ├── send-files │ ├── files │ │ └── first.zip │ └── main.go │ ├── favicon │ ├── static │ │ └── favicons │ │ │ └── iris_favicon_32_32.ico │ └── main.go │ ├── hello-world │ └── main.go │ ├── listen-unix │ └── main.go │ ├── read-form │ └── templates │ │ └── form.html │ ├── write-json │ └── main.go │ └── read-json │ └── main.go ├── logo.jpg ├── vendor ├── golang.org │ └── x │ │ ├── net │ │ ├── codereview.cfg │ │ ├── http2 │ │ │ ├── h2demo │ │ │ │ ├── rootCA.srl │ │ │ │ ├── Makefile │ │ │ │ └── README │ │ │ ├── Makefile │ │ │ ├── not_go18.go │ │ │ └── README │ │ ├── html │ │ │ ├── charset │ │ │ │ └── testdata │ │ │ │ │ ├── UTF-16BE-BOM.html │ │ │ │ │ ├── UTF-16LE-BOM.html │ │ │ │ │ └── README │ │ │ └── testdata │ │ │ │ └── webkit │ │ │ │ ├── pending-spec-changes-plain-text-unsafe.dat │ │ │ │ ├── scripted │ │ │ │ ├── adoption01.dat │ │ │ │ └── webkit01.dat │ │ │ │ ├── adoption02.dat │ │ │ │ ├── inbody01.dat │ │ │ │ └── isindex.dat │ │ ├── README │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── route │ │ │ ├── syscall.s │ │ │ ├── interface_announce.go │ │ │ └── interface_multicast.go │ │ ├── ipv4 │ │ │ ├── sys_linux_386.s │ │ │ ├── sys_solaris_amd64.s │ │ │ ├── sockopt_stub.go │ │ │ ├── sys_stub.go │ │ │ ├── bpfopt_stub.go │ │ │ ├── sockopt_asmreqn_stub.go │ │ │ ├── sockopt_ssmreq_stub.go │ │ │ ├── icmp_stub.go │ │ │ ├── payload.go │ │ │ ├── control_stub.go │ │ │ ├── icmp_linux.go │ │ │ ├── syscall_windows.go │ │ │ ├── sockopt_asmreq_stub.go │ │ │ ├── zsys_netbsd.go │ │ │ ├── zsys_openbsd.go │ │ │ ├── control_windows.go │ │ │ ├── zsys_dragonfly.go │ │ │ ├── bpfopt_linux.go │ │ │ ├── genericopt_stub.go │ │ │ └── syscall_unix.go │ │ ├── ipv6 │ │ │ ├── sys_linux_386.s │ │ │ ├── sys_solaris_amd64.s │ │ │ ├── sys_stub.go │ │ │ ├── sockopt_stub.go │ │ │ ├── bpfopt_stub.go │ │ │ ├── icmp_stub.go │ │ │ ├── sockopt_ssmreq_stub.go │ │ │ ├── payload.go │ │ │ ├── icmp_windows.go │ │ │ ├── control_stub.go │ │ │ ├── syscall_windows.go │ │ │ ├── sockopt_asmreq_posix.go │ │ │ ├── icmp_linux.go │ │ │ ├── icmp_solaris.go │ │ │ ├── icmp_bsd.go │ │ │ ├── control_windows.go │ │ │ ├── bpfopt_linux.go │ │ │ ├── syscall_unix.go │ │ │ └── genericopt_stub.go │ │ ├── icmp │ │ │ ├── sys_freebsd.go │ │ │ ├── helper.go │ │ │ └── ipv6.go │ │ ├── lif │ │ │ ├── sys_solaris_amd64.s │ │ │ └── syscall.go │ │ ├── webdav │ │ │ ├── file_go1.7.go │ │ │ ├── file_go1.6.go │ │ │ └── internal │ │ │ │ └── xml │ │ │ │ └── README │ │ ├── internal │ │ │ ├── nettest │ │ │ │ ├── helper_nobsd.go │ │ │ │ ├── rlimit.go │ │ │ │ ├── helper_stub.go │ │ │ │ ├── helper_unix.go │ │ │ │ └── helper_posix.go │ │ │ └── netreflect │ │ │ │ ├── socket_stub.go │ │ │ │ └── socket_posix.go │ │ ├── proxy │ │ │ └── direct.go │ │ ├── bpf │ │ │ └── testdata │ │ │ │ └── all_instructions.bpf │ │ ├── websocket │ │ │ └── dial.go │ │ └── nettest │ │ │ └── conntest_go16.go │ │ ├── crypto │ │ ├── codereview.cfg │ │ ├── ed25519 │ │ │ └── testdata │ │ │ │ └── sign.input.gz │ │ ├── sha3 │ │ │ ├── testdata │ │ │ │ └── keccakKats.json.deflate │ │ │ ├── keccakf_amd64.go │ │ │ ├── xor.go │ │ │ ├── register.go │ │ │ └── xor_generic.go │ │ ├── README │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── ssh │ │ │ ├── test │ │ │ │ └── doc.go │ │ │ ├── terminal │ │ │ │ ├── util_bsd.go │ │ │ │ └── util_linux.go │ │ │ ├── testdata │ │ │ │ └── doc.go │ │ │ └── doc.go │ │ ├── curve25519 │ │ │ ├── const_amd64.h │ │ │ └── const_amd64.s │ │ ├── blake2b │ │ │ ├── blake2b_ref.go │ │ │ └── blake2b_amd64.go │ │ ├── blake2s │ │ │ └── blake2s_ref.go │ │ ├── chacha20poly1305 │ │ │ └── chacha20poly1305_noasm.go │ │ ├── poly1305 │ │ │ ├── sum_amd64.go │ │ │ └── sum_arm.go │ │ ├── pkcs12 │ │ │ └── errors.go │ │ ├── salsa20 │ │ │ └── salsa │ │ │ │ └── salsa20_amd64.go │ │ └── bcrypt │ │ │ └── base64.go │ │ ├── text │ │ ├── codereview.cfg │ │ ├── encoding │ │ │ ├── testdata │ │ │ │ ├── candide-gb18030.txt │ │ │ │ ├── rashomon-euc-jp.txt │ │ │ │ ├── candide-utf-16le.txt │ │ │ │ ├── candide-utf-32be.txt │ │ │ │ ├── rashomon-shift-jis.txt │ │ │ │ ├── candide-windows-1252.txt │ │ │ │ ├── unsu-joh-eun-nal-euc-kr.txt │ │ │ │ ├── sunzi-bingfa-simplified-gbk.txt │ │ │ │ └── sunzi-bingfa-traditional-big5.txt │ │ │ ├── japanese │ │ │ │ └── all.go │ │ │ └── simplifiedchinese │ │ │ │ └── all.go │ │ ├── AUTHORS │ │ ├── CONTRIBUTORS │ │ ├── README │ │ ├── collate │ │ │ └── tools │ │ │ │ └── colcmp │ │ │ │ └── Makefile │ │ ├── language │ │ │ ├── go1_2.go │ │ │ ├── common.go │ │ │ ├── Makefile │ │ │ ├── gen_common.go │ │ │ └── go1_1.go │ │ ├── secure │ │ │ ├── doc.go │ │ │ └── precis │ │ │ │ └── doc.go │ │ ├── internal │ │ │ └── testtext │ │ │ │ ├── go1_7.go │ │ │ │ ├── go1_6.go │ │ │ │ ├── gc.go │ │ │ │ ├── gccgo.go │ │ │ │ └── flag.go │ │ ├── unicode │ │ │ └── doc.go │ │ ├── doc.go │ │ ├── width │ │ │ ├── kind_string.go │ │ │ ├── trieval.go │ │ │ └── gen_trieval.go │ │ └── cases │ │ │ └── fold.go │ │ └── time │ │ ├── README │ │ ├── AUTHORS │ │ └── CONTRIBUTORS ├── github.com │ ├── miekg │ │ └── dns │ │ │ ├── AUTHORS │ │ │ ├── CONTRIBUTORS │ │ │ ├── COPYRIGHT │ │ │ ├── udp_other.go │ │ │ └── udp_windows.go │ ├── klauspost │ │ ├── compress │ │ │ ├── flate │ │ │ │ ├── testdata │ │ │ │ │ ├── huffman-zero.wb.expect │ │ │ │ │ ├── huffman-zero.wb.expect-noinput │ │ │ │ │ ├── huffman-pi.golden │ │ │ │ │ ├── huffman-rand-1k.in │ │ │ │ │ ├── huffman-pi.wb.expect │ │ │ │ │ ├── huffman-rand-max.in │ │ │ │ │ ├── huffman-text.golden │ │ │ │ │ ├── huffman-zero.golden │ │ │ │ │ ├── huffman-null-max.golden │ │ │ │ │ ├── huffman-pi.dyn.expect │ │ │ │ │ ├── huffman-rand-1k.golden │ │ │ │ │ ├── huffman-rand-limit.in │ │ │ │ │ ├── huffman-rand-max.golden │ │ │ │ │ ├── huffman-shifts.golden │ │ │ │ │ ├── huffman-text.dyn.expect │ │ │ │ │ ├── huffman-text.wb.expect │ │ │ │ │ ├── huffman-zero.dyn.expect │ │ │ │ │ ├── huffman-rand-1k.wb.expect │ │ │ │ │ ├── huffman-rand-limit.golden │ │ │ │ │ ├── huffman-shifts.dyn.expect │ │ │ │ │ ├── huffman-shifts.wb.expect │ │ │ │ │ ├── huffman-text-shift.golden │ │ │ │ │ ├── huffman-null-max.dyn.expect │ │ │ │ │ ├── huffman-null-max.wb.expect │ │ │ │ │ ├── huffman-pi.wb.expect-noinput │ │ │ │ │ ├── huffman-rand-1k.dyn.expect │ │ │ │ │ ├── huffman-rand-limit.wb.expect │ │ │ │ │ ├── huffman-text-shift.wb.expect │ │ │ │ │ ├── huffman-pi.dyn.expect-noinput │ │ │ │ │ ├── huffman-rand-limit.dyn.expect │ │ │ │ │ ├── huffman-text-shift.dyn.expect │ │ │ │ │ ├── huffman-text.wb.expect-noinput │ │ │ │ │ ├── huffman-rand-1k.wb.expect-noinput │ │ │ │ │ ├── huffman-shifts.dyn.expect-noinput │ │ │ │ │ ├── huffman-shifts.wb.expect-noinput │ │ │ │ │ ├── huffman-text.dyn.expect-noinput │ │ │ │ │ ├── huffman-zero.dyn.expect-noinput │ │ │ │ │ ├── null-long-match.wb.expect-noinput │ │ │ │ │ ├── huffman-null-max.dyn.expect-noinput │ │ │ │ │ ├── huffman-null-max.wb.expect-noinput │ │ │ │ │ ├── huffman-rand-1k.dyn.expect-noinput │ │ │ │ │ ├── null-long-match.dyn.expect-noinput │ │ │ │ │ ├── huffman-rand-limit.dyn.expect-noinput │ │ │ │ │ ├── huffman-rand-limit.wb.expect-noinput │ │ │ │ │ ├── huffman-text-shift.dyn.expect-noinput │ │ │ │ │ ├── huffman-text-shift.wb.expect-noinput │ │ │ │ │ ├── huffman-text-shift.in │ │ │ │ │ ├── huffman-zero.in │ │ │ │ │ └── huffman-text.in │ │ │ │ └── crc32_noasm.go │ │ │ └── snappy │ │ │ │ ├── runbench.cmd │ │ │ │ ├── decode_amd64.go │ │ │ │ ├── AUTHORS │ │ │ │ └── encode_amd64.go │ │ ├── cpuid │ │ │ ├── generate.go │ │ │ ├── detect_intel.go │ │ │ ├── private │ │ │ │ ├── cpuid_detect_intel.go │ │ │ │ └── cpuid_detect_ref.go │ │ │ └── detect_ref.go │ │ └── crc32 │ │ │ └── crc32_otherarch.go │ ├── kataras │ │ ├── go-template │ │ │ ├── vendor │ │ │ │ └── github.com │ │ │ │ │ ├── aymerick │ │ │ │ │ └── raymond │ │ │ │ │ │ ├── VERSION │ │ │ │ │ │ ├── handlebars │ │ │ │ │ │ └── doc.go │ │ │ │ │ │ └── mustache │ │ │ │ │ │ └── Rakefile │ │ │ │ │ ├── flosch │ │ │ │ │ └── pongo2 │ │ │ │ │ │ ├── helpers.go │ │ │ │ │ │ ├── nodes_html.go │ │ │ │ │ │ ├── AUTHORS │ │ │ │ │ │ ├── nodes.go │ │ │ │ │ │ ├── nodes_wrapper.go │ │ │ │ │ │ ├── pongo2.go │ │ │ │ │ │ └── tags_comment.go │ │ │ │ │ ├── juju │ │ │ │ │ └── errors │ │ │ │ │ │ └── Makefile │ │ │ │ │ └── microcosm-cc │ │ │ │ │ └── bluemonday │ │ │ │ │ └── cmd │ │ │ │ │ ├── sanitise_html_email │ │ │ │ │ └── doc.go │ │ │ │ │ └── sanitise_ugc │ │ │ │ │ ├── doc.go │ │ │ │ │ └── main.go │ │ │ ├── logo.jpg │ │ │ ├── pug │ │ │ │ ├── README.md │ │ │ │ ├── config.go │ │ │ │ └── pug.go │ │ │ ├── amber │ │ │ │ ├── README.md │ │ │ │ └── config.go │ │ │ ├── django │ │ │ │ └── README.md │ │ │ ├── markdown │ │ │ │ ├── README.md │ │ │ │ └── config.go │ │ │ ├── handlebars │ │ │ │ ├── README.md │ │ │ │ └── config.go │ │ │ ├── html │ │ │ │ ├── README.md │ │ │ │ └── config.go │ │ │ └── template.go │ │ ├── cli │ │ │ ├── logo.png │ │ │ └── cli.go │ │ └── rizla │ │ │ └── vendor │ │ │ └── github.com │ │ │ ├── mattn │ │ │ ├── go-isatty │ │ │ │ ├── doc.go │ │ │ │ ├── isatty_appengine.go │ │ │ │ ├── isatty_linux.go │ │ │ │ ├── isatty_solaris.go │ │ │ │ ├── isatty_bsd.go │ │ │ │ └── isatty_windows.go │ │ │ └── go-colorable │ │ │ │ └── colorable_others.go │ │ │ └── fsnotify │ │ │ └── fsnotify │ │ │ ├── open_mode_bsd.go │ │ │ └── open_mode_darwin.go │ ├── stretchr │ │ └── testify │ │ │ ├── http │ │ │ ├── doc.go │ │ │ └── test_round_tripper.go │ │ │ ├── vendor │ │ │ └── github.com │ │ │ │ ├── stretchr │ │ │ │ └── objx │ │ │ │ │ ├── README.md │ │ │ │ │ ├── security.go │ │ │ │ │ ├── value.go │ │ │ │ │ ├── constants.go │ │ │ │ │ ├── codegen │ │ │ │ │ ├── array-access.txt │ │ │ │ │ └── types_list.txt │ │ │ │ │ └── tests.go │ │ │ │ └── davecgh │ │ │ │ └── go-spew │ │ │ │ └── LICENSE │ │ │ ├── Godeps │ │ │ ├── Readme │ │ │ └── Godeps.json │ │ │ ├── require │ │ │ ├── require_forward.go.tmpl │ │ │ ├── require.go.tmpl │ │ │ ├── requirements.go │ │ │ └── forward_requirements.go │ │ │ └── assert │ │ │ ├── assertion_forward.go.tmpl │ │ │ ├── errors.go │ │ │ └── forward_assertions.go │ ├── moul │ │ └── http2curl │ │ │ ├── vendor │ │ │ └── github.com │ │ │ │ ├── smartystreets │ │ │ │ ├── goconvey │ │ │ │ │ └── convey │ │ │ │ │ │ ├── reporting │ │ │ │ │ │ ├── reporting.goconvey │ │ │ │ │ │ ├── doc.go │ │ │ │ │ │ ├── console.go │ │ │ │ │ │ └── gotest.go │ │ │ │ │ │ ├── convey.goconvey │ │ │ │ │ │ └── nilReporter.go │ │ │ │ └── assertions │ │ │ │ │ ├── internal │ │ │ │ │ ├── oglemock │ │ │ │ │ │ ├── createmock │ │ │ │ │ │ │ └── test_cases │ │ │ │ │ │ │ │ ├── golden.unknown_package │ │ │ │ │ │ │ │ ├── golden.unknown_interface │ │ │ │ │ │ │ │ ├── golden.no_package │ │ │ │ │ │ │ │ └── golden.no_interfaces │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ └── sample │ │ │ │ │ │ │ └── README.markdown │ │ │ │ │ ├── ogletest │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ ├── srcutil │ │ │ │ │ │ │ └── docs.go │ │ │ │ │ │ └── test_cases │ │ │ │ │ │ │ ├── golden.no_cases_test │ │ │ │ │ │ │ ├── golden.unexported_test │ │ │ │ │ │ │ ├── golden.stop_test │ │ │ │ │ │ │ └── golden.run_twice_test │ │ │ │ │ ├── oglematchers │ │ │ │ │ │ └── .travis.yml │ │ │ │ │ └── Makefile │ │ │ │ │ ├── assertions.goconvey │ │ │ │ │ ├── .travis.yml │ │ │ │ │ └── filter.go │ │ │ │ └── jtolds │ │ │ │ └── gls │ │ │ │ ├── gen_sym.go │ │ │ │ └── id_pool.go │ │ │ └── Godeps │ │ │ ├── Readme │ │ │ └── Godeps.json │ ├── skratchdot │ │ └── open-golang │ │ │ ├── Makefile │ │ │ └── open │ │ │ ├── exec_darwin.go │ │ │ ├── exec.go │ │ │ └── exec_windows.go │ ├── Unknwon │ │ ├── i18n │ │ │ └── vendor │ │ │ │ └── gopkg.in │ │ │ │ └── ini.v1 │ │ │ │ └── Makefile │ │ └── com │ │ │ └── math.go │ ├── geekypanda │ │ └── httpcache │ │ │ ├── nethttp │ │ │ ├── rule │ │ │ │ ├── rule.go │ │ │ │ ├── not_satisfied.go │ │ │ │ └── satisfied.go │ │ │ └── utils.go │ │ │ ├── entry │ │ │ └── util.go │ │ │ └── cfg │ │ │ └── cfg.go │ ├── valyala │ │ └── bytebufferpool │ │ │ └── doc.go │ ├── iris-contrib │ │ └── httpexpect │ │ │ ├── vendor │ │ │ └── github.com │ │ │ │ ├── gavv │ │ │ │ └── monotime │ │ │ │ │ └── monotime.s │ │ │ │ └── yudai │ │ │ │ └── gojsondiff │ │ │ │ └── vendor │ │ │ │ └── github.com │ │ │ │ └── sergi │ │ │ │ └── go-diff │ │ │ │ └── diffmatchpatch │ │ │ │ └── mathutil.go │ │ │ └── chain.go │ ├── ajg │ │ └── form │ │ │ ├── form.go │ │ │ └── pre-commit.sh │ ├── google │ │ └── go-github │ │ │ └── github │ │ │ └── git.go │ ├── hashicorp │ │ └── go-version │ │ │ └── version_collection.go │ ├── gorilla │ │ ├── websocket │ │ │ ├── conn_read.go │ │ │ └── conn_read_legacy.go │ │ └── mux │ │ │ ├── context_native.go │ │ │ └── context_gorilla.go │ ├── microcosm-cc │ │ └── bluemonday │ │ │ └── cmd │ │ │ ├── sanitise_html_email │ │ │ └── doc.go │ │ │ └── sanitise_ugc │ │ │ ├── doc.go │ │ │ └── main.go │ ├── BurntSushi │ │ └── toml │ │ │ ├── COPYING │ │ │ ├── encoding_types_1.1.go │ │ │ └── encoding_types.go │ ├── imkira │ │ └── go-interpol │ │ │ └── Makefile │ └── fatih │ │ └── structs │ │ └── tags.go └── gopkg.in │ └── yaml.v2 │ └── LICENSE ├── .travis.yml ├── middleware ├── i18n │ └── config.go └── logger │ └── config.go └── adaptors ├── httprouter └── urlpath.go ├── view └── pug.go └── sessions └── sessiondb └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | dubaidoc98b.txt 2 | -------------------------------------------------------------------------------- /_examples/intermediate/i18n/locales/locale_zh-CN.ini: -------------------------------------------------------------------------------- 1 | hi = 您好,%s -------------------------------------------------------------------------------- /logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/logo.jpg -------------------------------------------------------------------------------- /vendor/golang.org/x/net/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /_examples/intermediate/i18n/locales/locale_el-GR.ini: -------------------------------------------------------------------------------- 1 | hi = Γεια, %s -------------------------------------------------------------------------------- /_examples/intermediate/i18n/locales/locale_en-US.ini: -------------------------------------------------------------------------------- 1 | hi = hello, %s -------------------------------------------------------------------------------- /vendor/github.com/miekg/dns/AUTHORS: -------------------------------------------------------------------------------- 1 | Miek Gieben 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/h2demo/rootCA.srl: -------------------------------------------------------------------------------- 1 | E2CE26BF3285059C 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.wb.expect: -------------------------------------------------------------------------------- 1 | 2$ -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.wb.expect-noinput: -------------------------------------------------------------------------------- 1 | 2$ -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/vendor/github.com/aymerick/raymond/VERSION: -------------------------------------------------------------------------------- 1 | 2.0.1 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/time/README: -------------------------------------------------------------------------------- 1 | This repository provides supplementary Go time packages. 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /_examples/advanced/url-shortener/resources/css/style.css: -------------------------------------------------------------------------------- 1 | body{ 2 | background-color:silver; 3 | } -------------------------------------------------------------------------------- /_examples/beginner/file-server/assets/css/styles.css: -------------------------------------------------------------------------------- 1 | body { 2 | background-color: black; 3 | } 4 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - go1.8 5 | 6 | go_import_path: gopkg.in/kataras/iris.v6 7 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/cpuid/generate.go: -------------------------------------------------------------------------------- 1 | package cpuid 2 | 3 | //go:generate go run private-gen.go 4 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/http/doc.go: -------------------------------------------------------------------------------- 1 | // Package http DEPRECATED USE net/http/httptest 2 | package http 3 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/cli/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/kataras/cli/logo.png -------------------------------------------------------------------------------- /_examples/beginner/send-files/files/first.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/_examples/beginner/send-files/files/first.zip -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_1/templates/mypage.html: -------------------------------------------------------------------------------- 1 |

2 | Title: {{.Title}} 3 |

4 |

Message: {{.Message}}

-------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/kataras/go-template/logo.jpg -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/goconvey/convey/reporting/reporting.goconvey: -------------------------------------------------------------------------------- 1 | #ignore 2 | -timeout=1s 3 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/rizla/vendor/github.com/mattn/go-isatty/doc.go: -------------------------------------------------------------------------------- 1 | // Package isatty implements interface to isatty 2 | package isatty 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ed25519/testdata/sign.input.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/crypto/ed25519/testdata/sign.input.gz -------------------------------------------------------------------------------- /_examples/advanced/url-shortener/shortener.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | // Version is the current version of the url-shortener package. 4 | const Version = "0.0.1" 5 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/oglemock/createmock/test_cases/golden.unknown_package: -------------------------------------------------------------------------------- 1 | Unknown package: foo/bar 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/candide-gb18030.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/candide-gb18030.txt -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/rashomon-euc-jp.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/rashomon-euc-jp.txt -------------------------------------------------------------------------------- /_examples/advanced/subdomains/multi/public/assets/images/test.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/_examples/advanced/subdomains/multi/public/assets/images/test.ico -------------------------------------------------------------------------------- /_examples/beginner/favicon/static/favicons/iris_favicon_32_32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/_examples/beginner/favicon/static/favicons/iris_favicon_32_32.ico -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/testdata/keccakKats.json.deflate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/crypto/sha3/testdata/keccakKats.json.deflate -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/candide-utf-16le.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/candide-utf-16le.txt -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/candide-utf-32be.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/candide-utf-32be.txt -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/rashomon-shift-jis.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/rashomon-shift-jis.txt -------------------------------------------------------------------------------- /_examples/intermediate/view/overview/templates/hi.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hi Iris 4 | 5 | 6 |

Hi {{.Name}}

7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/oglemock/createmock/test_cases/golden.unknown_interface: -------------------------------------------------------------------------------- 1 | Unknown interface: Frobnicator 2 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/README.md: -------------------------------------------------------------------------------- 1 | # objx 2 | 3 | * Jump into the [API Documentation](http://godoc.org/github.com/stretchr/objx) 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/candide-windows-1252.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/candide-windows-1252.txt -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_2/templates/partials/page1_partial1.html: -------------------------------------------------------------------------------- 1 |
2 |

Page 1's Partial 1

3 |
4 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.golden -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.in -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/oglemock/createmock/test_cases/golden.no_package: -------------------------------------------------------------------------------- 1 | Usage: createmock [package] [interface ...] 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/unsu-joh-eun-nal-euc-kr.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/unsu-joh-eun-nal-euc-kr.txt -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_0/templates/hi.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hi Iris 4 | 5 | 6 |

Hi {{.Name}}

7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.wb.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-max.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-max.in -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text.golden -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.golden -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/oglemock/createmock/test_cases/golden.no_interfaces: -------------------------------------------------------------------------------- 1 | Usage: createmock [package] [interface ...] 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/README: -------------------------------------------------------------------------------- 1 | This repository holds supplementary Go networking libraries. 2 | 3 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 4 | -------------------------------------------------------------------------------- /_examples/intermediate/view/context-view-data/templates/index.html: -------------------------------------------------------------------------------- 1 |

2 | Title: {{.Title}} 3 |

4 |

{{.BodyMessage}}

5 | 6 |
7 | 8 | Current time: {{.CurrentTime}} -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.golden -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.dyn.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.golden -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.in -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-max.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-max.golden -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.golden -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text.dyn.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text.wb.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.dyn.expect -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/README: -------------------------------------------------------------------------------- 1 | This repository holds supplementary Go cryptography libraries. 2 | 3 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 4 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/sunzi-bingfa-simplified-gbk.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/sunzi-bingfa-simplified-gbk.txt -------------------------------------------------------------------------------- /_examples/advanced/typescript/www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Load my script (lawl) 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/pug/README.md: -------------------------------------------------------------------------------- 1 | ## Folder information 2 | 3 | This folder contains the [pug/jade](https://github.com/Joker/jade) cross-framework template engine support. 4 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.wb.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.golden -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.dyn.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.wb.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.golden: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.golden -------------------------------------------------------------------------------- /vendor/github.com/skratchdot/open-golang/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | @echo "Try 'make readme'" 3 | 4 | readme: 5 | godoc -templates=./readme-template/ "github.com/skratchdot/open-golang/open" > ./README.md -------------------------------------------------------------------------------- /vendor/golang.org/x/text/encoding/testdata/sunzi-bingfa-traditional-big5.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/golang.org/x/text/encoding/testdata/sunzi-bingfa-traditional-big5.txt -------------------------------------------------------------------------------- /_examples/advanced/cloud-editor/www/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Load my script (lawl) 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_2/README.md: -------------------------------------------------------------------------------- 1 | ## Info 2 | 3 | This folder examines the {{render "dir/templatefilename"}} functionality to manually render any template inside any template 4 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/amber/README.md: -------------------------------------------------------------------------------- 1 | ## Folder information 2 | 3 | This folder contains the buit'n [amber](https://github.com/eknkc/amber) cross-framework template engine support. 4 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/vendor/github.com/aymerick/raymond/handlebars/doc.go: -------------------------------------------------------------------------------- 1 | // Package handlebars contains all the tests that come from handlebars.js project. 2 | package handlebars 3 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.dyn.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.wb.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.wb.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.dyn.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.wb.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.wb.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.wb.expect -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /_examples/advanced/subdomains/multi/public/upload_resources/iris_favicon_32_32.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/_examples/advanced/subdomains/multi/public/upload_resources/iris_favicon_32_32.ico -------------------------------------------------------------------------------- /_examples/intermediate/view/embedding-templates-into-app/templates/hi.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hi Iris [THE TITLE] 4 | 5 | 6 |

Hi {{.Name}} 7 | 8 | 9 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-pi.dyn.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.dyn.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.dyn.expect: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.dyn.expect -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text.wb.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/Godeps/Readme: -------------------------------------------------------------------------------- 1 | This directory tree is generated automatically by godep. 2 | 3 | Please do not edit. 4 | 5 | See https://github.com/tools/godep for more information. 6 | -------------------------------------------------------------------------------- /_examples/intermediate/e-mail/templates/mail_body.html: -------------------------------------------------------------------------------- 1 |

Hello From Iris web framework

2 |
3 |
4 | {{.Message}} 5 |
6 | 7 | {{.Footer}} 8 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/django/README.md: -------------------------------------------------------------------------------- 1 | ## Folder information 2 | 3 | This folder contains the buit'n [django/pongo2](https://github.com/flosch/pongo2) cross-framework template engine support. 4 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.wb.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.dyn.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-shifts.wb.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text.dyn.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.dyn.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/null-long-match.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/null-long-match.wb.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/snappy/runbench.cmd: -------------------------------------------------------------------------------- 1 | del old.txt 2 | go test -bench=. >>old.txt && go test -bench=. >>old.txt && go test -bench=. >>old.txt && benchstat -delta-test=ttest old.txt new.txt 3 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) { 3 | {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.dyn.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-null-max.wb.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-1k.dyn.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/null-long-match.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/null-long-match.dyn.expect-noinput -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/markdown/README.md: -------------------------------------------------------------------------------- 1 | ## Folder information 2 | 3 | This folder contains the [markdown/blackfriday](https://github.com/russross/blackfriday) cross-framework template engine support. 4 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.dyn.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-rand-limit.wb.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.wb.expect-noinput: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Xzya/iris/v6/vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.wb.expect-noinput -------------------------------------------------------------------------------- /vendor/github.com/miekg/dns/CONTRIBUTORS: -------------------------------------------------------------------------------- 1 | Alex A. Skinner 2 | Andrew Tunnell-Jones 3 | Ask Bjørn Hansen 4 | Dave Cheney 5 | Dusty Wilson 6 | Marek Majkowski 7 | Peter van Dijk 8 | Omri Bahumi 9 | Alex Sergeyev 10 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/assertion_forward.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.CommentWithoutT "a"}} 2 | func (a *Assertions) {{.DocInfo.Name}}({{.Params}}) bool { 3 | return {{.DocInfo.Name}}(a.t, {{.ForwardedParams}}) 4 | } 5 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/require.go.tmpl: -------------------------------------------------------------------------------- 1 | {{.Comment}} 2 | func {{.DocInfo.Name}}(t TestingT, {{.Params}}) { 3 | if !assert.{{.DocInfo.Name}}(t, {{.ForwardedParams}}) { 4 | t.FailNow() 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /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 http://tip.golang.org/AUTHORS. 4 | -------------------------------------------------------------------------------- /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 http://tip.golang.org/CONTRIBUTORS. 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/README: -------------------------------------------------------------------------------- 1 | This repository holds supplementary Go libraries for text processing, many involving Unicode. 2 | 3 | To submit changes to this repository, see http://golang.org/doc/contribute.html. 4 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/handlebars/README.md: -------------------------------------------------------------------------------- 1 | ## Folder information 2 | 3 | This folder contains the buit'n [handlebars/raymond](https://github.com/aymerick/raymond) cross-framework template engine support. 4 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/assertions.goconvey: -------------------------------------------------------------------------------- 1 | #ignore 2 | -timeout=1s 3 | -coverpkg=github.com/smartystreets/assertions,github.com/smartystreets/assertions/internal/oglematchers -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/html/README.md: -------------------------------------------------------------------------------- 1 | ## Folder information 2 | 3 | This folder contains the buit'n and the default [html/template](https://golang.org/pkg/text/template) cross-framework template engine support. 4 | -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_2/templates/page1.html: -------------------------------------------------------------------------------- 1 |
2 | 3 |

Page 1 {{ greet "iris developer"}}

4 | 5 | {{ render "partials/page1_partial1.html"}} 6 | 7 |
8 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/cli/cli.go: -------------------------------------------------------------------------------- 1 | // Package cli helps you create command line interfaces with the Go Programming Language 2 | package cli 3 | 4 | // Version is the current version number of the cli package 5 | const Version = "0.0.4" 6 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/oglemock/.travis.yml: -------------------------------------------------------------------------------- 1 | # Cf. http://docs.travis-ci.com/user/getting-started/ 2 | # Cf. http://docs.travis-ci.com/user/languages/go/ 3 | 4 | language: go 5 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/ogletest/.travis.yml: -------------------------------------------------------------------------------- 1 | # Cf. http://docs.travis-ci.com/user/getting-started/ 2 | # Cf. http://docs.travis-ci.com/user/languages/go/ 3 | 4 | language: go 5 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/oglematchers/.travis.yml: -------------------------------------------------------------------------------- 1 | # Cf. http://docs.travis-ci.com/user/getting-started/ 2 | # Cf. http://docs.travis-ci.com/user/languages/go/ 3 | 4 | language: go 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/pending-spec-changes-plain-text-unsafe.dat: -------------------------------------------------------------------------------- 1 | #data 2 | fillertext 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | "fillertext" 9 | |
10 | -------------------------------------------------------------------------------- /_examples/intermediate/view/context-view-data/templates/layouts/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | My WebsiteLayout 4 | 5 | 6 | 7 | 8 | {{ yield }} 9 | 10 | 11 | -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_1/templates/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | My Layout 4 | 5 | 6 | 7 |

Body is:

8 | 9 | {{ yield }} 10 | 11 | 12 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.2 5 | - 1.3 6 | - 1.4 7 | - 1.5 8 | 9 | install: 10 | - go get -t ./... 11 | 12 | script: go test -v 13 | 14 | sudo: false 15 | -------------------------------------------------------------------------------- /vendor/github.com/Unknwon/i18n/vendor/gopkg.in/ini.v1/Makefile: -------------------------------------------------------------------------------- 1 | .PHONY: build test bench vet 2 | 3 | build: vet bench 4 | 5 | test: 6 | go test -v -cover -race 7 | 8 | bench: 9 | go test -v -cover -race -test.bench=. -test.benchmem 10 | 11 | vet: 12 | go vet 13 | -------------------------------------------------------------------------------- /vendor/github.com/geekypanda/httpcache/nethttp/rule/rule.go: -------------------------------------------------------------------------------- 1 | package rule 2 | 3 | import ( 4 | "net/http" 5 | ) 6 | 7 | // Rule a superset of validators 8 | type Rule interface { 9 | Claim(*http.Request) bool 10 | Valid(http.ResponseWriter, *http.Request) bool 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/ogletest/srcutil/docs.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 Aaron Jacobs. All Rights Reserved. 2 | // Author: aaronjjacobs@gmail.com (Aaron Jacobs) 3 | 4 | // Functions for working with source code. 5 | package srcutil 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/route/syscall.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·keepAlive(SB),NOSPLIT,$0 8 | RET 9 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/goconvey/convey/convey.goconvey: -------------------------------------------------------------------------------- 1 | #ignore 2 | -timeout=1s 3 | #-covermode=count 4 | #-coverpkg=github.com/smartystreets/goconvey/convey,github.com/smartystreets/goconvey/convey/gotest,github.com/smartystreets/goconvey/convey/reporting -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_2/templates/layouts/layout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Layout 4 | 5 | 6 | 7 |

This is the global layout

8 |
9 | 10 | {{ yield }} 11 | 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/vendor/github.com/flosch/pongo2/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 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/ogletest/test_cases/golden.no_cases_test: -------------------------------------------------------------------------------- 1 | [----------] Running tests from NoCasesTest 2 | SetUpTestSuite run! 3 | TearDownTestSuite run! 4 | [----------] Finished with tests from NoCasesTest 5 | PASS 6 | ok somepkg 1.234s 7 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/vendor/github.com/flosch/pongo2/nodes_html.go: -------------------------------------------------------------------------------- 1 | package pongo2 2 | 3 | type nodeHTML struct { 4 | token *Token 5 | } 6 | 7 | func (n *nodeHTML) Execute(ctx *ExecutionContext, writer TemplateWriter) *Error { 8 | writer.WriteString(n.token.Val) 9 | return nil 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_linux_386.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 | #include "textflag.h" 6 | 7 | TEXT ·socketcall(SB),NOSPLIT,$0-36 8 | JMP syscall·socketcall(SB) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_linux_386.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 | #include "textflag.h" 6 | 7 | TEXT ·socketcall(SB),NOSPLIT,$0-36 8 | JMP syscall·socketcall(SB) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_solaris_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 8 | JMP syscall·sysvicall6(SB) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_solaris_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 8 | JMP syscall·sysvicall6(SB) 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/collate/tools/colcmp/Makefile: -------------------------------------------------------------------------------- 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 | chars: 6 | go run ../../maketables.go -tables=chars -package=main > chars.go 7 | gofmt -w -s chars.go 8 | -------------------------------------------------------------------------------- /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 | // +build go1.2 6 | 7 | package language 8 | 9 | import "sort" 10 | 11 | var sortStable = sort.Stable 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/secure/doc.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 | // secure is a repository of text security related packages. 6 | package secure // import "golang.org/x/text/secure" 7 | -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_2/templates/layouts/mylayout.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | my Layout 4 | 5 | 6 | 7 |

This is the layout for the /my/ and /my/other routes only

8 |
9 | 10 | {{ yield }} 11 | 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/require/requirements.go: -------------------------------------------------------------------------------- 1 | package require 2 | 3 | // TestingT is an interface wrapper around *testing.T 4 | type TestingT interface { 5 | Errorf(format string, args ...interface{}) 6 | FailNow() 7 | } 8 | 9 | //go:generate go run ../_codegen/main.go -output-package=require -template=require.go.tmpl 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/h2demo/Makefile: -------------------------------------------------------------------------------- 1 | h2demo.linux: h2demo.go 2 | GOOS=linux go build --tags=h2demo -o h2demo.linux . 3 | 4 | FORCE: 5 | 6 | upload: FORCE 7 | go install golang.org/x/build/cmd/upload 8 | upload --verbose --osarch=linux-amd64 --tags=h2demo --file=go:golang.org/x/net/http2/h2demo --public http2-demo-server-tls/h2demo 9 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/rizla/vendor/github.com/mattn/go-isatty/isatty_appengine.go: -------------------------------------------------------------------------------- 1 | // +build appengine 2 | 3 | package isatty 4 | 5 | // IsTerminal returns true if the file descriptor is terminal which 6 | // is always false on on appengine classic which is a sandboxed PaaS. 7 | func IsTerminal(fd uintptr) bool { 8 | return false 9 | } 10 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/github.com/iris-contrib/httpexpect/vendor/github.com/gavv/monotime/monotime.s: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2016 Arista Networks, Inc. 2 | // Use of this source code is governed by the Apache License 2.0 3 | // that can be found in the COPYING file. 4 | 5 | // This file is intentionally empty. 6 | // It's a workaround for https://github.com/golang/go/issues/15006 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/icmp/sys_freebsd.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 icmp 6 | 7 | import "syscall" 8 | 9 | func init() { 10 | freebsdVersion, _ = syscall.SysctlUint32("kern.osreldate") 11 | } 12 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/vendor/github.com/flosch/pongo2/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 | 10 | Feel free to add yourself to the list or to modify your entry if you did a contribution. 11 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/goconvey/convey/reporting/doc.go: -------------------------------------------------------------------------------- 1 | // Package reporting contains internal functionality related 2 | // to console reporting and output. Although this package has 3 | // exported names is not intended for public consumption. See the 4 | // examples package for how to use this project. 5 | package reporting 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/ssh/test/doc.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 | // This package contains integration tests for the 6 | // golang.org/x/crypto/ssh package. 7 | package test // import "golang.org/x/crypto/ssh/test" 8 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sockopt_stub.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 | // +build nacl plan9 6 | 7 | package ipv4 8 | 9 | func setInt(s uintptr, opt *sockOpt, v int) error { 10 | return errOpNoSupport 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/sys_stub.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 | // +build nacl plan9 6 | 7 | package ipv4 8 | 9 | var ( 10 | ctlOpts = [ctlMax]ctlOpt{} 11 | 12 | sockOpts = [ssoMax]sockOpt{} 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sys_stub.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 | // +build nacl plan9 6 | 7 | package ipv6 8 | 9 | var ( 10 | ctlOpts = [ctlMax]ctlOpt{} 11 | 12 | sockOpts = [ssoMax]sockOpt{} 13 | ) 14 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text-shift.in: -------------------------------------------------------------------------------- 1 | //Copyright2009ThGoAuthor.Allrightrrvd. 2 | //UofthiourccodigovrndbyBSD-tyl 3 | //licnthtcnbfoundinthLICENSEfil. 4 | 5 | pckgmin 6 | 7 | import"o" 8 | 9 | funcmin(){ 10 | vrb=mk([]byt,65535) 11 | f,_:=o.Crt("huffmn-null-mx.in") 12 | f.Writ(b) 13 | } 14 | ABCDEFGHIJKLMNOPQRSTUVXxyz!"#¤%&/?" -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-zero.in: -------------------------------------------------------------------------------- 1 | 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 -------------------------------------------------------------------------------- /vendor/github.com/skratchdot/open-golang/open/exec_darwin.go: -------------------------------------------------------------------------------- 1 | // +build darwin 2 | 3 | package open 4 | 5 | import ( 6 | "os/exec" 7 | ) 8 | 9 | func open(input string) *exec.Cmd { 10 | return exec.Command("open", input) 11 | } 12 | 13 | func openWith(input string, appName string) *exec.Cmd { 14 | return exec.Command("open", "-a", appName, input) 15 | } 16 | -------------------------------------------------------------------------------- /_examples/advanced/cloud-editor/www/scripts/app.ts: -------------------------------------------------------------------------------- 1 | class User{ 2 | private name: string; 3 | 4 | constructor(fullname:string) { 5 | this.name = fullname; 6 | } 7 | 8 | Hi(msg: string): string { 9 | return msg + " " + this.name; 10 | } 11 | 12 | } 13 | 14 | var user = new User("kataras"); 15 | var hi = user.Hi("Hello"); 16 | window.alert(hi); 17 | -------------------------------------------------------------------------------- /_examples/advanced/typescript/www/scripts/app.ts: -------------------------------------------------------------------------------- 1 | class User{ 2 | private name: string; 3 | 4 | constructor(fullname:string) { 5 | this.name = fullname; 6 | } 7 | 8 | Hi(msg: string): string { 9 | return msg + " "+ this.name; 10 | } 11 | 12 | } 13 | 14 | var user = new User("kataras"); 15 | var hi = user.Hi("Hello"); 16 | window.alert(hi); 17 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/internal/oglemock/sample/README.markdown: -------------------------------------------------------------------------------- 1 | This directory contains sample code generated with the `createmock` command. For 2 | example, the file `mock_io.go` can be regenerated with: 3 | 4 | createmock io Reader > sample/mock_io/mock_io.go 5 | 6 | The files are also used by `integration_test.go`. 7 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/lif/sys_solaris_amd64.s: -------------------------------------------------------------------------------- 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 | #include "textflag.h" 6 | 7 | TEXT ·sysvicall6(SB),NOSPLIT,$0-88 8 | JMP syscall·sysvicall6(SB) 9 | 10 | TEXT ·keepAlive(SB),NOSPLIT,$0 11 | RET 12 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/goconvey/convey/reporting/console.go: -------------------------------------------------------------------------------- 1 | package reporting 2 | 3 | import ( 4 | "fmt" 5 | "io" 6 | ) 7 | 8 | type console struct{} 9 | 10 | func (self *console) Write(p []byte) (n int, err error) { 11 | return fmt.Print(string(p)) 12 | } 13 | 14 | func NewConsole() io.Writer { 15 | return new(console) 16 | } 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/text/internal/testtext/go1_7.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 | // +build go1.7 6 | 7 | package testtext 8 | 9 | import "testing" 10 | 11 | func Run(t *testing.T, name string, fn func(t *testing.T)) { 12 | t.Run(name, fn) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/vendor/github.com/juju/errors/Makefile: -------------------------------------------------------------------------------- 1 | default: check 2 | 3 | check: 4 | go test && go test -compiler gccgo 5 | 6 | docs: 7 | godoc2md github.com/juju/errors > README.md 8 | sed -i 's|\[godoc-link-here\]|[![GoDoc](https://godoc.org/github.com/juju/errors?status.svg)](https://godoc.org/github.com/juju/errors)|' README.md 9 | 10 | 11 | .PHONY: default check docs 12 | -------------------------------------------------------------------------------- /vendor/github.com/klauspost/compress/flate/testdata/huffman-text.in: -------------------------------------------------------------------------------- 1 | // Copyright 2009 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package main 6 | 7 | import "os" 8 | 9 | func main() { 10 | var b = make([]byte, 65535) 11 | f, _ := os.Create("huffman-null-max.in") 12 | f.Write(b) 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/security.go: -------------------------------------------------------------------------------- 1 | package objx 2 | 3 | import ( 4 | "crypto/sha1" 5 | "encoding/hex" 6 | ) 7 | 8 | // HashWithKey hashes the specified string using the security 9 | // key. 10 | func HashWithKey(data, key string) string { 11 | hash := sha1.New() 12 | hash.Write([]byte(data + ":" + key)) 13 | return hex.EncodeToString(hash.Sum(nil)) 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/sha3/keccakf_amd64.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // +build amd64,!appengine,!gccgo 6 | 7 | package sha3 8 | 9 | // This function is implemented in keccakf_amd64.s. 10 | 11 | //go:noescape 12 | 13 | func keccakF1600(a *[25]uint64) 14 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/jtolds/gls/gen_sym.go: -------------------------------------------------------------------------------- 1 | package gls 2 | 3 | var ( 4 | symPool = &idPool{} 5 | ) 6 | 7 | // ContextKey is a throwaway value you can use as a key to a ContextManager 8 | type ContextKey struct{ id uint } 9 | 10 | // GenSym will return a brand new, never-before-used ContextKey 11 | func GenSym() ContextKey { 12 | return ContextKey{id: symPool.Acquire()} 13 | } 14 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/assert/errors.go: -------------------------------------------------------------------------------- 1 | package assert 2 | 3 | import ( 4 | "errors" 5 | ) 6 | 7 | // AnError is an error instance useful for testing. If the code does not care 8 | // about error specifics, and only needs to return the error for example, this 9 | // error should be used to make the test code more readable. 10 | var AnError = errors.New("assert.AnError general error for testing") 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/curve25519/const_amd64.h: -------------------------------------------------------------------------------- 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 | // This code was translated into a form compatible with 6a from the public 6 | // domain sources in SUPERCOP: http://bench.cr.yp.to/supercop.html 7 | 8 | #define REDMASK51 0x0007FFFFFFFFFFFF 9 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/sockopt_stub.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 | // +build nacl plan9 6 | 7 | package ipv6 8 | 9 | import "net" 10 | 11 | func getMTUInfo(s uintptr, opt *sockOpt) (*net.Interface, int, error) { 12 | return nil, 0, errOpNoSupport 13 | } 14 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/webdav/file_go1.7.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 | // +build go1.7 6 | 7 | package webdav 8 | 9 | import ( 10 | "context" 11 | "net/http" 12 | ) 13 | 14 | func getContext(r *http.Request) context.Context { 15 | return r.Context() 16 | } 17 | -------------------------------------------------------------------------------- /_examples/beginner/file-server/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "gopkg.in/kataras/iris.v6" 5 | "gopkg.in/kataras/iris.v6/adaptors/httprouter" 6 | ) 7 | 8 | func main() { 9 | app := iris.New() 10 | app.Adapt(httprouter.New()) 11 | // first parameter is the request path 12 | // second is the operating system directory 13 | app.StaticWeb("/static", "./assets") 14 | 15 | app.Listen(":8080") 16 | } 17 | -------------------------------------------------------------------------------- /_examples/intermediate/upload-files/templates/upload_form.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Upload file 4 | 5 | 6 |
8 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/markdown/config.go: -------------------------------------------------------------------------------- 1 | package markdown 2 | 3 | // Config for markdown template engine 4 | type Config struct { 5 | // Sanitize if true then returns safe html, default is false 6 | Sanitize bool 7 | } 8 | 9 | // DefaultConfig returns the default configs for the markdown template engine 10 | func DefaultConfig() Config { 11 | return Config{ 12 | Sanitize: false, 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/blake2b_ref.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 | // +build !amd64 appengine gccgo 6 | 7 | package blake2b 8 | 9 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 10 | hashBlocksGeneric(h, c, flag, blocks) 11 | } 12 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/scripted/adoption01.dat: -------------------------------------------------------------------------------- 1 | #data 2 |

TEXT 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | |

9 | | 10 | | id="B" 11 | | 17 | 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /vendor/github.com/ajg/form/pre-commit.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -eu 2 | 3 | # TODO: Only colorize messages given a suitable terminal. 4 | # FIXME: Handle case in which no stash entry is created due to no changes. 5 | 6 | printf "\e[30m=== PRE-COMMIT STARTING ===\e[m\n" 7 | git stash save --quiet --keep-index --include-untracked 8 | 9 | if go build -v ./... && go test -v -cover ./... && go vet ./... && golint . && travis-lint; then 10 | result=$? 11 | printf "\e[32m=== PRE-COMMIT SUCCEEDED ===\e[m\n" 12 | else 13 | result=$? 14 | printf "\e[31m=== PRE-COMMIT FAILED ===\e[m\n" 15 | fi 16 | 17 | git stash pop --quiet 18 | exit $result 19 | -------------------------------------------------------------------------------- /vendor/gopkg.in/yaml.v2/LICENSE: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /_examples/intermediate/view/template_html_0/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "gopkg.in/kataras/iris.v6" 5 | "gopkg.in/kataras/iris.v6/adaptors/httprouter" 6 | "gopkg.in/kataras/iris.v6/adaptors/view" 7 | ) 8 | 9 | func main() { 10 | app := iris.New(iris.Configuration{Gzip: false, Charset: "UTF-8"}) // defaults to these 11 | 12 | app.Adapt(iris.DevLogger()) 13 | app.Adapt(httprouter.New()) 14 | 15 | app.Adapt(view.HTML("./templates", ".html")) 16 | 17 | app.Get("/hi", hi) 18 | app.Listen(":8080") 19 | } 20 | 21 | func hi(ctx *iris.Context) { 22 | ctx.MustRender("hi.html", struct{ Name string }{Name: "iris"}) 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/geekypanda/httpcache/nethttp/utils.go: -------------------------------------------------------------------------------- 1 | package nethttp 2 | 3 | import ( 4 | "net/http" 5 | "time" 6 | 7 | "github.com/geekypanda/httpcache/entry" 8 | ) 9 | 10 | // GetMaxAge parses the "Cache-Control" header 11 | // and returns a LifeChanger which can be passed 12 | // to the response's Reset 13 | func GetMaxAge(r *http.Request) entry.LifeChanger { 14 | return func() time.Duration { 15 | cacheControlHeader := r.Header.Get("Cache-Control") 16 | // headerCacheDur returns the seconds 17 | headerCacheDur := entry.ParseMaxAge(cacheControlHeader) 18 | return time.Duration(headerCacheDur) * time.Second 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /middleware/i18n/config.go: -------------------------------------------------------------------------------- 1 | package i18n 2 | 3 | // Config the i18n options 4 | type Config struct { 5 | // Default set it if you want a default language 6 | // 7 | // Checked: Configuration state, not at runtime 8 | Default string 9 | // URLParameter is the name of the url parameter which the language can be indentified 10 | // 11 | // Checked: Serving state, runtime 12 | URLParameter string 13 | // Languages is a map[string]string which the key is the language i81n and the value is the file location 14 | // 15 | // Example of key is: 'en-US' 16 | // Example of value is: './locales/en-US.ini' 17 | Languages map[string]string 18 | } 19 | -------------------------------------------------------------------------------- /vendor/github.com/geekypanda/httpcache/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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/h2demo/README: -------------------------------------------------------------------------------- 1 | 2 | Client: 3 | -- Firefox nightly with about:config network.http.spdy.enabled.http2draft set true 4 | -- Chrome: go to chrome://flags/#enable-spdy4, save and restart (button at bottom) 5 | 6 | Make CA: 7 | $ openssl genrsa -out rootCA.key 2048 8 | $ openssl req -x509 -new -nodes -key rootCA.key -days 1024 -out rootCA.pem 9 | ... install that to Firefox 10 | 11 | Make cert: 12 | $ openssl genrsa -out server.key 2048 13 | $ openssl req -new -key server.key -out server.csr 14 | $ openssl x509 -req -in server.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out server.crt -days 500 15 | 16 | 17 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/icmp_windows.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 | package ipv6 6 | 7 | func (f *icmpv6Filter) accept(typ ICMPType) { 8 | // TODO(mikio): implement this 9 | } 10 | 11 | func (f *icmpv6Filter) block(typ ICMPType) { 12 | // TODO(mikio): implement this 13 | } 14 | 15 | func (f *icmpv6Filter) setAll(block bool) { 16 | // TODO(mikio): implement this 17 | } 18 | 19 | func (f *icmpv6Filter) willBlock(typ ICMPType) bool { 20 | // TODO(mikio): implement this 21 | return false 22 | } 23 | -------------------------------------------------------------------------------- /vendor/github.com/kataras/go-template/vendor/github.com/microcosm-cc/bluemonday/cmd/sanitise_ugc/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | Package main demonstrates a simple user generated content sanitizer. 3 | 4 | This is the configuration I use on the sites that I run, it allows a lot of safe 5 | HTML that in my case comes from the blackfriday markdown package. As markdown 6 | itself allows HTML the UGCPolicy includes most common HTML. 7 | 8 | CSS and JavaScript is excluded (not white-listed), as are form elements and most 9 | embedded media that isn't just an image or image map. 10 | 11 | As I'm paranoid, I also do not allow data-uri images and embeds. 12 | */ 13 | package main 14 | -------------------------------------------------------------------------------- /middleware/logger/config.go: -------------------------------------------------------------------------------- 1 | package logger 2 | 3 | // Config are the options of the logger middlweare 4 | // contains 4 bools 5 | // Status, IP, Method, Path 6 | // if set to true then these will print 7 | type Config struct { 8 | // Status displays status code (bool) 9 | Status bool 10 | // IP displays request's remote address (bool) 11 | IP bool 12 | // Method displays the http method (bool) 13 | Method bool 14 | // Path displays the request path (bool) 15 | Path bool 16 | } 17 | 18 | // DefaultConfig returns an options which all properties are true except EnableColors 19 | func DefaultConfig() Config { 20 | return Config{true, true, true, true} 21 | } 22 | -------------------------------------------------------------------------------- /vendor/github.com/BurntSushi/toml/encoding_types.go: -------------------------------------------------------------------------------- 1 | // +build go1.2 2 | 3 | package toml 4 | 5 | // In order to support Go 1.1, we define our own TextMarshaler and 6 | // TextUnmarshaler types. For Go 1.2+, we just alias them with the 7 | // standard library interfaces. 8 | 9 | import ( 10 | "encoding" 11 | ) 12 | 13 | // TextMarshaler is a synonym for encoding.TextMarshaler. It is defined here 14 | // so that Go 1.1 can be supported. 15 | type TextMarshaler encoding.TextMarshaler 16 | 17 | // TextUnmarshaler is a synonym for encoding.TextUnmarshaler. It is defined 18 | // here so that Go 1.1 can be supported. 19 | type TextUnmarshaler encoding.TextUnmarshaler 20 | -------------------------------------------------------------------------------- /vendor/github.com/geekypanda/httpcache/nethttp/rule/satisfied.go: -------------------------------------------------------------------------------- 1 | package rule 2 | 3 | import ( 4 | "net/http" 5 | ) 6 | 7 | type satisfiedRule struct{} 8 | 9 | var _ Rule = &satisfiedRule{} 10 | 11 | // Satisfied returns a rule which allows anything, 12 | // it's usualy 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(*http.Request) bool { 19 | return true 20 | } 21 | 22 | func (n *satisfiedRule) Valid(http.ResponseWriter, *http.Request) bool { 23 | return true 24 | } 25 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/Godeps/Godeps.json: -------------------------------------------------------------------------------- 1 | { 2 | "ImportPath": "github.com/stretchr/testify", 3 | "GoVersion": "go1.5", 4 | "GodepVersion": "v74", 5 | "Packages": [ 6 | "./..." 7 | ], 8 | "Deps": [ 9 | { 10 | "ImportPath": "github.com/davecgh/go-spew/spew", 11 | "Comment": "v1.0.0-3-g6d21280", 12 | "Rev": "04cdfd42973bb9c8589fd6a731800cf222fde1a9" 13 | }, 14 | { 15 | "ImportPath": "github.com/pmezard/go-difflib/difflib", 16 | "Rev": "d8ed2627bdf02c080bf22230dbb337003b7aba2d" 17 | }, 18 | { 19 | "ImportPath": "github.com/stretchr/objx", 20 | "Rev": "cbeaeb16a013161a98496fad62933b1d21786672" 21 | } 22 | ] 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/chacha20poly1305/chacha20poly1305_noasm.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 | // +build !amd64 !go1.7 gccgo appengine 6 | 7 | package chacha20poly1305 8 | 9 | func (c *chacha20poly1305) seal(dst, nonce, plaintext, additionalData []byte) []byte { 10 | return c.sealGeneric(dst, nonce, plaintext, additionalData) 11 | } 12 | 13 | func (c *chacha20poly1305) open(dst, nonce, ciphertext, additionalData []byte) ([]byte, error) { 14 | return c.openGeneric(dst, nonce, ciphertext, additionalData) 15 | } 16 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/control_stub.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 | // +build nacl plan9 6 | 7 | package ipv4 8 | 9 | func setControlMessage(s uintptr, opt *rawOpt, cf ControlFlags, on bool) error { 10 | return errOpNoSupport 11 | } 12 | 13 | func newControlMessage(opt *rawOpt) []byte { 14 | return nil 15 | } 16 | 17 | func parseControlMessage(b []byte) (*ControlMessage, error) { 18 | return nil, errOpNoSupport 19 | } 20 | 21 | func marshalControlMessage(cm *ControlMessage) []byte { 22 | return nil 23 | } 24 | -------------------------------------------------------------------------------- /_examples/advanced/online-visitors/static/assets/js/visitors.js: -------------------------------------------------------------------------------- 1 | (function() { 2 | var socket = new Ws("ws://localhost:8080/my_endpoint"); 3 | 4 | socket.OnConnect(function () { 5 | socket.Emit("watch", PAGE_SOURCE); 6 | }); 7 | 8 | 9 | socket.On("watch", function (onlineViews) { 10 | var text = "1 online view"; 11 | if (onlineViews > 1) { 12 | text = onlineViews + " online views"; 13 | } 14 | document.getElementById("online_views").innerHTML = text; 15 | }); 16 | 17 | socket.OnDisconnect(function () { 18 | document.getElementById("online_views").innerHTML = "you've been disconnected"; 19 | }); 20 | 21 | })(); 22 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv6/control_stub.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 | // +build nacl plan9 6 | 7 | package ipv6 8 | 9 | func setControlMessage(s uintptr, opt *rawOpt, cf ControlFlags, on bool) error { 10 | return errOpNoSupport 11 | } 12 | 13 | func newControlMessage(opt *rawOpt) (oob []byte) { 14 | return nil 15 | } 16 | 17 | func parseControlMessage(b []byte) (*ControlMessage, error) { 18 | return nil, errOpNoSupport 19 | } 20 | 21 | func marshalControlMessage(cm *ControlMessage) (oob []byte) { 22 | return nil 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/icmp/helper.go: -------------------------------------------------------------------------------- 1 | // Copyright 2016 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package icmp 6 | 7 | import ( 8 | "encoding/binary" 9 | "unsafe" 10 | ) 11 | 12 | var ( 13 | // See http://www.freebsd.org/doc/en/books/porters-handbook/freebsd-versions.html. 14 | freebsdVersion uint32 15 | 16 | nativeEndian binary.ByteOrder 17 | ) 18 | 19 | func init() { 20 | i := uint32(1) 21 | b := (*[4]byte)(unsafe.Pointer(&i)) 22 | if b[0] == 1 { 23 | nativeEndian = binary.LittleEndian 24 | } else { 25 | nativeEndian = binary.BigEndian 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/icmp/ipv6.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 | package icmp 6 | 7 | import ( 8 | "net" 9 | 10 | "golang.org/x/net/internal/iana" 11 | ) 12 | 13 | const ipv6PseudoHeaderLen = 2*net.IPv6len + 8 14 | 15 | // IPv6PseudoHeader returns an IPv6 pseudo header for checksum 16 | // calculation. 17 | func IPv6PseudoHeader(src, dst net.IP) []byte { 18 | b := make([]byte, ipv6PseudoHeaderLen) 19 | copy(b, src.To16()) 20 | copy(b[net.IPv6len:], dst.To16()) 21 | b[len(b)-1] = byte(iana.ProtocolIPv6ICMP) 22 | return b 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/ipv4/icmp_linux.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 ipv4 6 | 7 | func (f *icmpFilter) accept(typ ICMPType) { 8 | f.Data &^= 1 << (uint32(typ) & 31) 9 | } 10 | 11 | func (f *icmpFilter) block(typ ICMPType) { 12 | f.Data |= 1 << (uint32(typ) & 31) 13 | } 14 | 15 | func (f *icmpFilter) setAll(block bool) { 16 | if block { 17 | f.Data = 1<<32 - 1 18 | } else { 19 | f.Data = 0 20 | } 21 | } 22 | 23 | func (f *icmpFilter) willBlock(typ ICMPType) bool { 24 | return f.Data&(1<<(uint32(typ)&31)) != 0 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/inbody01.dat: -------------------------------------------------------------------------------- 1 | #data 2 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /vendor/github.com/iris-contrib/httpexpect/vendor/github.com/yudai/gojsondiff/vendor/github.com/sergi/go-diff/diffmatchpatch/mathutil.go: -------------------------------------------------------------------------------- 1 | // Copyright (c) 2012-2016 The go-diff authors. All rights reserved. 2 | // https://github.com/sergi/go-diff 3 | // See the included LICENSE file for license details. 4 | // 5 | // go-diff is a Go implementation of Google's Diff, Match, and Patch library 6 | // Original library is Copyright (c) 2006 Google Inc. 7 | // http://code.google.com/p/google-diff-match-patch/ 8 | 9 | package diffmatchpatch 10 | 11 | func min(x, y int) int { 12 | if x < y { 13 | return x 14 | } 15 | return y 16 | } 17 | 18 | func max(x, y int) int { 19 | if x > y { 20 | return x 21 | } 22 | return y 23 | } 24 | -------------------------------------------------------------------------------- /vendor/golang.org/x/crypto/blake2b/blake2b_amd64.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 | // +build !go1.7,amd64,!gccgo,!appengine 6 | 7 | package blake2b 8 | 9 | func init() { 10 | useSSE4 = supportsSSE4() 11 | } 12 | 13 | //go:noescape 14 | func supportsSSE4() bool 15 | 16 | //go:noescape 17 | func hashBlocksSSE4(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) 18 | 19 | func hashBlocks(h *[8]uint64, c *[2]uint64, flag uint64, blocks []byte) { 20 | if useSSE4 { 21 | hashBlocksSSE4(h, c, flag, blocks) 22 | } else { 23 | hashBlocksGeneric(h, c, flag, blocks) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/README: -------------------------------------------------------------------------------- 1 | This is a work-in-progress HTTP/2 implementation for Go. 2 | 3 | It will eventually live in the Go standard library and won't require 4 | any changes to your code to use. It will just be automatic. 5 | 6 | Status: 7 | 8 | * The server support is pretty good. A few things are missing 9 | but are being worked on. 10 | * The client work has just started but shares a lot of code 11 | is coming along much quicker. 12 | 13 | Docs are at https://godoc.org/golang.org/x/net/http2 14 | 15 | Demo test server at https://http2.golang.org/ 16 | 17 | Help & bug reports welcome! 18 | 19 | Contributing: https://golang.org/doc/contribute.html 20 | Bugs: https://golang.org/issue/new?title=x/net/http2:+ 21 | -------------------------------------------------------------------------------- /vendor/github.com/stretchr/testify/vendor/github.com/stretchr/objx/codegen/types_list.txt: -------------------------------------------------------------------------------- 1 | Interface,interface{},"something",nil,Inter 2 | Map,map[string]interface{},map[string]interface{}{"name":"Tyler"},nil,MSI 3 | ObjxMap,(Map),New(1),New(nil),ObjxMap 4 | Bool,bool,true,false,Bool 5 | String,string,"hello","",Str 6 | Int,int,1,0,Int 7 | Int8,int8,1,0,Int8 8 | Int16,int16,1,0,Int16 9 | Int32,int32,1,0,Int32 10 | Int64,int64,1,0,Int64 11 | Uint,uint,1,0,Uint 12 | Uint8,uint8,1,0,Uint8 13 | Uint16,uint16,1,0,Uint16 14 | Uint32,uint32,1,0,Uint32 15 | Uint64,uint64,1,0,Uint64 16 | Uintptr,uintptr,1,0,Uintptr 17 | Float32,float32,1,0,Float32 18 | Float64,float64,1,0,Float64 19 | Complex64,complex64,1,0,Complex64 20 | Complex128,complex128,1,0,Complex128 21 | -------------------------------------------------------------------------------- /vendor/github.com/moul/http2curl/vendor/github.com/smartystreets/assertions/filter.go: -------------------------------------------------------------------------------- 1 | package assertions 2 | 3 | import "fmt" 4 | 5 | const ( 6 | success = "" 7 | needExactValues = "This assertion requires exactly %d comparison values (you provided %d)." 8 | needNonEmptyCollection = "This assertion requires at least 1 comparison value (you provided 0)." 9 | ) 10 | 11 | func need(needed int, expected []interface{}) string { 12 | if len(expected) != needed { 13 | return fmt.Sprintf(needExactValues, needed, len(expected)) 14 | } 15 | return success 16 | } 17 | 18 | func atLeast(minimum int, expected []interface{}) string { 19 | if len(expected) < 1 { 20 | return needNonEmptyCollection 21 | } 22 | return success 23 | } 24 | -------------------------------------------------------------------------------- /_examples/intermediate/pprof/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "gopkg.in/kataras/iris.v6" 5 | "gopkg.in/kataras/iris.v6/adaptors/httprouter" 6 | "gopkg.in/kataras/iris.v6/middleware/pprof" 7 | ) 8 | 9 | func main() { 10 | app := iris.New() 11 | app.Adapt(iris.DevLogger()) 12 | app.Adapt(httprouter.New()) 13 | 14 | app.Get("/", func(ctx *iris.Context) { 15 | ctx.HTML(iris.StatusOK, "

Please click here") 16 | }) 17 | 18 | app.Get("/debug/pprof/*action", pprof.New()) 19 | // ___________ 20 | // Note: 21 | // if you prefer gorillamux adaptor, then 22 | // the wildcard for gorilla mux (as you already know) is '{action:.*}' instead of '*action'. 23 | app.Listen(":8080") 24 | } 25 | -------------------------------------------------------------------------------- /_examples/intermediate/view/embedding-templates-into-app/main.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "gopkg.in/kataras/iris.v6" 5 | "gopkg.in/kataras/iris.v6/adaptors/httprouter" 6 | "gopkg.in/kataras/iris.v6/adaptors/view" 7 | ) 8 | 9 | func main() { 10 | app := iris.New() 11 | app.Adapt(iris.DevLogger()) 12 | app.Adapt(httprouter.New()) 13 | 14 | // $ go-bindata ./templates/... 15 | // $ go build 16 | // $ ./template_binary 17 | // templates are not used, you can delete the folder and run the example 18 | app.Adapt(view.HTML("./templates", ".html").Binary(Asset, AssetNames)) 19 | app.Get("/hi", hi) 20 | app.Listen(":8080") 21 | } 22 | 23 | func hi(ctx *iris.Context) { 24 | ctx.MustRender("hi.html", struct{ Name string }{Name: "iris"}) 25 | } 26 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/scripted/webkit01.dat: -------------------------------------------------------------------------------- 1 | #data 2 | 13 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | "1" 9 | | 4 15 | #errors 16 | #document 17 | | 18 | | 19 | | 20 | | "1" 21 | | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /_examples/intermediate/websockets/connectionlist/templates/client.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | {{ .Title}} 5 | 6 | 7 | 8 |
10 | 11 |
12 | 13 | 14 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/internal/nettest/helper_unix.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 | // +build darwin dragonfly freebsd linux netbsd openbsd solaris 6 | 7 | package nettest 8 | 9 | import ( 10 | "fmt" 11 | "os" 12 | "runtime" 13 | "syscall" 14 | ) 15 | 16 | func maxOpenFiles() int { 17 | var rlim syscall.Rlimit 18 | if err := syscall.Getrlimit(syscall.RLIMIT_NOFILE, &rlim); err != nil { 19 | return defaultMaxOpenFiles 20 | } 21 | return int(rlim.Cur) 22 | } 23 | 24 | func supportsRawIPSocket() (string, bool) { 25 | if os.Getuid() != 0 { 26 | return fmt.Sprintf("must be root on %s", runtime.GOOS), false 27 | } 28 | return "", true 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/isindex.dat: -------------------------------------------------------------------------------- 1 | #data 2 | 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | |
9 | |
10 | |