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 | |
//$ go test --bench . -benchmem | |
//BenchmarkBase64DecodeString-4 1000000 1781 ns/op 992 B/op 2 allocs/op | |
//--- BENCH: BenchmarkBase64DecodeString-4 | |
// b64_test.go:19: decode len 516 | |
// b64_test.go:19: decode len 516 | |
// b64_test.go:19: decode len 516 | |
// b64_test.go:19: decode len 516 | |
//BenchmarkBase64DecodeString2-4 5000 250250 ns/op 147456 B/op 2 allocs/op |
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
{ | |
"_id" : ObjectId("5a67a9d2f5985b94c44bcf6e"), | |
"method" : "GET", | |
"path" : "headers", | |
"rawpath" : "headers", | |
"contentlength" : NumberLong(0), | |
"useragent" : "PostmanRuntime/7.1.1", | |
"day" : 23, | |
"month" : 1, | |
"year" : 2018, |
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
$ docker run -d --rm --name tyk_gateway -p 8080:8080 -v $(pwd)/tyk.bosch.json:/opt/tyk-gateway/tyk.conf tykio/tyk-gateway | |
681f095baec84bf2339a468fbe2e4879df636565e1678751b70dfb38eea749fb | |
$ docker logs --follow tyk_gatewaysed: cannot rename /opt/tyk-gateway/sedCinfWv: Device or resource busy | |
sed: cannot rename /opt/tyk-gateway/sed1oPpZy: Device or resource busy | |
time="Jan 24 09:10:19" level=info msg="Connection dropped, reconnecting..." | |
time="Jan 24 09:10:19" level=info msg="PIDFile location set to: /var/run/tyk-gateway.pid" | |
time="Jan 24 09:10:19" level=info msg="Initialising Tyk REST API Endpoints" | |
time="Jan 24 09:10:19" level=info msg="--> Standard listener (http)" port=":8080" | |
time="Jan 24 09:10:19" level=info msg="Setting up Server" |
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
<?xml version="1.0"?> | |
<catalog> | |
<book id="0134190440"> | |
<author>Donovan, A & Kerninghan B</author> | |
<title>The Go Programming Language</title> | |
<genre>Computing</genre> | |
<price>20.54</price> | |
<publish_date>2015-10-26</publish_date> | |
<description>The Go Programming Language is the authoritative resource | |
for any programmer who wants to learn Go. It shows how to write clear |
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
{{ define "indexPage" }} | |
{{ template "header" .}} | |
<body> | |
{{ template "navigation" . }} |
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
{ | |
"slideshow": { | |
"author": "{{ index .slideshow "-author" }}", | |
"date": "{{ index .slideshow "-date" }}", | |
"title": "{{ index .slideshow "-title" }}", | |
"slide": [ | |
{{ range $k, $slide := .slideshow.slide }}{{ if $k }},{{ end }}{ | |
"type": "{{ index $slide "-type" }}", | |
"item": [{{ range $ki, $item := $slide.item }}{{ if $ki }},{{ end }} | |
"{{ $item }}" |
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
{ | |
"name": "Path Match with Regex", | |
"active": true, | |
"api_id": "1", | |
"org_id": "1", | |
"slug": "path-match-with-regex", | |
"definition": { | |
"location": "", | |
"key": "" | |
}, |
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
{ | |
"name": "Keyless HttpBin", | |
"api_id": "1", | |
"org_id": "default", | |
"use_keyless": true, | |
"auth": { | |
"auth_header_name": "" | |
}, | |
"version_data": { | |
"not_versioned": true, |
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
{ | |
"name": "AuthToken HttpBin", | |
"api_id": "1", | |
"org_id": "default", | |
"auth": { | |
"auth_header_name": "Authorization" | |
}, | |
"version_data": { | |
"not_versioned": true, | |
"versions": { |
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
{ | |
"allowance": 1000, | |
"rate": 1000, | |
"per": 60, | |
"expires": -1, | |
"quota_max": -1, | |
"quota_renews": 1406121006, | |
"quota_remaining": 0, | |
"quota_renewal_rate": 60, | |
"access_rights": { |
OlderNewer