Standard library / net

net.FlagRunning

Interface bitmask flag for running state; test with flags & flag, not equality. Expected stdout: '32\n'.

Formal Syntax & Structure

go syntaxgo
const FlagRunning Flags = 32

Working Example

Example Snippetgo
package main
import (  "fmt"  "net")
func main() { fmt.Println(int(net.FlagRunning)) }
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