add port argument
This commit is contained in:
		
							parent
							
								
									5bbc9b922c
								
							
						
					
					
						commit
						a1d3313299
					
				| @ -33,7 +33,7 @@ func main() { | |||||||
| 	if len(os.Args) > 1 { | 	if len(os.Args) > 1 { | ||||||
| 		listenPort = os.Args[1] | 		listenPort = os.Args[1] | ||||||
| 	} | 	} | ||||||
| 	print("Listening on port:", listenPort, "\n") | 	print("Listening on port: ", listenPort, "\n") | ||||||
| 	listenPort = strings.Join([]string{":", listenPort}, "") | 	listenPort = strings.Join([]string{":", listenPort}, "") | ||||||
| 	http.ListenAndServe(listenPort, nil) | 	http.ListenAndServe(listenPort, nil) | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user