Standard library / net/http

http.StatusMovedPermanently

HTTP status 301. The resource has moved permanently; clients may rewrite POST to GET. Expected stdout: '301\n'.

Formal Syntax & Structure

go syntaxgo
const StatusMovedPermanently = 301

Working Example

Example Snippetgo
package main
import (  "fmt"  "net/http")
func main() { fmt.Println(http.StatusMovedPermanently) }
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)  }}
Go Reference