Standard library / net/http
http.StatusGone
HTTP status 410. The resource is no longer available and the condition is likely permanent. Expected stdout: '410\n'.
Formal Syntax & Structure
go syntaxgo
const StatusGone = 410Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusGone) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}