Standard library / net/http
http.StatusPartialContent
HTTP status 206. A requested range of a representation is returned. Expected stdout: '206\n'.
Formal Syntax & Structure
go syntaxgo
const StatusPartialContent = 206Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.StatusPartialContent) }
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) }}