Source File
array.go
Belonging Package
go/types
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.
// Source: ../../cmd/compile/internal/types2/array.go
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package types
// An Array represents an array type.
type Array struct {
len int64
elem Type
}
// NewArray returns a new array type for the given element type and length.
// A negative length indicates an unknown length.
func ( Type, int64) *Array { return &Array{len: , elem: } }
// Len returns the length of array a.
// A negative result indicates an unknown length.
func ( *Array) () int64 { return .len }
// Elem returns element type of array a.
func ( *Array) () Type { return .elem }
func ( *Array) () Type { return }
func ( *Array) () string { return TypeString(, nil) }
The pages are generated with Golds v0.7.3. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |