Fix readme tabs
This commit is contained in:
		
							
								
								
									
										44
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										44
									
								
								README.md
									
									
									
									
									
								
							| @@ -14,18 +14,18 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| func main() { | func main() { | ||||||
|         srv := httpServer.NewServer( | 	srv := httpServer.NewServer( | ||||||
|                 server.Name("helloworld"), | 		server.Name("helloworld"), | ||||||
|         ) | 	) | ||||||
|  |  | ||||||
|         mux := http.NewServeMux() | 	mux := http.NewServeMux() | ||||||
|         mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | 	mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | ||||||
|                 w.Write([]byte(`hello world`)) | 		w.Write([]byte(`hello world`)) | ||||||
|         }) | 	}) | ||||||
|  |  | ||||||
|         hd := srv.NewHandler(mux) | 	hd := srv.NewHandler(mux) | ||||||
|  |  | ||||||
|         srv.Handle(hd) | 	srv.Handle(hd) | ||||||
| 	srv.Start() | 	srv.Start() | ||||||
| 	srv.Register() | 	srv.Register() | ||||||
| } | } | ||||||
| @@ -43,23 +43,23 @@ import ( | |||||||
| ) | ) | ||||||
|  |  | ||||||
| func main() { | func main() { | ||||||
|         srv := httpServer.NewServer( | 	srv := httpServer.NewServer( | ||||||
|                 server.Name("helloworld"), | 		server.Name("helloworld"), | ||||||
|         ) | 	) | ||||||
|  |  | ||||||
|         mux := http.NewServeMux() | 	mux := http.NewServeMux() | ||||||
|         mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | 	mux.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { | ||||||
|                 w.Write([]byte(`hello world`)) | 		w.Write([]byte(`hello world`)) | ||||||
|         }) | 	}) | ||||||
|  |  | ||||||
|         hd := srv.NewHandler(mux) | 	hd := srv.NewHandler(mux) | ||||||
|  |  | ||||||
|         srv.Handle(hd) | 	srv.Handle(hd) | ||||||
|  |  | ||||||
|         service := micro.NewService( | 	service := micro.NewService( | ||||||
|                 micro.Server(srv), | 		micro.Server(srv), | ||||||
|         ) | 	) | ||||||
| 	service.Init() | 	service.Init() | ||||||
|         service.Run() | 	service.Run() | ||||||
| } | } | ||||||
| ``` | ``` | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user