Fix readme tabs

This commit is contained in:
Asim 2016-06-30 20:23:53 +01:00 committed by Vasiliy Tolstov
parent a067b0b2e8
commit a8351bb18a
1 changed files with 22 additions and 22 deletions

View File

@ -14,18 +14,18 @@ import (
)
func main() {
srv := httpServer.NewServer(
server.Name("helloworld"),
)
srv := httpServer.NewServer(
server.Name("helloworld"),
)
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(`hello world`))
})
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(`hello world`))
})
hd := srv.NewHandler(mux)
hd := srv.NewHandler(mux)
srv.Handle(hd)
srv.Handle(hd)
srv.Start()
srv.Register()
}
@ -43,23 +43,23 @@ import (
)
func main() {
srv := httpServer.NewServer(
server.Name("helloworld"),
)
srv := httpServer.NewServer(
server.Name("helloworld"),
)
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(`hello world`))
})
mux := http.NewServeMux()
mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) {
w.Write([]byte(`hello world`))
})
hd := srv.NewHandler(mux)
hd := srv.NewHandler(mux)
srv.Handle(hd)
srv.Handle(hd)
service := micro.NewService(
micro.Server(srv),
)
service := micro.NewService(
micro.Server(srv),
)
service.Init()
service.Run()
service.Run()
}
```