Merge pull request #1 from chaseadamsio-forks/master
run gofmt over server.go
This commit is contained in:
		
							
								
								
									
										38
									
								
								server.go
									
									
									
									
									
								
							
							
						
						
									
										38
									
								
								server.go
									
									
									
									
									
								
							@@ -2,22 +2,22 @@
 | 
				
			|||||||
 * Copyright (c) Microsoft Corporation. All rights reserved.
 | 
					 * Copyright (c) Microsoft Corporation. All rights reserved.
 | 
				
			||||||
 * Licensed under the MIT License. See LICENSE in the project root for license information.
 | 
					 * Licensed under the MIT License. See LICENSE in the project root for license information.
 | 
				
			||||||
 *---------------------------------------------------------------------------------------*/
 | 
					 *---------------------------------------------------------------------------------------*/
 | 
				
			||||||
 
 | 
					
 | 
				
			||||||
 package main
 | 
					package main
 | 
				
			||||||
  
 | 
					
 | 
				
			||||||
 import (
 | 
					import (
 | 
				
			||||||
     "io"
 | 
						"fmt"
 | 
				
			||||||
     "net/http"
 | 
						"io"
 | 
				
			||||||
     "fmt"
 | 
						"net/http"
 | 
				
			||||||
 )
 | 
					)
 | 
				
			||||||
  
 | 
					
 | 
				
			||||||
 func hello(w http.ResponseWriter, r *http.Request) {
 | 
					func hello(w http.ResponseWriter, r *http.Request) {
 | 
				
			||||||
     io.WriteString(w, "Hello remote world!")
 | 
						io.WriteString(w, "Hello remote world!")
 | 
				
			||||||
 }
 | 
					}
 | 
				
			||||||
  
 | 
					
 | 
				
			||||||
 func main() {
 | 
					func main() {
 | 
				
			||||||
     portNumber := "9000"
 | 
						portNumber := "9000"
 | 
				
			||||||
     http.HandleFunc("/", hello)
 | 
						http.HandleFunc("/", hello)
 | 
				
			||||||
     fmt.Println("Server listening on port ", portNumber)
 | 
						fmt.Println("Server listening on port ", portNumber)
 | 
				
			||||||
     http.ListenAndServe(":" + portNumber, nil)
 | 
						http.ListenAndServe(":"+portNumber, nil)
 | 
				
			||||||
    }
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user