mirror of
				https://github.com/SourceFellows/gobuch.git
				synced 2025-11-03 23:26:17 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			301 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			301 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package main
 | 
						|
 | 
						|
import (
 | 
						|
	"net/http"
 | 
						|
 | 
						|
	"github.com/prometheus/client_golang/prometheus/promhttp"
 | 
						|
)
 | 
						|
 | 
						|
func main() {
 | 
						|
	http.HandleFunc("/", func(rs http.ResponseWriter, rq *http.Request) {
 | 
						|
		rs.WriteHeader(http.StatusOK)
 | 
						|
	})
 | 
						|
	http.Handle("/metrics", promhttp.Handler())
 | 
						|
	http.ListenAndServe(":8080", nil)
 | 
						|
}
 |