Standard library / net/http
http.StatusPermanentRedirect
HTTP status 308. Permanent redirect preserving method and body when replay is possible. Expected stdout: '308\n'.
Formal Syntax & Structure
go syntaxgo
const StatusPermanentRedirect = 308Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusPermanentRedirect) }
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) }}