View main.go
package main
import (
"encoding/json"
"fmt"
"log"
"net/http"
"os"
)
View main_test.go
package main
import (
"fmt"
"io/ioutil"
"os"
"testing"
)
func Test_chdir(t *testing.T) {
View flag_slice.go
import "strings"
type StringFlag []string
func (s *StringFlag) String() string {
return strings.Join(*s, ",")
}
func (s *StringFlag) Set(value string) error {
View flag.go
type StringFlag []string
func (s *StringFlag) String() string {
return strings.Join(*s, ",")
}
func (s *StringFlag) Set(value string) error {
*s = append(*s, value)
return nil
}
View include1.go
package include1
import (
"fmt"
"runtime"
)
func hello() string {
return fmt.Sprintf("Hello from %s", runtime.GOOS)
}
View Dockerfile
FROM buildpack-deps
RUN git clone https://github.com/tatsuhiro-t/nghttp2 \
&& cd nghttp2 \
&& autoreconf -i \
&& automake \
&& autoconf \
&& ./configure \
&& make
View docker-restart.md

no

$ docker run --restart=no busybox /bin/sh -c 'date; exit 1'
Wed Sep 17 08:13:15 UTC 2014
$ docker ps -a
CONTAINER ID        IMAGE               COMMAND                CREATED             STATUS                     PORTS               NAMES
View README.md

That's okay. Let's have an original repo at for example github.com/alice/bar. Fork it, on github, to your (say you're user bob at github), ie. to github.com/bob/bar. Then:

$ cd $GOPATH/src/github.com/alice 
$ git clone https://github.com/bob/bar.git 
$ cd bar 
View README.md

n1

Web UI

consul agent -server -bootstrap -data-dir /tmp/consul -ui-dir /var/consul-ui -node=agent-one -client=172.20.20.10 -bind=172.20.20.10

n2