This file contains hidden or 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 ( | |
"fmt" | |
"net/http" | |
) | |
func HelloHandler(res http.ResponseWriter, req *http.Request) { | |
res.WriteHeader(200) | |
name := req.URL.Query().Get("name") |
This file contains hidden or 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 ( | |
"log" | |
"net/http" | |
"sync" | |
) | |
type Muxer struct { | |
routes map[string]http.Handler |
This file contains hidden or 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
hash: 7355eaa891e45d53ff0d5b0c85a312e2a9fb0e2a2c73dbba89d6be17365a546d | |
updated: 2017-03-09T17:36:51.195690768-05:00 | |
imports: | |
- name: github.com/daaku/go.zipexe | |
version: a5fe2436ffcb3236e175e5149162b41cd28bd27d | |
- name: github.com/daviddengcn/go-colortext | |
version: 805cee6e0d43c72ba1d4e3275965ff41e0da068a | |
- name: github.com/dustin/go-humanize | |
version: 259d2a102b871d17f30e3cd9881a642961a1e486 | |
- name: github.com/fatih/color |
This file contains hidden or 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
GIT | |
remote: git://github.com/blowmage/minitest-rails.git | |
revision: a2a3fd81f9be157d652a3ba14c241d3c3c054508 | |
specs: | |
minitest-rails (2.2.0.20150529121029) | |
minitest (~> 5.7) | |
railties (~> 4.1) | |
GEM | |
remote: https://rubygems.org/ |
This file contains hidden or 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
res, err := http.Get("http://127.0.0.1:9000/boom") | |
if err != nil { | |
log.Fatal(err) | |
} | |
fmt.Printf("res.StatusCode: %d\n", res.StatusCode) | |
if res.StatusCode != 200 { | |
b, _ := ioutil.ReadAll(res.Body) | |
log.Fatal(string(b)) | |
} |
This file contains hidden or 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
if err != nil { | |
log.Fatal(err) | |
} | |
fmt.Printf("res.StatusCode: %d\n", res.StatusCode) |
This file contains hidden or 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 ( | |
"fmt" | |
"log" | |
"net/http" | |
) | |
func main() { | |
http.HandleFunc("/boom", func(res http.ResponseWriter, req *http.Request) { |
This file contains hidden or 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
<!DOCTYPE html> | |
<!--[if IE 9]> <html class="no-js ie9 oldie" lang="en"> <![endif]--> | |
<!--[if gt IE 9]><!--> <html class="no-js" lang="en"> <!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=Edge"> | |
<script type="text/javascript">window.NREUM||(NREUM={});NREUM.info={"beacon":"bam.nr-data.net","errorBeacon":"bam.nr-data.net","licenseKey":"95991a40f9","applicationID":"7606833","transactionName":"d11ZREVfVQ5dQ04SRFZfXkNEWVYMSx4ID1VRSg==","queueTime":0,"applicationTime":186,"agent":"js-agent.newrelic.com/nr-768.min.js"}</script> | |
<script type="text/javascript">window.NREUM||(NREUM={}),__nr_require=function(e,n,t){function r(t){if(!n[t]){var o=n[t]={exports:{}};e[t][0].call(o.exports,function(n){var o=e[t][1][n];return r(o||n)},o,o.exports)}return n[t].exports}if("function"==typeof __nr_require)return __nr_require;for(var o=0;o<t.length;o++)r(t[o]);return r}({QJf3ax:[function(e,n){function t(e){function n(n,t,a){e&&e(n,t,a),a||(a={});for(var u=c(n),f=u.length,s=i(a,o, |
This file contains hidden or 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
<div class="subheader__group"> | |
<div class="form-group has-error"><label class="sr-only control-label required" for="event_name">Name</label><input class="form-control subheader__title form-control--blank" placeholder="Type Event Name" type="text" value="" name="event[name]" id="event_name"><span class="help-block">can't be blank</span></div> | |
<p class="subheader__subtitle"> | |
<span class="hidden-xs"><i class="fa fa-calendar fa--left"></i> <strong>Opens on</strong></span> | |
</p><div class="form-group has-error"><label class="sr-only control-label required" for="event_opens_at">Opens at</label><input ng-model="event.opens_at" datetime-picker="" placeholder="Pick Date" class="form-control form-control--blank form-control--inline ng-valid ng-touched ng-dirty ng-valid-date" type="date" name="event[opens_at]" id="event_opens_at"></input><span class="help-block">can't be blank</span></div> | |
<p></p> | |
</div> |
This file contains hidden or 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
Mark: So Steve, I heard you just recently started coaching the Go baseball team. | |
Steve: I have. | |
Mark: Well you know I've never met the guys. So you'll have to tell me their names, and then I'll know who's playing on the team. | |
Steve: Oh, I'll tell you their names, but you know it seems to me they give these ball players now-a-days very peculiar names. | |
Mark: You mean funny names? |