├── .gitignore ├── Gopkg.lock ├── Gopkg.toml ├── README.md ├── main.go └── vendor └── golang.org └── x └── net ├── .gitattributes ├── .gitignore ├── AUTHORS ├── CONTRIBUTING.md ├── CONTRIBUTORS ├── LICENSE ├── PATENTS ├── README ├── bpf ├── asm.go ├── constants.go ├── doc.go ├── instructions.go ├── instructions_test.go ├── setter.go ├── testdata │ ├── all_instructions.bpf │ └── all_instructions.txt ├── vm.go ├── vm_aluop_test.go ├── vm_bpf_test.go ├── vm_extension_test.go ├── vm_instructions.go ├── vm_jump_test.go ├── vm_load_test.go ├── vm_ret_test.go ├── vm_scratch_test.go └── vm_test.go ├── codereview.cfg ├── context ├── context.go ├── context_test.go ├── ctxhttp │ ├── ctxhttp.go │ ├── ctxhttp_17_test.go │ ├── ctxhttp_pre17.go │ ├── ctxhttp_pre17_test.go │ └── ctxhttp_test.go ├── go17.go ├── pre_go17.go └── withtimeout_test.go ├── dict └── dict.go ├── dns └── dnsmessage │ ├── example_test.go │ ├── message.go │ └── message_test.go ├── html ├── atom │ ├── atom.go │ ├── atom_test.go │ ├── gen.go │ ├── table.go │ └── table_test.go ├── charset │ ├── charset.go │ ├── charset_test.go │ └── testdata │ │ ├── HTTP-charset.html │ │ ├── HTTP-vs-UTF-8-BOM.html │ │ ├── HTTP-vs-meta-charset.html │ │ ├── HTTP-vs-meta-content.html │ │ ├── No-encoding-declaration.html │ │ ├── README │ │ ├── UTF-16BE-BOM.html │ │ ├── UTF-16LE-BOM.html │ │ ├── UTF-8-BOM-vs-meta-charset.html │ │ ├── UTF-8-BOM-vs-meta-content.html │ │ ├── meta-charset-attribute.html │ │ └── meta-content-attribute.html ├── const.go ├── doc.go ├── doctype.go ├── entity.go ├── entity_test.go ├── escape.go ├── escape_test.go ├── example_test.go ├── foreign.go ├── node.go ├── node_test.go ├── parse.go ├── parse_test.go ├── render.go ├── render_test.go ├── testdata │ ├── go1.html │ └── webkit │ │ ├── README │ │ ├── adoption01.dat │ │ ├── adoption02.dat │ │ ├── comments01.dat │ │ ├── doctype01.dat │ │ ├── entities01.dat │ │ ├── entities02.dat │ │ ├── html5test-com.dat │ │ ├── inbody01.dat │ │ ├── isindex.dat │ │ ├── pending-spec-changes-plain-text-unsafe.dat │ │ ├── pending-spec-changes.dat │ │ ├── plain-text-unsafe.dat │ │ ├── scriptdata01.dat │ │ ├── scripted │ │ ├── adoption01.dat │ │ └── webkit01.dat │ │ ├── tables01.dat │ │ ├── tests1.dat │ │ ├── tests10.dat │ │ ├── tests11.dat │ │ ├── tests12.dat │ │ ├── tests14.dat │ │ ├── tests15.dat │ │ ├── tests16.dat │ │ ├── tests17.dat │ │ ├── tests18.dat │ │ ├── tests19.dat │ │ ├── tests2.dat │ │ ├── tests20.dat │ │ ├── tests21.dat │ │ ├── tests22.dat │ │ ├── tests23.dat │ │ ├── tests24.dat │ │ ├── tests25.dat │ │ ├── tests26.dat │ │ ├── tests3.dat │ │ ├── tests4.dat │ │ ├── tests5.dat │ │ ├── tests6.dat │ │ ├── tests7.dat │ │ ├── tests8.dat │ │ ├── tests9.dat │ │ ├── tests_innerHTML_1.dat │ │ ├── tricky01.dat │ │ ├── webkit01.dat │ │ └── webkit02.dat ├── token.go └── token_test.go ├── http2 ├── .gitignore ├── Dockerfile ├── Makefile ├── README ├── ciphers.go ├── ciphers_test.go ├── client_conn_pool.go ├── configure_transport.go ├── databuffer.go ├── databuffer_test.go ├── errors.go ├── errors_test.go ├── flow.go ├── flow_test.go ├── frame.go ├── frame_test.go ├── go16.go ├── go17.go ├── go17_not18.go ├── go18.go ├── go18_test.go ├── go19.go ├── go19_test.go ├── gotrack.go ├── gotrack_test.go ├── h2demo │ ├── .gitignore │ ├── Makefile │ ├── README │ ├── h2demo.go │ ├── launch.go │ ├── rootCA.key │ ├── rootCA.pem │ ├── rootCA.srl │ ├── server.crt │ ├── server.key │ └── tmpl.go ├── h2i │ ├── README.md │ └── h2i.go ├── headermap.go ├── hpack │ ├── encode.go │ ├── encode_test.go │ ├── hpack.go │ ├── hpack_test.go │ ├── huffman.go │ ├── tables.go │ └── tables_test.go ├── http2.go ├── http2_test.go ├── not_go16.go ├── not_go17.go ├── not_go18.go ├── not_go19.go ├── pipe.go ├── pipe_test.go ├── server.go ├── server_push_test.go ├── server_test.go ├── testdata │ └── draft-ietf-httpbis-http2.xml ├── transport.go ├── transport_test.go ├── write.go ├── writesched.go ├── writesched_priority.go ├── writesched_priority_test.go ├── writesched_random.go ├── writesched_random_test.go ├── writesched_test.go └── z_spec_test.go ├── icmp ├── dstunreach.go ├── echo.go ├── endpoint.go ├── example_test.go ├── extension.go ├── extension_test.go ├── helper_posix.go ├── interface.go ├── ipv4.go ├── ipv4_test.go ├── ipv6.go ├── listen_posix.go ├── listen_stub.go ├── message.go ├── message_test.go ├── messagebody.go ├── mpls.go ├── multipart.go ├── multipart_test.go ├── packettoobig.go ├── paramprob.go ├── ping_test.go ├── sys_freebsd.go └── timeexceeded.go ├── idna ├── example_test.go ├── idna.go ├── idna_test.go ├── punycode.go ├── punycode_test.go ├── tables.go ├── trie.go └── trieval.go ├── internal ├── iana │ ├── const.go │ └── gen.go ├── nettest │ ├── helper_bsd.go │ ├── helper_nobsd.go │ ├── helper_posix.go │ ├── helper_stub.go │ ├── helper_unix.go │ ├── helper_windows.go │ ├── interface.go │ ├── rlimit.go │ └── stack.go ├── socket │ ├── cmsghdr.go │ ├── cmsghdr_bsd.go │ ├── cmsghdr_linux_32bit.go │ ├── cmsghdr_linux_64bit.go │ ├── cmsghdr_solaris_64bit.go │ ├── cmsghdr_stub.go │ ├── defs_darwin.go │ ├── defs_dragonfly.go │ ├── defs_freebsd.go │ ├── defs_linux.go │ ├── defs_netbsd.go │ ├── defs_openbsd.go │ ├── defs_solaris.go │ ├── error_unix.go │ ├── error_windows.go │ ├── iovec_32bit.go │ ├── iovec_64bit.go │ ├── iovec_solaris_64bit.go │ ├── iovec_stub.go │ ├── mmsghdr_stub.go │ ├── mmsghdr_unix.go │ ├── msghdr_bsd.go │ ├── msghdr_bsdvar.go │ ├── msghdr_linux.go │ ├── msghdr_linux_32bit.go │ ├── msghdr_linux_64bit.go │ ├── msghdr_openbsd.go │ ├── msghdr_solaris_64bit.go │ ├── msghdr_stub.go │ ├── rawconn.go │ ├── rawconn_mmsg.go │ ├── rawconn_msg.go │ ├── rawconn_nommsg.go │ ├── rawconn_nomsg.go │ ├── rawconn_stub.go │ ├── reflect.go │ ├── socket.go │ ├── socket_go1_9_test.go │ ├── socket_test.go │ ├── sys.go │ ├── sys_bsd.go │ ├── sys_bsdvar.go │ ├── sys_darwin.go │ ├── sys_dragonfly.go │ ├── sys_linux.go │ ├── sys_linux_386.go │ ├── sys_linux_386.s │ ├── sys_linux_amd64.go │ ├── sys_linux_arm.go │ ├── sys_linux_arm64.go │ ├── sys_linux_mips.go │ ├── sys_linux_mips64.go │ ├── sys_linux_mips64le.go │ ├── sys_linux_mipsle.go │ ├── sys_linux_ppc64.go │ ├── sys_linux_ppc64le.go │ ├── sys_linux_s390x.go │ ├── sys_linux_s390x.s │ ├── sys_netbsd.go │ ├── sys_posix.go │ ├── sys_solaris.go │ ├── sys_solaris_amd64.s │ ├── sys_stub.go │ ├── sys_unix.go │ ├── sys_windows.go │ ├── zsys_darwin_386.go │ ├── zsys_darwin_amd64.go │ ├── zsys_darwin_arm.go │ ├── zsys_dragonfly_amd64.go │ ├── zsys_freebsd_386.go │ ├── zsys_freebsd_amd64.go │ ├── zsys_freebsd_arm.go │ ├── zsys_linux_386.go │ ├── zsys_linux_amd64.go │ ├── zsys_linux_arm.go │ ├── zsys_linux_arm64.go │ ├── zsys_linux_mips.go │ ├── zsys_linux_mips64.go │ ├── zsys_linux_mips64le.go │ ├── zsys_linux_mipsle.go │ ├── zsys_linux_ppc64.go │ ├── zsys_linux_ppc64le.go │ ├── zsys_linux_s390x.go │ ├── zsys_netbsd_386.go │ ├── zsys_netbsd_amd64.go │ ├── zsys_netbsd_arm.go │ ├── zsys_openbsd_386.go │ ├── zsys_openbsd_amd64.go │ ├── zsys_openbsd_arm.go │ └── zsys_solaris_amd64.go └── timeseries │ ├── timeseries.go │ └── timeseries_test.go ├── ipv4 ├── batch.go ├── bpf_test.go ├── control.go ├── control_bsd.go ├── control_pktinfo.go ├── control_stub.go ├── control_test.go ├── control_unix.go ├── control_windows.go ├── defs_darwin.go ├── defs_dragonfly.go ├── defs_freebsd.go ├── defs_linux.go ├── defs_netbsd.go ├── defs_openbsd.go ├── defs_solaris.go ├── dgramopt.go ├── doc.go ├── endpoint.go ├── example_test.go ├── gen.go ├── genericopt.go ├── header.go ├── header_test.go ├── helper.go ├── iana.go ├── icmp.go ├── icmp_linux.go ├── icmp_stub.go ├── icmp_test.go ├── multicast_test.go ├── multicastlistener_test.go ├── multicastsockopt_test.go ├── packet.go ├── packet_go1_8.go ├── packet_go1_9.go ├── payload.go ├── payload_cmsg.go ├── payload_cmsg_go1_8.go ├── payload_cmsg_go1_9.go ├── payload_nocmsg.go ├── readwrite_go1_8_test.go ├── readwrite_go1_9_test.go ├── readwrite_test.go ├── sockopt.go ├── sockopt_posix.go ├── sockopt_stub.go ├── sys_asmreq.go ├── sys_asmreq_stub.go ├── sys_asmreqn.go ├── sys_asmreqn_stub.go ├── sys_bpf.go ├── sys_bpf_stub.go ├── sys_bsd.go ├── sys_darwin.go ├── sys_dragonfly.go ├── sys_freebsd.go ├── sys_linux.go ├── sys_solaris.go ├── sys_ssmreq.go ├── sys_ssmreq_stub.go ├── sys_stub.go ├── sys_windows.go ├── unicast_test.go ├── unicastsockopt_test.go ├── zsys_darwin.go ├── zsys_dragonfly.go ├── zsys_freebsd_386.go ├── zsys_freebsd_amd64.go ├── zsys_freebsd_arm.go ├── zsys_linux_386.go ├── zsys_linux_amd64.go ├── zsys_linux_arm.go ├── zsys_linux_arm64.go ├── zsys_linux_mips.go ├── zsys_linux_mips64.go ├── zsys_linux_mips64le.go ├── zsys_linux_mipsle.go ├── zsys_linux_ppc.go ├── zsys_linux_ppc64.go ├── zsys_linux_ppc64le.go ├── zsys_linux_s390x.go ├── zsys_netbsd.go ├── zsys_openbsd.go └── zsys_solaris.go ├── ipv6 ├── batch.go ├── bpf_test.go ├── control.go ├── control_rfc2292_unix.go ├── control_rfc3542_unix.go ├── control_stub.go ├── control_test.go ├── control_unix.go ├── control_windows.go ├── defs_darwin.go ├── defs_dragonfly.go ├── defs_freebsd.go ├── defs_linux.go ├── defs_netbsd.go ├── defs_openbsd.go ├── defs_solaris.go ├── dgramopt.go ├── doc.go ├── endpoint.go ├── example_test.go ├── gen.go ├── genericopt.go ├── header.go ├── header_test.go ├── helper.go ├── iana.go ├── icmp.go ├── icmp_bsd.go ├── icmp_linux.go ├── icmp_solaris.go ├── icmp_stub.go ├── icmp_test.go ├── icmp_windows.go ├── mocktransponder_test.go ├── multicast_test.go ├── multicastlistener_test.go ├── multicastsockopt_test.go ├── payload.go ├── payload_cmsg.go ├── payload_cmsg_go1_8.go ├── payload_cmsg_go1_9.go ├── payload_nocmsg.go ├── readwrite_go1_8_test.go ├── readwrite_go1_9_test.go ├── readwrite_test.go ├── sockopt.go ├── sockopt_posix.go ├── sockopt_stub.go ├── sockopt_test.go ├── sys_asmreq.go ├── sys_asmreq_stub.go ├── sys_bpf.go ├── sys_bpf_stub.go ├── sys_bsd.go ├── sys_darwin.go ├── sys_freebsd.go ├── sys_linux.go ├── sys_solaris.go ├── sys_ssmreq.go ├── sys_ssmreq_stub.go ├── sys_stub.go ├── sys_windows.go ├── unicast_test.go ├── unicastsockopt_test.go ├── zsys_darwin.go ├── zsys_dragonfly.go ├── zsys_freebsd_386.go ├── zsys_freebsd_amd64.go ├── zsys_freebsd_arm.go ├── zsys_linux_386.go ├── zsys_linux_amd64.go ├── zsys_linux_arm.go ├── zsys_linux_arm64.go ├── zsys_linux_mips.go ├── zsys_linux_mips64.go ├── zsys_linux_mips64le.go ├── zsys_linux_mipsle.go ├── zsys_linux_ppc.go ├── zsys_linux_ppc64.go ├── zsys_linux_ppc64le.go ├── zsys_linux_s390x.go ├── zsys_netbsd.go ├── zsys_openbsd.go └── zsys_solaris.go ├── lex └── httplex │ ├── httplex.go │ └── httplex_test.go ├── lif ├── address.go ├── address_test.go ├── binary.go ├── defs_solaris.go ├── lif.go ├── link.go ├── link_test.go ├── sys.go ├── sys_solaris_amd64.s ├── syscall.go └── zsys_solaris_amd64.go ├── nettest ├── conntest.go ├── conntest_go16.go ├── conntest_go17.go └── conntest_test.go ├── netutil ├── listen.go └── listen_test.go ├── proxy ├── direct.go ├── per_host.go ├── per_host_test.go ├── proxy.go ├── proxy_test.go └── socks5.go ├── publicsuffix ├── gen.go ├── list.go ├── list_test.go ├── table.go └── table_test.go ├── route ├── address.go ├── address_darwin_test.go ├── address_test.go ├── binary.go ├── defs_darwin.go ├── defs_dragonfly.go ├── defs_freebsd.go ├── defs_netbsd.go ├── defs_openbsd.go ├── interface.go ├── interface_announce.go ├── interface_classic.go ├── interface_freebsd.go ├── interface_multicast.go ├── interface_openbsd.go ├── message.go ├── message_darwin_test.go ├── message_freebsd_test.go ├── message_test.go ├── route.go ├── route_classic.go ├── route_openbsd.go ├── route_test.go ├── sys.go ├── sys_darwin.go ├── sys_dragonfly.go ├── sys_freebsd.go ├── sys_netbsd.go ├── sys_openbsd.go ├── syscall.go ├── zsys_darwin.go ├── zsys_dragonfly.go ├── zsys_freebsd_386.go ├── zsys_freebsd_amd64.go ├── zsys_freebsd_arm.go ├── zsys_netbsd.go └── zsys_openbsd.go ├── trace ├── events.go ├── histogram.go ├── histogram_test.go ├── trace.go ├── trace_go16.go ├── trace_go17.go └── trace_test.go ├── webdav ├── file.go ├── file_go1.6.go ├── file_go1.7.go ├── file_test.go ├── if.go ├── if_test.go ├── internal │ └── xml │ │ ├── README │ │ ├── atom_test.go │ │ ├── example_test.go │ │ ├── marshal.go │ │ ├── marshal_test.go │ │ ├── read.go │ │ ├── read_test.go │ │ ├── typeinfo.go │ │ ├── xml.go │ │ └── xml_test.go ├── litmus_test_server.go ├── lock.go ├── lock_test.go ├── prop.go ├── prop_test.go ├── webdav.go ├── webdav_test.go ├── xml.go └── xml_test.go ├── websocket ├── client.go ├── dial.go ├── dial_test.go ├── exampledial_test.go ├── examplehandler_test.go ├── hybi.go ├── hybi_test.go ├── server.go ├── websocket.go └── websocket_test.go └── xsrftoken ├── xsrf.go └── xsrf_test.go /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | _vendor-* 10 | 11 | # Architecture specific extensions/prefixes 12 | *.[568vq] 13 | [568vq].out 14 | 15 | *.cgo1.go 16 | *.cgo2.c 17 | _cgo_defun.c 18 | _cgo_gotypes.go 19 | _cgo_export.* 20 | 21 | _testmain.go 22 | 23 | *.exe 24 | *.test 25 | *.prof 26 | 27 | # Build script 28 | build.sh 29 | -------------------------------------------------------------------------------- /Gopkg.lock: -------------------------------------------------------------------------------- 1 | # This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. 2 | 3 | 4 | [[projects]] 5 | branch = "master" 6 | name = "golang.org/x/net" 7 | packages = ["html","html/atom"] 8 | revision = "054b33e6527139ad5b1ec2f6232c3b175bd9a30c" 9 | 10 | [solve-meta] 11 | analyzer-name = "dep" 12 | analyzer-version = 1 13 | inputs-digest = "121c9aac813df86721a04d9c74d5b28775770dcce35fa4fe89497f12afc38d3a" 14 | solver-name = "gps-cdcl" 15 | solver-version = 1 16 | -------------------------------------------------------------------------------- /Gopkg.toml: -------------------------------------------------------------------------------- 1 | 2 | # Gopkg.toml example 3 | # 4 | # Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md 5 | # for detailed Gopkg.toml documentation. 6 | # 7 | # required = ["github.com/user/thing/cmd/thing"] 8 | # ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] 9 | # 10 | # [[constraint]] 11 | # name = "github.com/user/project" 12 | # version = "1.0.0" 13 | # 14 | # [[constraint]] 15 | # name = "github.com/user/project2" 16 | # branch = "dev" 17 | # source = "github.com/myfork/project2" 18 | # 19 | # [[override]] 20 | # name = "github.com/x/y" 21 | # version = "2.4.0" 22 | 23 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/.gitattributes: -------------------------------------------------------------------------------- 1 | # Treat all files in this repo as binary, with no git magic updating 2 | # line endings. Windows users contributing to Go will need to use a 3 | # modern version of git and editors capable of LF line endings. 4 | # 5 | # We'll prevent accidental CRLF line endings from entering the repo 6 | # via the git-review gofmt checks. 7 | # 8 | # See golang.org/issue/9281 9 | 10 | * -text 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/.gitignore: -------------------------------------------------------------------------------- 1 | # Add no patterns to .hgignore except for files generated by the build. 2 | last-change 3 | -------------------------------------------------------------------------------- /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/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to Go 2 | 3 | Go is an open source project. 4 | 5 | It is the work of hundreds of contributors. We appreciate your help! 6 | 7 | 8 | ## Filing issues 9 | 10 | When [filing an issue](https://golang.org/issue/new), make sure to answer these five questions: 11 | 12 | 1. What version of Go are you using (`go version`)? 13 | 2. What operating system and processor architecture are you using? 14 | 3. What did you do? 15 | 4. What did you expect to see? 16 | 5. What did you see instead? 17 | 18 | General questions should go to the [golang-nuts mailing list](https://groups.google.com/group/golang-nuts) instead of the issue tracker. 19 | The gophers there will answer or ask you to file an issue if you've tripped over a bug. 20 | 21 | ## Contributing code 22 | 23 | Please read the [Contribution Guidelines](https://golang.org/doc/contribute.html) 24 | before sending patches. 25 | 26 | **We do not accept GitHub pull requests** 27 | (we use [Gerrit](https://code.google.com/p/gerrit/) instead for code review). 28 | 29 | Unless otherwise noted, the Go source files are distributed under 30 | the BSD-style license found in the LICENSE file. 31 | 32 | -------------------------------------------------------------------------------- /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/net/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2009 The Go Authors. All rights reserved. 2 | 3 | Redistribution and use in source and binary forms, with or without 4 | modification, are permitted provided that the following conditions are 5 | met: 6 | 7 | * Redistributions of source code must retain the above copyright 8 | notice, this list of conditions and the following disclaimer. 9 | * Redistributions in binary form must reproduce the above 10 | copyright notice, this list of conditions and the following disclaimer 11 | in the documentation and/or other materials provided with the 12 | distribution. 13 | * Neither the name of Google Inc. nor the names of its 14 | contributors may be used to endorse or promote products derived from 15 | this software without specific prior written permission. 16 | 17 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 18 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 19 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 20 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 21 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 22 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 23 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/PATENTS: -------------------------------------------------------------------------------- 1 | Additional IP Rights Grant (Patents) 2 | 3 | "This implementation" means the copyrightable works distributed by 4 | Google as part of the Go project. 5 | 6 | Google hereby grants to You a perpetual, worldwide, non-exclusive, 7 | no-charge, royalty-free, irrevocable (except as stated in this section) 8 | patent license to make, have made, use, offer to sell, sell, import, 9 | transfer and otherwise run, modify and propagate the contents of this 10 | implementation of Go, where such license applies only to those patent 11 | claims, both currently owned or controlled by Google and acquired in 12 | the future, licensable by Google that are necessarily infringed by this 13 | implementation of Go. This grant does not include claims that would be 14 | infringed only as a consequence of further modification of this 15 | implementation. If you or your agent or exclusive licensee institute or 16 | order or agree to the institution of patent litigation against any 17 | entity (including a cross-claim or counterclaim in a lawsuit) alleging 18 | that this implementation of Go or any code incorporated within this 19 | implementation of Go constitutes direct or contributory patent 20 | infringement, or inducement of patent infringement, then any patent 21 | rights granted to you under this License for this implementation of Go 22 | shall terminate as of the date such litigation is filed. 23 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/bpf/asm.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 bpf 6 | 7 | import "fmt" 8 | 9 | // Assemble converts insts into raw instructions suitable for loading 10 | // into a BPF virtual machine. 11 | // 12 | // Currently, no optimization is attempted, the assembled program flow 13 | // is exactly as provided. 14 | func Assemble(insts []Instruction) ([]RawInstruction, error) { 15 | ret := make([]RawInstruction, len(insts)) 16 | var err error 17 | for i, inst := range insts { 18 | ret[i], err = inst.Assemble() 19 | if err != nil { 20 | return nil, fmt.Errorf("assembling instruction %d: %s", i+1, err) 21 | } 22 | } 23 | return ret, nil 24 | } 25 | 26 | // Disassemble attempts to parse raw back into 27 | // Instructions. Unrecognized RawInstructions are assumed to be an 28 | // extension not implemented by this package, and are passed through 29 | // unchanged to the output. The allDecoded value reports whether insts 30 | // contains no RawInstructions. 31 | func Disassemble(raw []RawInstruction) (insts []Instruction, allDecoded bool) { 32 | insts = make([]Instruction, len(raw)) 33 | allDecoded = true 34 | for i, r := range raw { 35 | insts[i] = r.Disassemble() 36 | if _, ok := insts[i].(RawInstruction); ok { 37 | allDecoded = false 38 | } 39 | } 40 | return insts, allDecoded 41 | } 42 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/bpf/setter.go: -------------------------------------------------------------------------------- 1 | // Copyright 2017 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package bpf 6 | 7 | // A Setter is a type which can attach a compiled BPF filter to itself. 8 | type Setter interface { 9 | SetBPF(filter []RawInstruction) error 10 | } 11 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/bpf/testdata/all_instructions.bpf: -------------------------------------------------------------------------------- 1 | 50,0 0 0 42,1 0 0 42,96 0 0 3,97 0 0 3,48 0 0 42,40 0 0 42,32 0 0 42,80 0 0 42,72 0 0 42,64 0 0 42,177 0 0 42,128 0 0 0,32 0 0 4294963200,32 0 0 4294963204,32 0 0 4294963256,2 0 0 3,3 0 0 3,4 0 0 42,20 0 0 42,36 0 0 42,52 0 0 42,68 0 0 42,84 0 0 42,100 0 0 42,116 0 0 42,148 0 0 42,164 0 0 42,12 0 0 0,28 0 0 0,44 0 0 0,60 0 0 0,76 0 0 0,92 0 0 0,108 0 0 0,124 0 0 0,156 0 0 0,172 0 0 0,132 0 0 0,5 0 0 10,21 8 9 42,21 0 8 42,53 0 7 42,37 0 6 42,37 4 5 42,53 3 4 42,69 2 3 42,7 0 0 0,135 0 0 0,22 0 0 0,6 0 0 0, 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/bpf/testdata/all_instructions.txt: -------------------------------------------------------------------------------- 1 | # This filter is compiled to all_instructions.bpf by the `bpf_asm` 2 | # tool, which can be found in the linux kernel source tree under 3 | # tools/net. 4 | 5 | # Load immediate 6 | ld #42 7 | ldx #42 8 | 9 | # Load scratch 10 | ld M[3] 11 | ldx M[3] 12 | 13 | # Load absolute 14 | ldb [42] 15 | ldh [42] 16 | ld [42] 17 | 18 | # Load indirect 19 | ldb [x + 42] 20 | ldh [x + 42] 21 | ld [x + 42] 22 | 23 | # Load IPv4 header length 24 | ldx 4*([42]&0xf) 25 | 26 | # Run extension function 27 | ld #len 28 | ld #proto 29 | ld #type 30 | ld #rand 31 | 32 | # Store scratch 33 | st M[3] 34 | stx M[3] 35 | 36 | # A constant 37 | add #42 38 | sub #42 39 | mul #42 40 | div #42 41 | or #42 42 | and #42 43 | lsh #42 44 | rsh #42 45 | mod #42 46 | xor #42 47 | 48 | # A X 49 | add x 50 | sub x 51 | mul x 52 | div x 53 | or x 54 | and x 55 | lsh x 56 | rsh x 57 | mod x 58 | xor x 59 | 60 | # !A 61 | neg 62 | 63 | # Jumps 64 | ja end 65 | jeq #42,prev,end 66 | jne #42,end 67 | jlt #42,end 68 | jle #42,end 69 | jgt #42,prev,end 70 | jge #42,prev,end 71 | jset #42,prev,end 72 | 73 | # Register transfers 74 | tax 75 | txa 76 | 77 | # Returns 78 | prev: ret a 79 | end: ret #42 80 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/bpf/vm_extension_test.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 bpf_test 6 | 7 | import ( 8 | "testing" 9 | 10 | "golang.org/x/net/bpf" 11 | ) 12 | 13 | func TestVMLoadExtensionNotImplemented(t *testing.T) { 14 | _, _, err := testVM(t, []bpf.Instruction{ 15 | bpf.LoadExtension{ 16 | Num: 100, 17 | }, 18 | bpf.RetA{}, 19 | }) 20 | if errStr(err) != "extension 100 not implemented" { 21 | t.Fatalf("unexpected error: %v", err) 22 | } 23 | } 24 | 25 | func TestVMLoadExtensionExtLen(t *testing.T) { 26 | vm, done, err := testVM(t, []bpf.Instruction{ 27 | bpf.LoadExtension{ 28 | Num: bpf.ExtLen, 29 | }, 30 | bpf.RetA{}, 31 | }) 32 | if err != nil { 33 | t.Fatalf("failed to load BPF program: %v", err) 34 | } 35 | defer done() 36 | 37 | out, err := vm.Run([]byte{ 38 | 0xff, 0xff, 0xff, 0xff, 39 | 0xff, 0xff, 0xff, 0xff, 40 | 0, 1, 2, 3, 41 | }) 42 | if err != nil { 43 | t.Fatalf("unexpected error while running program: %v", err) 44 | } 45 | if want, got := 4, out; want != got { 46 | t.Fatalf("unexpected number of output bytes:\n- want: %d\n- got: %d", 47 | want, got) 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/context/ctxhttp/ctxhttp_17_test.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 !plan9,go1.7 6 | 7 | package ctxhttp 8 | 9 | import ( 10 | "io" 11 | "net/http" 12 | "net/http/httptest" 13 | "testing" 14 | 15 | "context" 16 | ) 17 | 18 | func TestGo17Context(t *testing.T) { 19 | ts := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { 20 | io.WriteString(w, "ok") 21 | })) 22 | defer ts.Close() 23 | ctx := context.Background() 24 | resp, err := Get(ctx, http.DefaultClient, ts.URL) 25 | if resp == nil || err != nil { 26 | t.Fatalf("error received from client: %v %v", err, resp) 27 | } 28 | resp.Body.Close() 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/context/withtimeout_test.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 context_test 6 | 7 | import ( 8 | "fmt" 9 | "time" 10 | 11 | "golang.org/x/net/context" 12 | ) 13 | 14 | // This example passes a context with a timeout to tell a blocking function that 15 | // it should abandon its work after the timeout elapses. 16 | func ExampleWithTimeout() { 17 | // Pass a context with a timeout to tell a blocking function that it 18 | // should abandon its work after the timeout elapses. 19 | ctx, cancel := context.WithTimeout(context.Background(), 50*time.Millisecond) 20 | defer cancel() 21 | 22 | select { 23 | case <-time.After(1 * time.Second): 24 | fmt.Println("overslept") 25 | case <-ctx.Done(): 26 | fmt.Println(ctx.Err()) // prints "context deadline exceeded" 27 | } 28 | 29 | // Output: 30 | // context deadline exceeded 31 | } 32 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/README: -------------------------------------------------------------------------------- 1 | These test cases come from 2 | http://www.w3.org/International/tests/repository/html5/the-input-byte-stream/results-basics 3 | 4 | Distributed under both the W3C Test Suite License 5 | (http://www.w3.org/Consortium/Legal/2008/04-testsuite-license) 6 | and the W3C 3-clause BSD License 7 | (http://www.w3.org/Consortium/Legal/2008/03-bsd-license). 8 | To contribute to a W3C Test Suite, see the policies and contribution 9 | forms (http://www.w3.org/2004/10/27-testcases). 10 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TheHackerDev/input-field-finder/539d6e7dbede88daaf41c083c1361423a77bee3c/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/TheHackerDev/input-field-finder/539d6e7dbede88daaf41c083c1361423a77bee3c/vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/entity_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2010 The Go Authors. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | package html 6 | 7 | import ( 8 | "testing" 9 | "unicode/utf8" 10 | ) 11 | 12 | func TestEntityLength(t *testing.T) { 13 | // We verify that the length of UTF-8 encoding of each value is <= 1 + len(key). 14 | // The +1 comes from the leading "&". This property implies that the length of 15 | // unescaped text is <= the length of escaped text. 16 | for k, v := range entity { 17 | if 1+len(k) < utf8.RuneLen(v) { 18 | t.Error("escaped entity &" + k + " is shorter than its UTF-8 encoding " + string(v)) 19 | } 20 | if len(k) > longestEntityWithoutSemicolon && k[len(k)-1] != ';' { 21 | t.Errorf("entity name %s is %d characters, but longestEntityWithoutSemicolon=%d", k, len(k), longestEntityWithoutSemicolon) 22 | } 23 | } 24 | for k, v := range entity2 { 25 | if 1+len(k) < utf8.RuneLen(v[0])+utf8.RuneLen(v[1]) { 26 | t.Error("escaped entity &" + k + " is shorter than its UTF-8 encoding " + string(v[0]) + string(v[1])) 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/example_test.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 example demonstrates parsing HTML data and walking the resulting tree. 6 | package html_test 7 | 8 | import ( 9 | "fmt" 10 | "log" 11 | "strings" 12 | 13 | "golang.org/x/net/html" 14 | ) 15 | 16 | func ExampleParse() { 17 | s := `

Links:

` 18 | doc, err := html.Parse(strings.NewReader(s)) 19 | if err != nil { 20 | log.Fatal(err) 21 | } 22 | var f func(*html.Node) 23 | f = func(n *html.Node) { 24 | if n.Type == html.ElementNode && n.Data == "a" { 25 | for _, a := range n.Attr { 26 | if a.Key == "href" { 27 | fmt.Println(a.Val) 28 | break 29 | } 30 | } 31 | } 32 | for c := n.FirstChild; c != nil; c = c.NextSibling { 33 | f(c) 34 | } 35 | } 36 | f(doc) 37 | // Output: 38 | // foo 39 | // /bar/baz 40 | } 41 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/README: -------------------------------------------------------------------------------- 1 | The *.dat files in this directory are copied from The WebKit Open Source 2 | Project, specifically $WEBKITROOT/LayoutTests/html5lib/resources. 3 | WebKit is licensed under a BSD style license. 4 | http://webkit.org/coding/bsd-license.html says: 5 | 6 | Copyright (C) 2009 Apple Inc. All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without 9 | modification, are permitted provided that the following conditions are met: 10 | 11 | 1. Redistributions of source code must retain the above copyright notice, 12 | this list of conditions and the following disclaimer. 13 | 14 | 2. Redistributions in binary form must reproduce the above copyright notice, 15 | this list of conditions and the following disclaimer in the documentation 16 | and/or other materials provided with the distribution. 17 | 18 | THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS "AS IS" AND ANY 19 | EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 20 | WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 21 | DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR ANY 22 | DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 23 | (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 24 | LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON 25 | ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS 27 | SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 | 29 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/testdata/webkit/adoption02.dat: -------------------------------------------------------------------------------- 1 | #data 2 | 12

34 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | 9 | | "1" 10 | | 11 | | "2" 12 | | 13 | |

14 | | 15 | | "3" 16 | | "4" 17 | 18 | #data 19 |

20 | #errors 21 | #document 22 | | 23 | | 24 | | 25 | | 26 | |
27 | | 28 | |