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
| % ping 8.8.8.8 | |
| PING 8.8.8.8 (8.8.8.8): 56 data bytes | |
| Request timeout for icmp_seq 0 | |
| Request timeout for icmp_seq 1 | |
| Request timeout for icmp_seq 2 | |
| 64 bytes from 8.8.8.8: icmp_seq=0 ttl=54 time=3980.438 ms | |
| 64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=2979.361 ms | |
| 64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=1978.766 ms | |
| 64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=978.429 ms | |
| 64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=114.190 ms |
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
| % ping 8.8.8.8 | |
| PING 8.8.8.8 (8.8.8.8): 56 data bytes | |
| Request timeout for icmp_seq 0 | |
| Request timeout for icmp_seq 1 | |
| Request timeout for icmp_seq 2 | |
| 64 bytes from 8.8.8.8: icmp_seq=0 ttl=54 time=3980.438 ms | |
| 64 bytes from 8.8.8.8: icmp_seq=1 ttl=54 time=2979.361 ms | |
| 64 bytes from 8.8.8.8: icmp_seq=2 ttl=54 time=1978.766 ms | |
| 64 bytes from 8.8.8.8: icmp_seq=3 ttl=54 time=978.429 ms | |
| 64 bytes from 8.8.8.8: icmp_seq=4 ttl=54 time=114.190 ms |
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 ( | |
| "bytes" | |
| "exp/html" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "os" | |
| "regexp" |
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
| <input type="button" value="Stop" id="stop"> | |
| <div id="log"></div> | |
| <script src="go/doc/jquery.js"></script> | |
| <script> | |
| var script = [ | |
| {"Delay": 0, "Message": "Hello, "}, | |
| {"Delay": 1000000000, "Message": "World!\n"}, | |
| {"Delay": 2000000000, "Message": "That's it!"} | |
| ]; | |
| function playback(root, script) { |
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
| // Before pulling the latest changes from the go repository, first | |
| // run this tool: | |
| // cd go-tour | |
| // go build -o conv conv.go | |
| // ./conv < static/index.html | |
| // It will create tour.article and a prog directory full of .go files. | |
| // Read over tour.article and check that it makes sense. | |
| // You will probably want to: | |
| // hg pull -u | |
| // go get -u code.google.com/p/go.talks/pkg/present |
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 ( | |
| "bufio" | |
| "log" | |
| "fmt" | |
| "os" | |
| "regexp" | |
| ) |
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
| 69173 syscall | |
| 48635 runtime | |
| 17797 net | |
| 15842 net/http | |
| 11672 crypto/tls | |
| 9402 math | |
| 9284 unicode | |
| 8416 reflect | |
| 8322 math/big | |
| 7808 encoding/gob |
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 ( | |
| "flag" | |
| "log" | |
| "net/http" | |
| "strings" | |
| "sync" | |
| "time" |
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
| #!/bin/bash -e | |
| echo ' | |
| PATH=$HOME/go/bin:$PATH | |
| export GOPATH=$HOME | |
| export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
| export EDITOR=vim | |
| ' >> ~/.profile | |
| sudo apt-get update |
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
| #!/bin/bash -e | |
| echo ' | |
| PATH=$HOME/go/bin:$PATH | |
| export GOPATH=$HOME | |
| export CDPATH=.:$HOME/src/golang.org/x:$HOME/go/src:$HOME/src/github.com:$HOME/src/github.com/nf:$HOME/src/github.com/adg | |
| export EDITOR=vim | |
| ' >> ~/.profile | |
| sudo apt-get update |