mirror of
				https://github.com/go-delve/delve.git
				synced 2025-10-31 02:36:18 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			298 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			298 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package main
 | |
| 
 | |
| import (
 | |
| 	"net/http"
 | |
| 	"runtime"
 | |
| )
 | |
| 
 | |
| func main() {
 | |
| 	http.HandleFunc("/", func(w http.ResponseWriter, req *http.Request) {
 | |
| 		runtime.Breakpoint()
 | |
| 		msg := "hello, world!"
 | |
| 		header := w.Header().Get("Content-Type")
 | |
| 		w.Write([]byte(msg + header))
 | |
| 	})
 | |
| 	http.ListenAndServe(":8080", nil)
 | |
| }
 | 
