Move all samples to the root dir
Signed-off-by: Anca Iordache <anca.iordache@docker.com>
This commit is contained in:
		
							parent
							
								
									0c6fcde001
								
							
						
					
					
						commit
						f1e4cca535
					
				
					 262 changed files with 0 additions and 0 deletions
				
			
		
							
								
								
									
										30
									
								
								nginx-golang/backend/main.go
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										30
									
								
								nginx-golang/backend/main.go
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,30 @@ | |||
| package main | ||||
| 
 | ||||
| import ( | ||||
| 	"fmt" | ||||
| 	"log" | ||||
| 	"net/http" | ||||
| ) | ||||
| 
 | ||||
| func handler(w http.ResponseWriter, r *http.Request) { | ||||
| 	fmt.Println(r.URL.RawQuery) | ||||
| 	fmt.Fprintf(w, ` | ||||
|           ##         . | ||||
|     ## ## ##        == | ||||
|  ## ## ## ## ##    === | ||||
| /"""""""""""""""""\___/ === | ||||
| {                       /  ===- | ||||
| \______ O           __/ | ||||
|  \    \         __/ | ||||
|   \____\_______/ | ||||
| 
 | ||||
| 	 | ||||
| Hello from Docker! | ||||
| 
 | ||||
| `) | ||||
| } | ||||
| 
 | ||||
| func main() { | ||||
| 	http.HandleFunc("/", handler) | ||||
| 	log.Fatal(http.ListenAndServe(":80", nil)) | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue