├── LICENSE.md ├── README.md ├── ansi2html.go ├── config.go ├── db.go ├── deadci.ini ├── event.go ├── main.go ├── media ├── deadci-logo.png └── deadci-logo.psd ├── travis-local ├── README.md └── travis-local └── vendor ├── github.com ├── bmatsuo │ └── go-jsontree │ │ ├── .gitignore │ │ ├── README.md │ │ ├── cmd │ │ └── jsonpath │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ └── jsonpath.go │ │ ├── example_test.go │ │ ├── exp │ │ └── jsonpath │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ ├── example_test.go │ │ │ ├── jsonpath.go │ │ │ ├── jsonpath_test.go │ │ │ ├── lexer │ │ │ ├── .gitignore │ │ │ ├── README.md │ │ │ └── lexer.go │ │ │ └── parser.go │ │ ├── jsontree.go │ │ ├── jsontree_test.go │ │ └── testinput │ │ ├── example.input.json │ │ └── gist.json ├── dlintw │ └── goconf │ │ ├── AUTHORS │ │ ├── COPYRIGHT │ │ ├── Makefile │ │ ├── README.rst │ │ ├── get.go │ │ ├── goconf.go │ │ ├── goconf_test.go │ │ ├── read.go │ │ └── write.go ├── golang │ └── glog │ │ ├── LICENSE │ │ ├── README │ │ ├── glog.go │ │ ├── glog_file.go │ │ └── glog_test.go ├── google │ ├── go-github │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── AUTHORS │ │ ├── CONTRIBUTING.md │ │ ├── CONTRIBUTORS │ │ ├── LICENSE │ │ ├── README.md │ │ ├── examples │ │ │ └── basicauth │ │ │ │ └── main.go │ │ ├── github │ │ │ ├── activity.go │ │ │ ├── activity_events.go │ │ │ ├── activity_events_test.go │ │ │ ├── activity_notifications.go │ │ │ ├── activity_notifications_test.go │ │ │ ├── activity_star.go │ │ │ ├── activity_star_test.go │ │ │ ├── activity_test.go │ │ │ ├── activity_watching.go │ │ │ ├── activity_watching_test.go │ │ │ ├── authorizations.go │ │ │ ├── authorizations_test.go │ │ │ ├── doc.go │ │ │ ├── event_types.go │ │ │ ├── gists.go │ │ │ ├── gists_comments.go │ │ │ ├── gists_comments_test.go │ │ │ ├── gists_test.go │ │ │ ├── git.go │ │ │ ├── git_blobs.go │ │ │ ├── git_blobs_test.go │ │ │ ├── git_commits.go │ │ │ ├── git_commits_test.go │ │ │ ├── git_refs.go │ │ │ ├── git_refs_test.go │ │ │ ├── git_tags.go │ │ │ ├── git_tags_test.go │ │ │ ├── git_trees.go │ │ │ ├── git_trees_test.go │ │ │ ├── github.go │ │ │ ├── github_test.go │ │ │ ├── gitignore.go │ │ │ ├── gitignore_test.go │ │ │ ├── issues.go │ │ │ ├── issues_assignees.go │ │ │ ├── issues_assignees_test.go │ │ │ ├── issues_comments.go │ │ │ ├── issues_comments_test.go │ │ │ ├── issues_events.go │ │ │ ├── issues_events_test.go │ │ │ ├── issues_labels.go │ │ │ ├── issues_labels_test.go │ │ │ ├── issues_milestones.go │ │ │ ├── issues_milestones_test.go │ │ │ ├── issues_test.go │ │ │ ├── licenses.go │ │ │ ├── licenses_test.go │ │ │ ├── migrations.go │ │ │ ├── migrations_source_import.go │ │ │ ├── migrations_source_import_test.go │ │ │ ├── migrations_test.go │ │ │ ├── misc.go │ │ │ ├── misc_test.go │ │ │ ├── orgs.go │ │ │ ├── orgs_hooks.go │ │ │ ├── orgs_hooks_test.go │ │ │ ├── orgs_members.go │ │ │ ├── orgs_members_test.go │ │ │ ├── orgs_teams.go │ │ │ ├── orgs_teams_test.go │ │ │ ├── orgs_test.go │ │ │ ├── pulls.go │ │ │ ├── pulls_comments.go │ │ │ ├── pulls_comments_test.go │ │ │ ├── pulls_test.go │ │ │ ├── reactions.go │ │ │ ├── reactions_test.go │ │ │ ├── repos.go │ │ │ ├── repos_collaborators.go │ │ │ ├── repos_collaborators_test.go │ │ │ ├── repos_comments.go │ │ │ ├── repos_comments_test.go │ │ │ ├── repos_commits.go │ │ │ ├── repos_commits_test.go │ │ │ ├── repos_contents.go │ │ │ ├── repos_contents_test.go │ │ │ ├── repos_deployments.go │ │ │ ├── repos_deployments_test.go │ │ │ ├── repos_forks.go │ │ │ ├── repos_forks_test.go │ │ │ ├── repos_hooks.go │ │ │ ├── repos_hooks_test.go │ │ │ ├── repos_keys.go │ │ │ ├── repos_keys_test.go │ │ │ ├── repos_merging.go │ │ │ ├── repos_merging_test.go │ │ │ ├── repos_pages.go │ │ │ ├── repos_pages_test.go │ │ │ ├── repos_releases.go │ │ │ ├── repos_releases_test.go │ │ │ ├── repos_stats.go │ │ │ ├── repos_stats_test.go │ │ │ ├── repos_statuses.go │ │ │ ├── repos_statuses_test.go │ │ │ ├── repos_test.go │ │ │ ├── search.go │ │ │ ├── search_test.go │ │ │ ├── strings.go │ │ │ ├── strings_test.go │ │ │ ├── timestamp.go │ │ │ ├── timestamp_test.go │ │ │ ├── users.go │ │ │ ├── users_administration.go │ │ │ ├── users_administration_test.go │ │ │ ├── users_emails.go │ │ │ ├── users_emails_test.go │ │ │ ├── users_followers.go │ │ │ ├── users_followers_test.go │ │ │ ├── users_keys.go │ │ │ ├── users_keys_test.go │ │ │ └── users_test.go │ │ └── tests │ │ │ ├── README.md │ │ │ ├── fields │ │ │ └── fields.go │ │ │ └── integration │ │ │ ├── activity_test.go │ │ │ ├── authorizations_test.go │ │ │ ├── doc.go │ │ │ ├── github_test.go │ │ │ ├── issues_test.go │ │ │ ├── misc_test.go │ │ │ ├── pulls_test.go │ │ │ ├── repos_test.go │ │ │ └── users_test.go │ └── go-querystring │ │ ├── .gitignore │ │ ├── CONTRIBUTING.md │ │ ├── LICENSE │ │ ├── README.md │ │ └── query │ │ ├── encode.go │ │ └── encode_test.go ├── jmoiron │ └── sqlx │ │ ├── .gitignore │ │ ├── LICENSE │ │ ├── README.md │ │ ├── bind.go │ │ ├── doc.go │ │ ├── named.go │ │ ├── named_test.go │ │ ├── reflectx │ │ ├── README.md │ │ ├── reflect.go │ │ └── reflect_test.go │ │ ├── sqlx.go │ │ ├── sqlx_test.go │ │ └── types │ │ ├── README.md │ │ ├── types.go │ │ └── types_test.go ├── mattn │ └── go-sqlite3 │ │ ├── .gitignore │ │ ├── .travis.yml │ │ ├── LICENSE │ │ ├── README.md │ │ ├── _example │ │ ├── custom_func │ │ │ └── main.go │ │ ├── hook │ │ │ └── hook.go │ │ ├── mod_regexp │ │ │ ├── Makefile │ │ │ ├── extension.go │ │ │ └── sqlite3_mod_regexp.c │ │ ├── mod_vtable │ │ │ ├── Makefile │ │ │ ├── extension.go │ │ │ ├── picojson.h │ │ │ └── sqlite3_mod_vtable.cc │ │ └── simple │ │ │ └── simple.go │ │ ├── backup.go │ │ ├── callback.go │ │ ├── callback_test.go │ │ ├── doc.go │ │ ├── error.go │ │ ├── error_test.go │ │ ├── sqlite3-binding.c │ │ ├── sqlite3-binding.h │ │ ├── sqlite3.go │ │ ├── sqlite3_fts3_test.go │ │ ├── sqlite3_fts5.go │ │ ├── sqlite3_icu.go │ │ ├── sqlite3_json1.go │ │ ├── sqlite3_libsqlite3.go │ │ ├── sqlite3_load_extension.go │ │ ├── sqlite3_omit_load_extension.go │ │ ├── sqlite3_other.go │ │ ├── sqlite3_test.go │ │ ├── sqlite3_test │ │ └── sqltest.go │ │ ├── sqlite3_windows.go │ │ └── sqlite3ext.h └── phayes │ └── hookserve │ ├── LICENSE.md │ ├── README.md │ ├── doc.go │ ├── hookserve │ ├── doc.go │ └── hookserve.go │ └── util │ └── hookserve │ └── main.go └── 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 │ └── testdata │ │ ├── all_instructions.bpf │ │ └── all_instructions.txt ├── codereview.cfg ├── context │ ├── context.go │ ├── context_test.go │ ├── ctxhttp │ │ ├── ctxhttp.go │ │ └── ctxhttp_test.go │ ├── go17.go │ ├── pre_go17.go │ └── withtimeout_test.go ├── dict │ └── dict.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 │ ├── client_conn_pool.go │ ├── configure_transport.go │ ├── errors.go │ ├── errors_test.go │ ├── fixed_buffer.go │ ├── fixed_buffer_test.go │ ├── flow.go │ ├── flow_test.go │ ├── frame.go │ ├── frame_test.go │ ├── go17.go │ ├── gotrack.go │ ├── gotrack_test.go │ ├── h2demo │ │ ├── .gitignore │ │ ├── Makefile │ │ ├── README │ │ ├── h2demo.go │ │ ├── launch.go │ │ ├── rootCA.key │ │ ├── rootCA.pem │ │ ├── rootCA.srl │ │ ├── server.crt │ │ └── server.key │ ├── h2i │ │ ├── README.md │ │ └── h2i.go │ ├── headermap.go │ ├── hpack │ │ ├── encode.go │ │ ├── encode_test.go │ │ ├── hpack.go │ │ ├── hpack_test.go │ │ ├── huffman.go │ │ └── tables.go │ ├── http2.go │ ├── http2_test.go │ ├── not_go16.go │ ├── not_go17.go │ ├── pipe.go │ ├── pipe_test.go │ ├── priority_test.go │ ├── server.go │ ├── server_test.go │ ├── testdata │ │ └── draft-ietf-httpbis-http2.xml │ ├── transport.go │ ├── transport_test.go │ ├── write.go │ ├── writesched.go │ └── z_spec_test.go ├── icmp │ ├── dstunreach.go │ ├── echo.go │ ├── endpoint.go │ ├── example_test.go │ ├── extension.go │ ├── extension_test.go │ ├── helper.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 │ ├── idna.go │ ├── idna_test.go │ ├── punycode.go │ └── punycode_test.go ├── internal │ ├── iana │ │ ├── const.go │ │ └── gen.go │ ├── nettest │ │ ├── error_posix.go │ │ ├── error_stub.go │ │ ├── interface.go │ │ ├── rlimit.go │ │ ├── rlimit_stub.go │ │ ├── rlimit_unix.go │ │ ├── rlimit_windows.go │ │ ├── stack.go │ │ ├── stack_stub.go │ │ ├── stack_unix.go │ │ └── stack_windows.go │ └── timeseries │ │ ├── timeseries.go │ │ └── timeseries_test.go ├── ipv4 │ ├── bpf_test.go │ ├── bpfopt_linux.go │ ├── bpfopt_stub.go │ ├── control.go │ ├── control_bsd.go │ ├── control_pktinfo.go │ ├── control_stub.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_posix.go │ ├── dgramopt_stub.go │ ├── doc.go │ ├── endpoint.go │ ├── example_test.go │ ├── gen.go │ ├── genericopt_posix.go │ ├── genericopt_stub.go │ ├── header.go │ ├── header_test.go │ ├── helper.go │ ├── helper_stub.go │ ├── helper_unix.go │ ├── helper_windows.go │ ├── iana.go │ ├── icmp.go │ ├── icmp_linux.go │ ├── icmp_stub.go │ ├── icmp_test.go │ ├── mocktransponder_test.go │ ├── multicast_test.go │ ├── multicastlistener_test.go │ ├── multicastsockopt_test.go │ ├── packet.go │ ├── payload.go │ ├── payload_cmsg.go │ ├── payload_nocmsg.go │ ├── readwrite_test.go │ ├── sockopt.go │ ├── sockopt_asmreq.go │ ├── sockopt_asmreq_stub.go │ ├── sockopt_asmreq_unix.go │ ├── sockopt_asmreq_windows.go │ ├── sockopt_asmreqn_stub.go │ ├── sockopt_asmreqn_unix.go │ ├── sockopt_ssmreq_stub.go │ ├── sockopt_ssmreq_unix.go │ ├── sockopt_stub.go │ ├── sockopt_unix.go │ ├── sockopt_windows.go │ ├── sys_bsd.go │ ├── sys_darwin.go │ ├── sys_freebsd.go │ ├── sys_linux.go │ ├── sys_openbsd.go │ ├── sys_stub.go │ ├── sys_windows.go │ ├── syscall_linux_386.go │ ├── syscall_unix.go │ ├── thunk_linux_386.s │ ├── 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_mips64.go │ ├── zsys_linux_mips64le.go │ ├── zsys_linux_ppc64.go │ ├── zsys_linux_ppc64le.go │ ├── zsys_netbsd.go │ ├── zsys_openbsd.go │ └── zsys_solaris.go ├── ipv6 │ ├── bpf_test.go │ ├── bpfopt_linux.go │ ├── bpfopt_stub.go │ ├── control.go │ ├── control_rfc2292_unix.go │ ├── control_rfc3542_unix.go │ ├── control_stub.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_posix.go │ ├── dgramopt_stub.go │ ├── doc.go │ ├── endpoint.go │ ├── example_test.go │ ├── gen.go │ ├── genericopt_posix.go │ ├── genericopt_stub.go │ ├── header.go │ ├── header_test.go │ ├── helper.go │ ├── helper_stub.go │ ├── helper_unix.go │ ├── helper_windows.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_nocmsg.go │ ├── readwrite_test.go │ ├── sockopt.go │ ├── sockopt_asmreq_unix.go │ ├── sockopt_asmreq_windows.go │ ├── sockopt_ssmreq_stub.go │ ├── sockopt_ssmreq_unix.go │ ├── sockopt_stub.go │ ├── sockopt_test.go │ ├── sockopt_unix.go │ ├── sockopt_windows.go │ ├── sys_bsd.go │ ├── sys_darwin.go │ ├── sys_freebsd.go │ ├── sys_linux.go │ ├── sys_stub.go │ ├── sys_windows.go │ ├── syscall_linux_386.go │ ├── syscall_unix.go │ ├── thunk_linux_386.s │ ├── 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_mips64.go │ ├── zsys_linux_mips64le.go │ ├── zsys_linux_ppc64.go │ ├── zsys_linux_ppc64le.go │ ├── zsys_netbsd.go │ ├── zsys_openbsd.go │ └── zsys_solaris.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 │ ├── syscall.s │ ├── 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_test.go ├── webdav │ ├── file.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 │ ├── exampledial_test.go │ ├── examplehandler_test.go │ ├── hybi.go │ ├── hybi_test.go │ ├── server.go │ ├── websocket.go │ └── websocket_test.go └── xsrftoken │ ├── xsrf.go │ └── xsrf_test.go └── oauth2 ├── .travis.yml ├── AUTHORS ├── CONTRIBUTING.md ├── CONTRIBUTORS ├── LICENSE ├── README.md ├── bitbucket └── bitbucket.go ├── client_appengine.go ├── clientcredentials ├── clientcredentials.go └── clientcredentials_test.go ├── example_test.go ├── facebook └── facebook.go ├── fitbit └── fitbit.go ├── github └── github.go ├── google ├── appengine.go ├── appengine_hook.go ├── appenginevm_hook.go ├── default.go ├── example_test.go ├── google.go ├── google_test.go ├── jwt.go ├── sdk.go ├── sdk_test.go └── testdata │ └── gcloud │ ├── credentials │ └── properties ├── hipchat └── hipchat.go ├── internal ├── oauth2.go ├── oauth2_test.go ├── token.go ├── token_test.go ├── transport.go └── transport_test.go ├── jws ├── jws.go └── jws_test.go ├── jwt ├── example_test.go ├── jwt.go └── jwt_test.go ├── linkedin └── linkedin.go ├── microsoft └── microsoft.go ├── oauth2.go ├── oauth2_test.go ├── odnoklassniki └── odnoklassniki.go ├── paypal └── paypal.go ├── slack └── slack.go ├── token.go ├── token_test.go ├── transport.go ├── transport_test.go └── vk └── vk.go /LICENSE.md: -------------------------------------------------------------------------------- 1 | Open Source License (BSD 3-Clause) 2 | ---------------------------------- 3 | 4 | Copyright (c) 2014, Patrick Hayes / HighWire Press 5 | 6 | All rights reserved. 7 | 8 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 9 | 10 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 11 | 12 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 13 | 14 | 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 17 | -------------------------------------------------------------------------------- /media/deadci-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phayes/deadci/ee00075c53a25a362c0d541369de03519ca5b0b1/media/deadci-logo.png -------------------------------------------------------------------------------- /media/deadci-logo.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/phayes/deadci/ee00075c53a25a362c0d541369de03519ca5b0b1/media/deadci-logo.psd -------------------------------------------------------------------------------- /travis-local/README.md: -------------------------------------------------------------------------------- 1 | Travis-Local 2 | ============ 3 | 4 | Travis-local is a small bash script that lets you run a `.travis.yml` file locally. It only supports a subset of .travis.yml directives - specifically it will run the build lifecycle which includes before_install, install, before_script, script, after_success, after_failure, and after_script directives. It doesn't have support for any other directives, although pull-requests to add support for more directives are very welcome. 5 | 6 | Running travis-local is easy. 7 | 8 | ```bash 9 | $ travis-local /path/to/repository/to/test 10 | $ travis-local # Run in the current directory 11 | ``` 12 | 13 | You may also be interested in [JoliCi](https://github.com/jolicode/JoliCi), which let's you run your travis builds locally inside of [Docker](https://www.docker.com). 14 | 15 | ###Installing 16 | ```bash 17 | # Install dependancies: travis and travis-build 18 | gem install travis #install travis 19 | git clone git@github.com:travis-ci/travis-build.git # Clone travis build 20 | ln -s travis-build ~/.travis/travis-build 21 | 22 | # Copy to bin path and chmod it 23 | sudo cp travis-local /usr/bin 24 | sudo chmod a+x /usr/bin/travis-local 25 | ``` 26 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/.gitignore: -------------------------------------------------------------------------------- 1 | *.[865vqoa] 2 | [865vq].out 3 | build.out 4 | _cgo_export.h 5 | _testmain.go 6 | _test 7 | _obj 8 | jsontree.test 9 | test.json 10 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/README.md: -------------------------------------------------------------------------------- 1 | [godoc.org]: http://godoc.org/github.com/bmatsuo/go-jsontree/ "godoc.org" 2 | 3 | traverse json as a tree 4 | 5 | Install 6 | ======= 7 | 8 | go get github.com/bmatsuo/go-jsontree 9 | 10 | Docs 11 | ==== 12 | 13 | on [godoc.org][] 14 | 15 | Author 16 | ====== 17 | 18 | Bryan Matsuo [bryan dot matsuo at gmail dot com] 19 | 20 | Copyright & License 21 | =================== 22 | 23 | Copyright (c) 2013, Bryan Matsuo. 24 | All rights reserved. 25 | Use of this source code is governed by a BSD-style license that can be 26 | found in the LICENSE file. 27 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/cmd/jsonpath/.gitignore: -------------------------------------------------------------------------------- 1 | *.[865vqoa] 2 | [865vq].out 3 | build.out 4 | _cgo_export.h 5 | _testmain.go 6 | _test 7 | _obj 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/cmd/jsonpath/README.md: -------------------------------------------------------------------------------- 1 | [godoc.org]: http://go.pkgdoc.org/github.com/bmatsuo/go-jsontree/cmd/jsonpath/ "godoc.org" 2 | 3 | a utility for processing json data. 4 | 5 | Install 6 | ======= 7 | 8 | go get github.com/bmatsuo/go-jsontree/cmd/jsonpath 9 | 10 | Docs 11 | ==== 12 | 13 | on [godoc.org][] 14 | 15 | Author 16 | ====== 17 | 18 | Bryan Matsuo [bryan dot matsuo at gmail dot com] 19 | 20 | Copyright & License 21 | =================== 22 | 23 | Copyright (c) 2013, Bryan Matsuo. 24 | All rights reserved. 25 | Use of this source code is governed by a BSD-style license that can be 26 | found in the LICENSE file. 27 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/example_test.go: -------------------------------------------------------------------------------- 1 | package jsontree 2 | 3 | import ( 4 | "fmt" 5 | ) 6 | 7 | func Example() { 8 | raw := `{ 9 | "null": null, 10 | "object": { 11 | "int": 123, 12 | "bool": false, 13 | "array": [ 14 | "string", 15 | null 16 | ] 17 | } 18 | }` 19 | tree := New() 20 | err := tree.UnmarshalJSON([]byte(raw)) 21 | if err != nil { 22 | fmt.Println(err) 23 | } 24 | fmt.Println(tree.Get("object").Get("array").GetIndex(0).String()) 25 | fmt.Println(tree.Get("object").Get("int").Number()) 26 | fmt.Println(tree.Get("doesntexist").Err()) 27 | fmt.Println(tree.Get("null").Err()) 28 | fmt.Println(tree.Get("null").IsNull()) 29 | // Output: string 30 | // 123 31 | // key does not exist; $.doesntexist 32 | // 33 | // true 34 | } 35 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/exp/jsonpath/.gitignore: -------------------------------------------------------------------------------- 1 | *.[865vqoa] 2 | [865vq].out 3 | build.out 4 | _cgo_export.h 5 | _testmain.go 6 | _test 7 | _obj 8 | jsonpath.test 9 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/exp/jsonpath/README.md: -------------------------------------------------------------------------------- 1 | [godoc.org]: http://go.pkgdoc.org/github.com/bmatsuo/go-jsontree/exp/jsonpath/ "godoc.org" 2 | 3 | an experimental package for querying jsontree structures. 4 | 5 | Install 6 | ======= 7 | 8 | go get github.com/bmatsuo/go-jsontree/exp/jsonpath 9 | 10 | Docs 11 | ==== 12 | 13 | on [godoc.org][] 14 | 15 | Author 16 | ====== 17 | 18 | Bryan Matsuo [bryan dot matsuo at gmail dot com] 19 | 20 | Copyright & License 21 | =================== 22 | 23 | Copyright (c) 2013, Bryan Matsuo. 24 | All rights reserved. 25 | Use of this source code is governed by a BSD-style license that can be 26 | found in the LICENSE file. 27 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/exp/jsonpath/example_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013, Bryan Matsuo. All rights reserved. 2 | // Use of this source code is governed by a BSD-style 3 | // license that can be found in the LICENSE file. 4 | 5 | // jsonpath_test.go [created: Mon, 10 Jun 2013] 6 | 7 | package jsonpath 8 | 9 | import ( 10 | "github.com/bmatsuo/go-jsontree" 11 | 12 | "fmt" 13 | ) 14 | 15 | func Example() { 16 | raw := `[ 17 | { 18 | "name":{ 19 | "first":"alice" 20 | }, 21 | "phone":"555-1234" 22 | }, 23 | { 24 | "name":{ 25 | "first":"bob" 26 | }, 27 | "phone":"555-4321" 28 | }, 29 | { 30 | "name":{ 31 | "first":"bob" 32 | }, 33 | "phone":"555-3513" 34 | }, 35 | { 36 | "name":{ 37 | "first":"carol" 38 | }, 39 | "phone":"555-9352" 40 | } 41 | ]` 42 | js := jsontree.New() 43 | err := js.UnmarshalJSON([]byte(raw)) 44 | if err != nil { 45 | panic(err) 46 | } 47 | // $.*[name.first = 'bob'].phone 48 | bobsNumbers := Lookup(js, 49 | All, 50 | EqualString("bob", 51 | Key("name"), 52 | Key("first")), 53 | Key("phone")) 54 | for _, number := range bobsNumbers { 55 | str, _ := number.String() 56 | fmt.Println(str) 57 | } 58 | // Output: 59 | // 555-4321 60 | // 555-3513 61 | } 62 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/exp/jsonpath/lexer/.gitignore: -------------------------------------------------------------------------------- 1 | *.[865vqoa] 2 | [865vq].out 3 | build.out 4 | _cgo_export.h 5 | _testmain.go 6 | _test 7 | _obj 8 | 9 | 10 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/exp/jsonpath/lexer/README.md: -------------------------------------------------------------------------------- 1 | [godoc.org]: http://godoc.org/github.com/bmatsuo/lexer/ "godoc.org" 2 | 3 | Install 4 | ======= 5 | 6 | go get github.com/bmatsuo/lexer 7 | 8 | Docs 9 | ==== 10 | 11 | On [godoc.org][] 12 | 13 | Author 14 | ====== 15 | 16 | Bryan Matsuo [bryan dot matsuo at gmail dot com] 17 | 18 | Copyright & License 19 | =================== 20 | 21 | Copyright (c) 2013, Bryan Matsuo. 22 | All rights reserved. 23 | Use of this source code is governed by a BSD-style license that can be 24 | found in the LICENSE file. 25 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/jsontree_test.go: -------------------------------------------------------------------------------- 1 | package jsontree 2 | 3 | import ( 4 | "testing" 5 | ) 6 | 7 | func TestJsonTree(t *testing.T) { 8 | } 9 | -------------------------------------------------------------------------------- /vendor/github.com/bmatsuo/go-jsontree/testinput/example.input.json: -------------------------------------------------------------------------------- 1 | { 2 | "x": 1, 3 | "result": {"y": "abc\tdef"} 4 | } 5 | { 6 | "x": 2, 7 | "result": false 8 | } 9 | { 10 | "x": 2, 11 | "result": null 12 | } 13 | -------------------------------------------------------------------------------- /vendor/github.com/dlintw/goconf/AUTHORS: -------------------------------------------------------------------------------- 1 | Stephen Weinberg 2 | Andreas Krennmair https://github.com/akrennmair 3 | Daniel YC Lin 4 | -------------------------------------------------------------------------------- /vendor/github.com/dlintw/goconf/COPYRIGHT: -------------------------------------------------------------------------------- 1 | Copyright (c) 2010, Stephen Weinberg 2 | All rights reserved. 3 | 4 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 5 | 6 | * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 7 | * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 8 | * Neither the name of goconf nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 9 | 10 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 11 | -------------------------------------------------------------------------------- /vendor/github.com/dlintw/goconf/Makefile: -------------------------------------------------------------------------------- 1 | all: 2 | go tool fix *.go 3 | go tool vet *.go 4 | gofmt -s -w *.go 5 | go build 6 | go install 7 | test: all 8 | go test 9 | -------------------------------------------------------------------------------- /vendor/github.com/golang/glog/README: -------------------------------------------------------------------------------- 1 | glog 2 | ==== 3 | 4 | Leveled execution logs for Go. 5 | 6 | This is an efficient pure Go implementation of leveled logs in the 7 | manner of the open source C++ package 8 | https://github.com/google/glog 9 | 10 | By binding methods to booleans it is possible to use the log package 11 | without paying the expense of evaluating the arguments to the log. 12 | Through the -vmodule flag, the package also provides fine-grained 13 | control over logging at the file level. 14 | 15 | The comment from glog.go introduces the ideas: 16 | 17 | Package glog implements logging analogous to the Google-internal 18 | C++ INFO/ERROR/V setup. It provides functions Info, Warning, 19 | Error, Fatal, plus formatting variants such as Infof. It 20 | also provides V-style logging controlled by the -v and 21 | -vmodule=file=2 flags. 22 | 23 | Basic examples: 24 | 25 | glog.Info("Prepare to repel boarders") 26 | 27 | glog.Fatalf("Initialization failed: %s", err) 28 | 29 | See the documentation for the V function for an explanation 30 | of these examples: 31 | 32 | if glog.V(2) { 33 | glog.Info("Starting transaction...") 34 | } 35 | 36 | glog.V(2).Infoln("Processed", nItems, "elements") 37 | 38 | 39 | The repository contains an open source version of the log package 40 | used inside Google. The master copy of the source lives inside 41 | Google, not here. The code in this repo is for export only and is not itself 42 | under development. Feature requests will be ignored. 43 | 44 | Send bug reports to golang-nuts@googlegroups.com. 45 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: go 3 | go: 4 | - 1.5.4 5 | - 1.6.2 6 | - tip 7 | matrix: 8 | include: 9 | - go: 1.4.3 10 | script: 11 | - go get -t -v ./... 12 | - go test -v -race ./... 13 | allow_failures: 14 | - go: tip 15 | fast_finish: true 16 | install: 17 | - # Do nothing. This is needed to prevent default install action "go get -t -v ./..." from happening here (we want it to happen inside script step). 18 | script: 19 | - go get -t -v ./... 20 | - diff -u <(echo -n) <(gofmt -d -s .) 21 | - go tool vet . 22 | - go test -v -race ./... 23 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/examples/basicauth/main.go: -------------------------------------------------------------------------------- 1 | // Copyright 2015 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // The basicauth command demonstrates using the github.BasicAuthTransport, 7 | // including handling two-factor authentication. This won't currently work for 8 | // accounts that use SMS to receive one-time passwords. 9 | package main 10 | 11 | import ( 12 | "bufio" 13 | "fmt" 14 | "os" 15 | "strings" 16 | "syscall" 17 | 18 | "github.com/google/go-github/github" 19 | "golang.org/x/crypto/ssh/terminal" 20 | ) 21 | 22 | func main() { 23 | r := bufio.NewReader(os.Stdin) 24 | fmt.Print("GitHub Username: ") 25 | username, _ := r.ReadString('\n') 26 | 27 | fmt.Print("GitHub Password: ") 28 | bytePassword, _ := terminal.ReadPassword(int(syscall.Stdin)) 29 | password := string(bytePassword) 30 | 31 | tp := github.BasicAuthTransport{ 32 | Username: strings.TrimSpace(username), 33 | Password: strings.TrimSpace(password), 34 | } 35 | 36 | client := github.NewClient(tp.Client()) 37 | user, _, err := client.Users.Get("") 38 | 39 | // Is this a two-factor auth error? If so, prompt for OTP and try again. 40 | if _, ok := err.(*github.TwoFactorAuthError); err != nil && ok { 41 | fmt.Print("\nGitHub OTP: ") 42 | otp, _ := r.ReadString('\n') 43 | tp.OTP = strings.TrimSpace(otp) 44 | user, _, err = client.Users.Get("") 45 | } 46 | 47 | if err != nil { 48 | fmt.Printf("\nerror: %v\n", err) 49 | return 50 | } 51 | 52 | fmt.Printf("\n%v\n", github.Stringify(user)) 53 | } 54 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/github/git.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | // GitService handles communication with the git data related 9 | // methods of the GitHub API. 10 | // 11 | // GitHub API docs: http://developer.github.com/v3/git/ 12 | type GitService struct { 13 | client *Client 14 | } 15 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/github/git_blobs.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | import "fmt" 9 | 10 | // Blob represents a blob object. 11 | type Blob struct { 12 | Content *string `json:"content,omitempty"` 13 | Encoding *string `json:"encoding,omitempty"` 14 | SHA *string `json:"sha,omitempty"` 15 | Size *int `json:"size,omitempty"` 16 | URL *string `json:"url,omitempty"` 17 | } 18 | 19 | // GetBlob fetchs a blob from a repo given a SHA. 20 | // 21 | // GitHub API docs: http://developer.github.com/v3/git/blobs/#get-a-blob 22 | func (s *GitService) GetBlob(owner string, repo string, sha string) (*Blob, *Response, error) { 23 | u := fmt.Sprintf("repos/%v/%v/git/blobs/%v", owner, repo, sha) 24 | req, err := s.client.NewRequest("GET", u, nil) 25 | if err != nil { 26 | return nil, nil, err 27 | } 28 | 29 | blob := new(Blob) 30 | resp, err := s.client.Do(req, blob) 31 | return blob, resp, err 32 | } 33 | 34 | // CreateBlob creates a blob object. 35 | // 36 | // GitHub API docs: https://developer.github.com/v3/git/blobs/#create-a-blob 37 | func (s *GitService) CreateBlob(owner string, repo string, blob *Blob) (*Blob, *Response, error) { 38 | u := fmt.Sprintf("repos/%v/%v/git/blobs", owner, repo) 39 | req, err := s.client.NewRequest("POST", u, blob) 40 | if err != nil { 41 | return nil, nil, err 42 | } 43 | 44 | t := new(Blob) 45 | resp, err := s.client.Do(req, t) 46 | return t, resp, err 47 | } 48 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/github/gitignore_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | import ( 9 | "fmt" 10 | "net/http" 11 | "reflect" 12 | "testing" 13 | ) 14 | 15 | func TestGitignoresService_List(t *testing.T) { 16 | setup() 17 | defer teardown() 18 | 19 | mux.HandleFunc("/gitignore/templates", func(w http.ResponseWriter, r *http.Request) { 20 | testMethod(t, r, "GET") 21 | fmt.Fprint(w, `["C", "Go"]`) 22 | }) 23 | 24 | available, _, err := client.Gitignores.List() 25 | if err != nil { 26 | t.Errorf("Gitignores.List returned error: %v", err) 27 | } 28 | 29 | want := []string{"C", "Go"} 30 | if !reflect.DeepEqual(available, want) { 31 | t.Errorf("Gitignores.List returned %+v, want %+v", available, want) 32 | } 33 | } 34 | 35 | func TestGitignoresService_Get(t *testing.T) { 36 | setup() 37 | defer teardown() 38 | 39 | mux.HandleFunc("/gitignore/templates/name", func(w http.ResponseWriter, r *http.Request) { 40 | testMethod(t, r, "GET") 41 | fmt.Fprint(w, `{"name":"Name","source":"template source"}`) 42 | }) 43 | 44 | gitignore, _, err := client.Gitignores.Get("name") 45 | if err != nil { 46 | t.Errorf("Gitignores.List returned error: %v", err) 47 | } 48 | 49 | want := &Gitignore{Name: String("Name"), Source: String("template source")} 50 | if !reflect.DeepEqual(gitignore, want) { 51 | t.Errorf("Gitignores.Get returned %+v, want %+v", gitignore, want) 52 | } 53 | } 54 | 55 | func TestGitignoresService_Get_invalidTemplate(t *testing.T) { 56 | _, _, err := client.Gitignores.Get("%") 57 | testURLParseError(t, err) 58 | } 59 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/github/issues_assignees.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | import "fmt" 9 | 10 | // ListAssignees fetches all available assignees (owners and collaborators) to 11 | // which issues may be assigned. 12 | // 13 | // GitHub API docs: http://developer.github.com/v3/issues/assignees/#list-assignees 14 | func (s *IssuesService) ListAssignees(owner string, repo string, opt *ListOptions) ([]User, *Response, error) { 15 | u := fmt.Sprintf("repos/%v/%v/assignees", owner, repo) 16 | u, err := addOptions(u, opt) 17 | if err != nil { 18 | return nil, nil, err 19 | } 20 | 21 | req, err := s.client.NewRequest("GET", u, nil) 22 | if err != nil { 23 | return nil, nil, err 24 | } 25 | assignees := new([]User) 26 | resp, err := s.client.Do(req, assignees) 27 | if err != nil { 28 | return nil, resp, err 29 | } 30 | 31 | return *assignees, resp, err 32 | } 33 | 34 | // IsAssignee checks if a user is an assignee for the specified repository. 35 | // 36 | // GitHub API docs: http://developer.github.com/v3/issues/assignees/#check-assignee 37 | func (s *IssuesService) IsAssignee(owner string, repo string, user string) (bool, *Response, error) { 38 | u := fmt.Sprintf("repos/%v/%v/assignees/%v", owner, repo, user) 39 | req, err := s.client.NewRequest("GET", u, nil) 40 | if err != nil { 41 | return false, nil, err 42 | } 43 | resp, err := s.client.Do(req, nil) 44 | assignee, err := parseBoolResponse(err) 45 | return assignee, resp, err 46 | } 47 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/github/repos_merging.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | import ( 9 | "fmt" 10 | ) 11 | 12 | // RepositoryMergeRequest represents a request to merge a branch in a 13 | // repository. 14 | type RepositoryMergeRequest struct { 15 | Base *string `json:"base,omitempty"` 16 | Head *string `json:"head,omitempty"` 17 | CommitMessage *string `json:"commit_message,omitempty"` 18 | } 19 | 20 | // Merge a branch in the specified repository. 21 | // 22 | // GitHub API docs: https://developer.github.com/v3/repos/merging/#perform-a-merge 23 | func (s *RepositoriesService) Merge(owner, repo string, request *RepositoryMergeRequest) (*RepositoryCommit, *Response, error) { 24 | u := fmt.Sprintf("repos/%v/%v/merges", owner, repo) 25 | req, err := s.client.NewRequest("POST", u, request) 26 | if err != nil { 27 | return nil, nil, err 28 | } 29 | 30 | commit := new(RepositoryCommit) 31 | resp, err := s.client.Do(req, commit) 32 | if err != nil { 33 | return nil, resp, err 34 | } 35 | 36 | return commit, resp, err 37 | } 38 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/github/repos_merging_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | import ( 9 | "encoding/json" 10 | "fmt" 11 | "net/http" 12 | "reflect" 13 | "testing" 14 | ) 15 | 16 | func TestRepositoriesService_Merge(t *testing.T) { 17 | setup() 18 | defer teardown() 19 | 20 | input := &RepositoryMergeRequest{ 21 | Base: String("b"), 22 | Head: String("h"), 23 | CommitMessage: String("c"), 24 | } 25 | 26 | mux.HandleFunc("/repos/o/r/merges", func(w http.ResponseWriter, r *http.Request) { 27 | v := new(RepositoryMergeRequest) 28 | json.NewDecoder(r.Body).Decode(v) 29 | 30 | testMethod(t, r, "POST") 31 | if !reflect.DeepEqual(v, input) { 32 | t.Errorf("Request body = %+v, want %+v", v, input) 33 | } 34 | 35 | fmt.Fprint(w, `{"sha":"s"}`) 36 | }) 37 | 38 | commit, _, err := client.Repositories.Merge("o", "r", input) 39 | if err != nil { 40 | t.Errorf("Repositories.Merge returned error: %v", err) 41 | } 42 | 43 | want := &RepositoryCommit{SHA: String("s")} 44 | if !reflect.DeepEqual(commit, want) { 45 | t.Errorf("Repositories.Merge returned %+v, want %+v", commit, want) 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/github/timestamp.go: -------------------------------------------------------------------------------- 1 | // Copyright 2013 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | package github 7 | 8 | import ( 9 | "strconv" 10 | "time" 11 | ) 12 | 13 | // Timestamp represents a time that can be unmarshalled from a JSON string 14 | // formatted as either an RFC3339 or Unix timestamp. This is necessary for some 15 | // fields since the GitHub API is inconsistent in how it represents times. All 16 | // exported methods of time.Time can be called on Timestamp. 17 | type Timestamp struct { 18 | time.Time 19 | } 20 | 21 | func (t Timestamp) String() string { 22 | return t.Time.String() 23 | } 24 | 25 | // UnmarshalJSON implements the json.Unmarshaler interface. 26 | // Time is expected in RFC3339 or Unix format. 27 | func (t *Timestamp) UnmarshalJSON(data []byte) (err error) { 28 | str := string(data) 29 | i, err := strconv.ParseInt(str, 10, 64) 30 | if err == nil { 31 | (*t).Time = time.Unix(i, 0) 32 | } else { 33 | (*t).Time, err = time.Parse(`"`+time.RFC3339+`"`, str) 34 | } 35 | return 36 | } 37 | 38 | // Equal reports whether t and u are equal based on time.Equal 39 | func (t Timestamp) Equal(u Timestamp) bool { 40 | return t.Time.Equal(u.Time) 41 | } 42 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/tests/integration/doc.go: -------------------------------------------------------------------------------- 1 | // Package tests contains integration tests. 2 | // 3 | // These tests call the live GitHub API, and therefore require a little more 4 | // setup to run. See https://github.com/google/go-github/tree/master/tests/integration 5 | // for more information. 6 | package tests 7 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/tests/integration/issues_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build integration 7 | 8 | package tests 9 | 10 | import "testing" 11 | 12 | func TestIssueEvents(t *testing.T) { 13 | events, _, err := client.Issues.ListRepositoryEvents("google", "go-github", nil) 14 | if err != nil { 15 | t.Fatalf("Issues.ListRepositoryEvents returned error: %v", err) 16 | } 17 | 18 | if len(events) == 0 { 19 | t.Errorf("ListRepositoryEvents returned no events") 20 | } 21 | 22 | events, _, err = client.Issues.ListIssueEvents("google", "go-github", 1, nil) 23 | if err != nil { 24 | t.Fatalf("Issues.ListIssueEvents returned error: %v", err) 25 | } 26 | 27 | if len(events) == 0 { 28 | t.Errorf("ListIssueEvents returned no events") 29 | } 30 | 31 | event, _, err := client.Issues.GetEvent("google", "go-github", *events[0].ID) 32 | if err != nil { 33 | t.Fatalf("Issues.GetEvent returned error: %v", err) 34 | } 35 | 36 | if *event.URL != *events[0].URL { 37 | t.Fatalf("Issues.GetEvent returned event URL: %v, want %v", *event.URL, *events[0].URL) 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-github/tests/integration/pulls_test.go: -------------------------------------------------------------------------------- 1 | // Copyright 2014 The go-github AUTHORS. All rights reserved. 2 | // 3 | // Use of this source code is governed by a BSD-style 4 | // license that can be found in the LICENSE file. 5 | 6 | // +build integration 7 | 8 | package tests 9 | 10 | import "testing" 11 | 12 | func TestPullRequests_ListCommits(t *testing.T) { 13 | commits, _, err := client.PullRequests.ListCommits("google", "go-github", 2, nil) 14 | if err != nil { 15 | t.Fatalf("PullRequests.ListCommits() returned error: %v", err) 16 | } 17 | 18 | if got, want := len(commits), 3; got != want { 19 | t.Fatalf("PullRequests.ListCommits() returned %d commits, want %d", got, want) 20 | } 21 | 22 | if got, want := *commits[0].Author.Login, "sqs"; got != want { 23 | t.Fatalf("PullRequests.ListCommits()[0].Author.Login returned %v, want %v", got, want) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-querystring/.gitignore: -------------------------------------------------------------------------------- 1 | *.test 2 | -------------------------------------------------------------------------------- /vendor/github.com/google/go-querystring/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013 Google. 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/github.com/google/go-querystring/README.md: -------------------------------------------------------------------------------- 1 | # go-querystring # 2 | 3 | go-querystring is Go library for encoding structs into URL query parameters. 4 | 5 | 6 | **Documentation:** 7 | **Build Status:** [![Build Status](https://drone.io/github.com/google/go-querystring/status.png)](https://drone.io/github.com/google/go-querystring/latest) 8 | 9 | ## Usage ## 10 | 11 | ```go 12 | import "github.com/google/go-querystring/query" 13 | ``` 14 | 15 | go-querystring is designed to assist in scenarios where you want to construct a 16 | URL using a struct that represents the URL query parameters. You might do this 17 | to enforce the type safety of your parameters, for example, as is done in the 18 | [go-github][] library. 19 | 20 | The query package exports a single `Values()` function. A simple example: 21 | 22 | ```go 23 | type Options struct { 24 | Query string `url:"q"` 25 | ShowAll bool `url:"all"` 26 | Page int `url:"page"` 27 | } 28 | 29 | opt := Options{ "foo", true, 2 } 30 | v, _ := query.Values(opt) 31 | fmt.Print(v.Encode()) // will output: "q=foo&all=true&page=2" 32 | ``` 33 | 34 | [go-github]: https://github.com/google/go-github/commit/994f6f8405f052a117d2d0b500054341048fbb08 35 | 36 | ## License ## 37 | 38 | This library is distributed under the BSD-style license found in the [LICENSE](./LICENSE) 39 | file. 40 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files, Static and Dynamic libs (Shared Objects) 2 | *.o 3 | *.a 4 | *.so 5 | 6 | # Folders 7 | _obj 8 | _test 9 | 10 | # Architecture specific extensions/prefixes 11 | *.[568vq] 12 | [568vq].out 13 | 14 | *.cgo1.go 15 | *.cgo2.c 16 | _cgo_defun.c 17 | _cgo_gotypes.go 18 | _cgo_export.* 19 | 20 | _testmain.go 21 | 22 | *.exe 23 | tags 24 | environ 25 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2013, Jason Moiron 2 | 3 | Permission is hereby granted, free of charge, to any person 4 | obtaining a copy of this software and associated documentation 5 | files (the "Software"), to deal in the Software without 6 | restriction, including without limitation the rights to use, 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the 9 | Software is furnished to do so, subject to the following 10 | conditions: 11 | 12 | The above copyright notice and this permission notice shall be 13 | included in all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 22 | OTHER DEALINGS IN THE SOFTWARE. 23 | 24 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/doc.go: -------------------------------------------------------------------------------- 1 | // Package sqlx provides general purpose extensions to database/sql. 2 | // 3 | // It is intended to seamlessly wrap database/sql and provide convenience 4 | // methods which are useful in the development of database driven applications. 5 | // None of the underlying database/sql methods are changed. Instead all extended 6 | // behavior is implemented through new methods defined on wrapper types. 7 | // 8 | // Additions include scanning into structs, named query support, rebinding 9 | // queries for different drivers, convenient shorthands for common error handling 10 | // and more. 11 | // 12 | package sqlx 13 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/reflectx/README.md: -------------------------------------------------------------------------------- 1 | # reflectx 2 | 3 | The sqlx package has special reflect needs. In particular, it needs to: 4 | 5 | * be able to map a name to a field 6 | * understand embedded structs 7 | * understand mapping names to fields by a particular tag 8 | * user specified name -> field mapping functions 9 | 10 | These behaviors mimic the behaviors by the standard library marshallers and also the 11 | behavior of standard Go accessors. 12 | 13 | The first two are amply taken care of by `Reflect.Value.FieldByName`, and the third is 14 | addressed by `Reflect.Value.FieldByNameFunc`, but these don't quite understand struct 15 | tags in the ways that are vital to most marshalers, and they are slow. 16 | 17 | This reflectx package extends reflect to achieve these goals. 18 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/types/README.md: -------------------------------------------------------------------------------- 1 | # types 2 | 3 | The types package provides some useful types which implement the `sql.Scanner` 4 | and `driver.Valuer` interfaces, suitable for use as scan and value targets with 5 | database/sql. 6 | -------------------------------------------------------------------------------- /vendor/github.com/jmoiron/sqlx/types/types_test.go: -------------------------------------------------------------------------------- 1 | package types 2 | 3 | import "testing" 4 | 5 | func TestGzipText(t *testing.T) { 6 | g := GzippedText("Hello, world") 7 | v, err := g.Value() 8 | if err != nil { 9 | t.Errorf("Was not expecting an error") 10 | } 11 | err = (&g).Scan(v) 12 | if err != nil { 13 | t.Errorf("Was not expecting an error") 14 | } 15 | if string(g) != "Hello, world" { 16 | t.Errorf("Was expecting the string we sent in (Hello World), got %s", string(g)) 17 | } 18 | } 19 | 20 | func TestJSONText(t *testing.T) { 21 | j := JSONText(`{"foo": 1, "bar": 2}`) 22 | v, err := j.Value() 23 | if err != nil { 24 | t.Errorf("Was not expecting an error") 25 | } 26 | err = (&j).Scan(v) 27 | if err != nil { 28 | t.Errorf("Was not expecting an error") 29 | } 30 | m := map[string]interface{}{} 31 | j.Unmarshal(&m) 32 | 33 | if m["foo"].(float64) != 1 || m["bar"].(float64) != 2 { 34 | t.Errorf("Expected valid json but got some garbage instead? %#v", m) 35 | } 36 | 37 | j = JSONText(`{"foo": 1, invalid, false}`) 38 | v, err = j.Value() 39 | if err == nil { 40 | t.Errorf("Was expecting invalid json to fail!") 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/.gitignore: -------------------------------------------------------------------------------- 1 | *.db 2 | *.exe 3 | *.dll 4 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/.travis.yml: -------------------------------------------------------------------------------- 1 | language: go 2 | sudo: required 3 | dist: trusty 4 | go: 5 | - 1.5 6 | - 1.6 7 | - tip 8 | before_install: 9 | - go get github.com/mattn/goveralls 10 | - go get golang.org/x/tools/cmd/cover 11 | script: 12 | - $HOME/gopath/bin/goveralls -repotoken 3qJVUE0iQwqnCbmNcDsjYu1nh4J4KIFXx 13 | - go test -v . -tags "libsqlite3" 14 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2014 Yasuhiro Matsumoto 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/_example/hook/hook.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "database/sql" 5 | "github.com/mattn/go-sqlite3" 6 | "log" 7 | "os" 8 | ) 9 | 10 | func main() { 11 | sqlite3conn := []*sqlite3.SQLiteConn{} 12 | sql.Register("sqlite3_with_hook_example", 13 | &sqlite3.SQLiteDriver{ 14 | ConnectHook: func(conn *sqlite3.SQLiteConn) error { 15 | sqlite3conn = append(sqlite3conn, conn) 16 | return nil 17 | }, 18 | }) 19 | os.Remove("./foo.db") 20 | os.Remove("./bar.db") 21 | 22 | destDb, err := sql.Open("sqlite3_with_hook_example", "./foo.db") 23 | if err != nil { 24 | log.Fatal(err) 25 | } 26 | defer destDb.Close() 27 | destDb.Ping() 28 | 29 | _, err = destDb.Exec("create table foo(id int, value text)") 30 | if err != nil { 31 | log.Fatal(err) 32 | } 33 | _, err = destDb.Exec("insert into foo values(1, 'foo')") 34 | if err != nil { 35 | log.Fatal(err) 36 | } 37 | _, err = destDb.Exec("insert into foo values(2, 'bar')") 38 | if err != nil { 39 | log.Fatal(err) 40 | } 41 | _, err = destDb.Query("select * from foo") 42 | if err != nil { 43 | log.Fatal(err) 44 | } 45 | srcDb, err := sql.Open("sqlite3_with_hook_example", "./bar.db") 46 | if err != nil { 47 | log.Fatal(err) 48 | } 49 | defer srcDb.Close() 50 | srcDb.Ping() 51 | 52 | bk, err := sqlite3conn[1].Backup("main", sqlite3conn[0], "main") 53 | if err != nil { 54 | log.Fatal(err) 55 | } 56 | 57 | _, err = bk.Step(-1) 58 | if err != nil { 59 | log.Fatal(err) 60 | } 61 | _, err = destDb.Query("select * from foo") 62 | if err != nil { 63 | log.Fatal(err) 64 | } 65 | _, err = destDb.Exec("insert into foo values(3, 'bar')") 66 | if err != nil { 67 | log.Fatal(err) 68 | } 69 | 70 | bk.Finish() 71 | } 72 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/_example/mod_regexp/Makefile: -------------------------------------------------------------------------------- 1 | ifeq ($(OS),Windows_NT) 2 | EXE=extension.exe 3 | EXT=sqlite3_mod_regexp.dll 4 | RM=cmd /c del 5 | LDFLAG= 6 | else 7 | EXE=extension 8 | EXT=sqlite3_mod_regexp.so 9 | RM=rm 10 | LDFLAG=-fPIC 11 | endif 12 | 13 | all : $(EXE) $(EXT) 14 | 15 | $(EXE) : extension.go 16 | go build $< 17 | 18 | $(EXT) : sqlite3_mod_regexp.c 19 | gcc $(LDFLAG) -shared -o $@ $< -lsqlite3 -lpcre 20 | 21 | clean : 22 | @-$(RM) $(EXE) $(EXT) 23 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/_example/mod_regexp/extension.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "database/sql" 5 | "fmt" 6 | "github.com/mattn/go-sqlite3" 7 | "log" 8 | ) 9 | 10 | func main() { 11 | sql.Register("sqlite3_with_extensions", 12 | &sqlite3.SQLiteDriver{ 13 | Extensions: []string{ 14 | "sqlite3_mod_regexp", 15 | }, 16 | }) 17 | 18 | db, err := sql.Open("sqlite3_with_extensions", ":memory:") 19 | if err != nil { 20 | log.Fatal(err) 21 | } 22 | defer db.Close() 23 | 24 | // Force db to make a new connection in pool 25 | // by putting the original in a transaction 26 | tx, err := db.Begin() 27 | if err != nil { 28 | log.Fatal(err) 29 | } 30 | defer tx.Commit() 31 | 32 | // New connection works (hopefully!) 33 | rows, err := db.Query("select 'hello world' where 'hello world' regexp '^hello.*d$'") 34 | if err != nil { 35 | log.Fatal(err) 36 | } 37 | defer rows.Close() 38 | for rows.Next() { 39 | var helloworld string 40 | rows.Scan(&helloworld) 41 | fmt.Println(helloworld) 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/_example/mod_regexp/sqlite3_mod_regexp.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | 6 | SQLITE_EXTENSION_INIT1 7 | static void regexp_func(sqlite3_context *context, int argc, sqlite3_value **argv) { 8 | if (argc >= 2) { 9 | const char *target = (const char *)sqlite3_value_text(argv[1]); 10 | const char *pattern = (const char *)sqlite3_value_text(argv[0]); 11 | const char* errstr = NULL; 12 | int erroff = 0; 13 | int vec[500]; 14 | int n, rc; 15 | pcre* re = pcre_compile(pattern, 0, &errstr, &erroff, NULL); 16 | rc = pcre_exec(re, NULL, target, strlen(target), 0, 0, vec, 500); 17 | if (rc <= 0) { 18 | sqlite3_result_error(context, errstr, 0); 19 | return; 20 | } 21 | sqlite3_result_int(context, 1); 22 | } 23 | } 24 | 25 | #ifdef _WIN32 26 | __declspec(dllexport) 27 | #endif 28 | int sqlite3_extension_init(sqlite3 *db, char **errmsg, const sqlite3_api_routines *api) { 29 | SQLITE_EXTENSION_INIT2(api); 30 | return sqlite3_create_function(db, "regexp", 2, SQLITE_UTF8, (void*)db, regexp_func, NULL, NULL); 31 | } 32 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/_example/mod_vtable/Makefile: -------------------------------------------------------------------------------- 1 | ifeq ($(OS),Windows_NT) 2 | EXE=extension.exe 3 | EXT=sqlite3_mod_vtable.dll 4 | RM=cmd /c del 5 | LIBCURL=-lcurldll 6 | LDFLAG= 7 | else 8 | EXE=extension 9 | EXT=sqlite3_mod_vtable.so 10 | RM=rm 11 | LDFLAG=-fPIC 12 | LIBCURL=-lcurl 13 | endif 14 | 15 | all : $(EXE) $(EXT) 16 | 17 | $(EXE) : extension.go 18 | go build $< 19 | 20 | $(EXT) : sqlite3_mod_vtable.cc 21 | g++ $(LDFLAG) -shared -o $@ $< -lsqlite3 $(LIBCURL) 22 | 23 | clean : 24 | @-$(RM) $(EXE) $(EXT) 25 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/_example/mod_vtable/extension.go: -------------------------------------------------------------------------------- 1 | package main 2 | 3 | import ( 4 | "database/sql" 5 | "fmt" 6 | "github.com/mattn/go-sqlite3" 7 | "log" 8 | ) 9 | 10 | func main() { 11 | sql.Register("sqlite3_with_extensions", 12 | &sqlite3.SQLiteDriver{ 13 | Extensions: []string{ 14 | "sqlite3_mod_vtable", 15 | }, 16 | }) 17 | 18 | db, err := sql.Open("sqlite3_with_extensions", ":memory:") 19 | if err != nil { 20 | log.Fatal(err) 21 | } 22 | defer db.Close() 23 | 24 | db.Exec("create virtual table repo using github(id, full_name, description, html_url)") 25 | 26 | rows, err := db.Query("select id, full_name, description, html_url from repo") 27 | if err != nil { 28 | log.Fatal(err) 29 | } 30 | defer rows.Close() 31 | for rows.Next() { 32 | var id, full_name, description, html_url string 33 | rows.Scan(&id, &full_name, &description, &html_url) 34 | fmt.Printf("%s: %s\n\t%s\n\t%s\n\n", id, full_name, description, html_url) 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/sqlite3_fts5.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2014 Yasuhiro Matsumoto . 2 | // 3 | // Use of this source code is governed by an MIT-style 4 | // license that can be found in the LICENSE file. 5 | // +build fts5 6 | 7 | package sqlite3 8 | 9 | /* 10 | #cgo CFLAGS: -DSQLITE_ENABLE_FTS5 11 | #cgo LDFLAGS: -lm 12 | */ 13 | import "C" 14 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/sqlite3_icu.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2014 Yasuhiro Matsumoto . 2 | // 3 | // Use of this source code is governed by an MIT-style 4 | // license that can be found in the LICENSE file. 5 | // +build icu 6 | 7 | package sqlite3 8 | 9 | /* 10 | #cgo LDFLAGS: -licuuc -licui18n 11 | #cgo CFLAGS: -DSQLITE_ENABLE_ICU 12 | */ 13 | import "C" 14 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/sqlite3_json1.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2014 Yasuhiro Matsumoto . 2 | // 3 | // Use of this source code is governed by an MIT-style 4 | // license that can be found in the LICENSE file. 5 | // +build json1 6 | 7 | package sqlite3 8 | 9 | /* 10 | #cgo CFLAGS: -DSQLITE_ENABLE_JSON1 11 | */ 12 | import "C" 13 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/sqlite3_libsqlite3.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2014 Yasuhiro Matsumoto . 2 | // 3 | // Use of this source code is governed by an MIT-style 4 | // license that can be found in the LICENSE file. 5 | // +build libsqlite3 6 | 7 | package sqlite3 8 | 9 | /* 10 | #cgo CFLAGS: -DUSE_LIBSQLITE3 11 | #cgo linux LDFLAGS: -lsqlite3 12 | #cgo darwin LDFLAGS: -L/usr/local/opt/sqlite/lib -lsqlite3 13 | */ 14 | import "C" 15 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/sqlite3_omit_load_extension.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2014 Yasuhiro Matsumoto . 2 | // 3 | // Use of this source code is governed by an MIT-style 4 | // license that can be found in the LICENSE file. 5 | // +build sqlite_omit_load_extension 6 | 7 | package sqlite3 8 | 9 | /* 10 | #cgo CFLAGS: -DSQLITE_OMIT_LOAD_EXTENSION 11 | */ 12 | import "C" 13 | import ( 14 | "errors" 15 | ) 16 | 17 | func (c *SQLiteConn) loadExtensions(extensions []string) error { 18 | return errors.New("Extensions have been disabled for static builds") 19 | } 20 | 21 | func (c *SQLiteConn) LoadExtension(lib string, entry string) error { 22 | return errors.New("Extensions have been disabled for static builds") 23 | } 24 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/sqlite3_other.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2014 Yasuhiro Matsumoto . 2 | // 3 | // Use of this source code is governed by an MIT-style 4 | // license that can be found in the LICENSE file. 5 | // +build !windows 6 | 7 | package sqlite3 8 | 9 | /* 10 | #cgo CFLAGS: -I. 11 | #cgo linux LDFLAGS: -ldl 12 | */ 13 | import "C" 14 | -------------------------------------------------------------------------------- /vendor/github.com/mattn/go-sqlite3/sqlite3_windows.go: -------------------------------------------------------------------------------- 1 | // Copyright (C) 2014 Yasuhiro Matsumoto . 2 | // 3 | // Use of this source code is governed by an MIT-style 4 | // license that can be found in the LICENSE file. 5 | // +build windows 6 | 7 | package sqlite3 8 | 9 | /* 10 | #cgo CFLAGS: -I. -fno-stack-check -fno-stack-protector -mno-stack-arg-probe 11 | #cgo windows,386 CFLAGS: -D_USE_32BIT_TIME_T 12 | #cgo LDFLAGS: -lmingwex -lmingw32 13 | */ 14 | import "C" 15 | -------------------------------------------------------------------------------- /vendor/github.com/phayes/hookserve/LICENSE.md: -------------------------------------------------------------------------------- 1 | Open Source License (BSD 3-Clause) 2 | ---------------------------------- 3 | 4 | Copyright (c) 2014, Patrick Hayes / HighWire Press 5 | All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 8 | 9 | 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 10 | 11 | 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 12 | 13 | 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. 14 | 15 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 16 | -------------------------------------------------------------------------------- /vendor/github.com/phayes/hookserve/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | HookServe is a small golang utility for receiving github webhooks. It's easy to use, flexible, and provides strong security though GitHub's HMAC webhook verification scheme. 3 | server := hookserve.NewServer() 4 | server.Port = 8888 5 | server.Secret = "supersecretcode" 6 | server.GoListenAndServe() 7 | 8 | for { 9 | select { 10 | case event := <-server.Events: 11 | fmt.Println(event.Owner + " " + event.Repo + " " + event.Branch + " " + event.Commit) 12 | default: 13 | time.Sleep(100) 14 | } 15 | } 16 | 17 | 18 | Command Line Utility 19 | 20 | It also comes with a command-line utility that lets you pass webhook push events to other commands. 21 | $ hookserve --port=8888 logger -t PushEvent #log github webhook push event to the system log (/var/log/message) via the logger command 22 | 23 | 24 | Settings up GitHub Webhooks 25 | 26 | Setting up webhooks on github is easy. Navigate to `github.com///settings/hooks` and create a new webhook. 27 | */ 28 | package hookserve 29 | -------------------------------------------------------------------------------- /vendor/github.com/phayes/hookserve/hookserve/doc.go: -------------------------------------------------------------------------------- 1 | /* 2 | HookServe is a small golang utility for receiving github webhooks. It's easy to use, flexible, and provides strong security though GitHub's HMAC webhook verification scheme. 3 | server := hookserve.NewServer() 4 | server.Port = 8888 5 | server.Secret = "supersecretcode" 6 | server.GoListenAndServe() 7 | 8 | for { 9 | select { 10 | case event := <-server.Events: 11 | fmt.Println(event.Owner + " " + event.Repo + " " + event.Branch + " " + event.Commit) 12 | default: 13 | time.Sleep(100) 14 | } 15 | } 16 | 17 | 18 | Command Line Utility 19 | 20 | It also comes with a command-line utility that lets you pass webhook push events to other commands 21 | $ hookserve --port=8888 logger -t PushEvent #log github webhook push event to the system log (/var/log/message) via the logger command 22 | 23 | 24 | Settings up GitHub Webhooks 25 | 26 | Setting up webhooks on github is easy. Navigate to `github.com///settings/hooks` and create a new webhook. 27 | */ 28 | package hookserve 29 | -------------------------------------------------------------------------------- /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/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/codereview.cfg: -------------------------------------------------------------------------------- 1 | issuerepo: golang/go 2 | -------------------------------------------------------------------------------- /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 | func ExampleWithTimeout() { 15 | // Pass a context with a timeout to tell a blocking function that it 16 | // should abandon its work after the timeout elapses. 17 | ctx, _ := context.WithTimeout(context.Background(), 100*time.Millisecond) 18 | select { 19 | case <-time.After(200 * time.Millisecond): 20 | fmt.Println("overslept") 21 | case <-ctx.Done(): 22 | fmt.Println(ctx.Err()) // prints "context deadline exceeded" 23 | } 24 | // Output: 25 | // context deadline exceeded 26 | } 27 | -------------------------------------------------------------------------------- /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/phayes/deadci/ee00075c53a25a362c0d541369de03519ca5b0b1/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/phayes/deadci/ee00075c53a25a362c0d541369de03519ca5b0b1/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 | |