Standard library / reflect

reflect.SelectDir

Represents the operation direction of a select case, distinct from a channel type direction. Expected stdout: 'true\n'.

Formal Syntax & Structure

go syntaxgo
type SelectDir int

Working Example

Example Snippetgo
package main
import (  "fmt"  "reflect")
func main() { var d reflect.SelectDir = reflect.SelectDefault; fmt.Println(d == reflect.SelectDefault) }
Go Reference