Initial commit
This commit is contained in:
		
							
								
								
									
										11
									
								
								handlers/index.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								handlers/index.go
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,11 @@
 | 
			
		||||
package handlers
 | 
			
		||||
 | 
			
		||||
import (
 | 
			
		||||
    "fmt"
 | 
			
		||||
    "html"
 | 
			
		||||
    "net/http"
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
func Index(w http.ResponseWriter, r *http.Request) {
 | 
			
		||||
	fmt.Fprintf(w, "Hello, %q", html.EscapeString(r.URL.Path))
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user