├── _example ├── crts │ ├── .gitkeep │ └── generate.sh ├── static │ └── example.jpg ├── README.md └── main.go ├── manifest.json ├── .gitignore ├── vendor └── golang.org │ └── x │ └── net │ ├── codereview.cfg │ ├── http2 │ ├── .gitignore │ ├── h2demo │ │ ├── rootCA.srl │ │ ├── .gitignore │ │ ├── Makefile │ │ └── README │ ├── Makefile │ ├── errors_test.go │ ├── not_go18.go │ ├── README │ ├── gotrack_test.go │ ├── flow.go │ ├── go18.go │ ├── writesched_random_test.go │ ├── go16.go │ ├── not_go16.go │ ├── flow_test.go │ ├── go17_not18.go │ ├── fixed_buffer.go │ ├── Dockerfile │ ├── go18_test.go │ └── headermap.go │ ├── .gitignore │ ├── 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 │ │ │ ├── tests4.dat │ │ │ ├── tests24.dat │ │ │ ├── tests14.dat │ │ │ ├── pending-spec-changes.dat │ │ │ ├── README │ │ │ └── tests12.dat │ ├── example_test.go │ └── entity_test.go │ ├── README │ ├── AUTHORS │ ├── CONTRIBUTORS │ ├── route │ ├── syscall.s │ ├── message_darwin_test.go │ ├── interface_announce.go │ ├── route_classic.go │ ├── interface_multicast.go │ ├── route_openbsd.go │ ├── sys.go │ ├── syscall.go │ ├── address_darwin_test.go │ ├── interface_classic.go │ ├── zsys_openbsd.go │ └── message.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 │ ├── syscall_linux_386.go │ ├── control_pktinfo.go │ ├── defs_netbsd.go │ ├── defs_openbsd.go │ ├── defs_dragonfly.go │ ├── control_bsd.go │ ├── sockopt_asmreqn_unix.go │ ├── sys_openbsd.go │ ├── sys_bsd.go │ ├── syscall_solaris.go │ ├── iana.go │ ├── sockopt_asmreq_posix.go │ ├── payload_nocmsg.go │ ├── helper.go │ ├── genericopt_posix.go │ ├── sockopt_ssmreq_unix.go │ ├── icmp.go │ ├── sockopt.go │ ├── sys_windows.go │ ├── sockopt_asmreq.go │ ├── sys_linux.go │ └── sys_solaris.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 │ ├── mocktransponder_test.go │ ├── icmp_solaris.go │ ├── icmp_bsd.go │ ├── control_windows.go │ ├── bpfopt_linux.go │ ├── syscall_unix.go │ ├── genericopt_stub.go │ ├── syscall_linux_386.go │ ├── helper.go │ ├── syscall_solaris.go │ ├── header_test.go │ ├── payload_nocmsg.go │ ├── sockopt_ssmreq_unix.go │ ├── header.go │ ├── control_rfc2292_unix.go │ ├── genericopt_posix.go │ ├── icmp.go │ ├── zsys_netbsd.go │ ├── sys_windows.go │ ├── zsys_dragonfly.go │ └── sockopt.go │ ├── icmp │ ├── sys_freebsd.go │ ├── helper.go │ ├── ipv6.go │ ├── listen_stub.go │ ├── timeexceeded.go │ ├── dstunreach.go │ ├── packettoobig.go │ ├── messagebody.go │ ├── echo.go │ ├── example_test.go │ ├── ipv4.go │ ├── helper_posix.go │ └── paramprob.go │ ├── lif │ ├── sys_solaris_amd64.s │ ├── syscall.go │ ├── lif.go │ └── link_test.go │ ├── webdav │ ├── file_go1.7.go │ ├── file_go1.6.go │ └── internal │ │ └── xml │ │ ├── README │ │ └── atom_test.go │ ├── .gitattributes │ ├── internal │ ├── nettest │ │ ├── helper_nobsd.go │ │ ├── rlimit.go │ │ ├── helper_stub.go │ │ ├── helper_unix.go │ │ ├── helper_posix.go │ │ ├── helper_bsd.go │ │ └── helper_windows.go │ └── netreflect │ │ ├── socket_stub.go │ │ ├── socket_posix.go │ │ ├── socket.go │ │ └── socket_test.go │ ├── proxy │ ├── direct.go │ └── per_host_test.go │ ├── bpf │ ├── testdata │ │ ├── all_instructions.bpf │ │ └── all_instructions.txt │ ├── vm_extension_test.go │ └── asm.go │ ├── websocket │ ├── dial.go │ ├── examplehandler_test.go │ ├── exampledial_test.go │ └── dial_test.go │ ├── context │ ├── ctxhttp │ │ └── ctxhttp_17_test.go │ └── withtimeout_test.go │ ├── nettest │ ├── conntest_go16.go │ ├── conntest_go17.go │ └── conntest_test.go │ ├── CONTRIBUTING.md │ ├── idna │ ├── idna_test.go │ └── idna.go │ ├── netutil │ └── listen.go │ ├── PATENTS │ └── LICENSE ├── .travis.yml ├── internal ├── bits │ ├── bits_benchmark_test.go │ ├── bits.go │ └── bits_test.go └── encoding │ └── golomb │ ├── testdata │ └── words.nato │ └── README.md ├── lock.json ├── Makefile └── LICENSE /_example/crts/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /manifest.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | *.key 2 | *.pem 3 | *.csr 4 | *.crt 5 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | h2i/h2i 3 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/h2demo/rootCA.srl: -------------------------------------------------------------------------------- 1 | E2CE26BF3285059C 2 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/http2/Makefile: -------------------------------------------------------------------------------- 1 | curlimage: 2 | docker build -t gohttp2/curl . 3 | 4 | -------------------------------------------------------------------------------- /_example/static/example.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcnksm/go-casper/HEAD/_example/static/example.jpg -------------------------------------------------------------------------------- /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/http2/h2demo/.gitignore: -------------------------------------------------------------------------------- 1 | h2demo 2 | h2demo.linux 3 | client-id.dat 4 | client-secret.dat 5 | token.dat 6 | -------------------------------------------------------------------------------- /vendor/golang.org/x/net/html/charset/testdata/UTF-16BE-BOM.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tcnksm/go-casper/HEAD/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/tcnksm/go-casper/HEAD/vendor/golang.org/x/net/html/charset/testdata/UTF-16LE-BOM.html -------------------------------------------------------------------------------- /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/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 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | 3 | go: 4 | - 1.8rc3 5 | - tip 6 | 7 | os: 8 | - linux 9 | - osx 10 | 11 | sudo: false 12 | 13 | install: 14 | - echo "skipping travis' default" 15 | 16 | script: 17 | - make test-all 18 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /_example/README.md: -------------------------------------------------------------------------------- 1 | # Example 2 | 3 | To run this example, you needs crts and key. If you don't have it then generate it by the following script, 4 | 5 | ```bash 6 | $ ./crts/generate.sh 7 | ``` 8 | 9 | To run example, 10 | 11 | ```bash 12 | $ go run main.go 13 | ``` 14 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /internal/bits/bits_benchmark_test.go: -------------------------------------------------------------------------------- 1 | package bits 2 | 3 | import ( 4 | "io/ioutil" 5 | "testing" 6 | ) 7 | 8 | func BenchmarkWrite(b *testing.B) { 9 | writer := NewWriter(ioutil.Discard) 10 | b.ResetTimer() 11 | for i := 0; i < b.N; i++ { 12 | writer.Write(0xff, 8) 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /internal/encoding/golomb/testdata/words.nato: -------------------------------------------------------------------------------- 1 | alpha 2 | bravo 3 | charlie 4 | delta 5 | echo 6 | foxtrot 7 | golf 8 | hotel 9 | india 10 | juliet 11 | kilo 12 | lima 13 | mike 14 | november 15 | oscar 16 | papa 17 | quebec 18 | romeo 19 | sierra 20 | tango 21 | uniform 22 | victor 23 | whiskey 24 | xray 25 | yankee 26 | zulu 27 | -------------------------------------------------------------------------------- /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/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/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/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 | -------------------------------------------------------------------------------- /lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "memo": "90d1614c35393f2ba0bddf0bc33852c7e131e238c1fc20dc3ffcf75c65de854d", 3 | "projects": [ 4 | { 5 | "name": "golang.org/x/net", 6 | "branch": "master", 7 | "revision": "f2499483f923065a842d38eb4c7f1927e6fc6e6d", 8 | "packages": [ 9 | "http2" 10 | ] 11 | } 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /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 | -------------------------------------------------------------------------------- /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 | | 3 3 | #errors 4 | #document 5 | | 6 | | 7 | | 8 | | "1" 9 | | 4 15 | #errors 16 | #document 17 | | 18 | | 19 | | 20 | | "1" 21 | |