Standard library / go/types
go/types.Array
Represents a Go array type in the semantic model, not a runtime value. Expected stdout: '[3]int\n'.
Formal Syntax & Structure
go syntaxgo
type Array struct {}Working Example
Example Snippetgo
package main
import ( "fmt" "go/types")
func main() { t := types.NewArray(types.Typ[types.Int], 3); fmt.Println(t) }