Golang net/http.NotFoundHandler() function example

package net/http

Golang net/http.NotFoundHandler() function usage example

 package main

 import (
 "net/http"
 )

 func main() {
 http.ListenAndServe(":8080", http.NotFoundHandler())
 }

References :

http://golang.org/pkg/net/http/#NotFoundHandler

https://www.socketloop.com/references/golang-net-http-notfound-function-example

  See also : Golang net/http.NotFound() function example

Advertisement