Routing docs generated with chi/docgen. Run xx to regenerate the docs.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
import { Provider } from './provider'; | |
import { EtherscanProvider } from './etherscan-provider'; | |
import { FallbackProvider } from './fallback-provider'; | |
import { IpcProvider } from './ipc-provider'; | |
import { InfuraProvider } from './infura-provider'; | |
import { JsonRpcProvider, JsonRpcSigner } from './json-rpc-provider'; | |
import { Web3Provider } from './web3-provider'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package aclmux | |
import ( | |
"net/http" | |
"regexp" | |
"strings" | |
"github.com/go-chi/chi" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## HTTP Router benchmarks -- August 31st, 2017 running Go 1.9.0 | |
## | |
## This benchmark suite is based on https://github.com/julienschmidt/go-http-routing-benchmark | |
## using the most up-to-date version of each pkg as of today. Each router has their own | |
## pros and cons, so consider the designs of each router to suit your application. | |
## | |
[peter@pak ~/Dev/go/src/github.com/pkieltyka/go-http-routing-benchmark]$ go test -v -bench="Chi" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// bare-bones chi hello world | |
package main | |
import ( | |
"net/http" | |
"github.com/pressly/chi" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## HTTP Router benchmarks -- Jan 7th, 2017 running Go 1.8beta2 | |
## | |
## This benchmark suite is based on https://github.com/julienschmidt/go-http-routing-benchmark | |
## using the most up-to-date version of each pkg as of today. Each router has their own | |
## pros and cons, so consider the designs of each router to suit your application. | |
## | |
[peter@pak ~/Dev/go/src/github.com/pkieltyka/go-http-routing-benchmark]$ go test -v -bench="Chi" . | |
#GithubAPI Routes: 203 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package acl | |
import ( | |
"net/http" | |
"reflect" | |
"regexp" | |
"runtime" | |
"strings" | |
"github.com/pressly/chi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package middleware | |
import ( | |
"io/ioutil" | |
"net/http" | |
"net/http/httptest" | |
"sync" | |
"testing" | |
"github.com/pressly/chi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"log" | |
"net/http" | |
"os" | |
"time" | |
"github.com/pressly/chi" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ go test -v -bench="Chi|HttpRouter|Goji|Martini|Gorilla|Gocraft|Beego|Gin" . | |
#GithubAPI Routes: 203 | |
Beego: 165304 Bytes | |
Chi: 74056 Bytes | |
Gin: 52464 Bytes | |
GocraftWeb: 95720 Bytes | |
Goji: 86088 Bytes | |
GorillaMux: 1494864 Bytes | |
HttpRouter: 37464 Bytes | |
Martini: 556160 Bytes |