Source File
basic.go
Belonging Package
go/types
// Code generated by "go test -run=Generate -write=all"; DO NOT EDIT.// Source: ../../cmd/compile/internal/types2/basic.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// BasicKind describes the kind of basic type.type BasicKind intconst (Invalid BasicKind = iota // type is invalid// predeclared typesBoolIntInt8Int16Int32Int64UintUint8Uint16Uint32Uint64UintptrFloat32Float64Complex64Complex128StringUnsafePointer// types for untyped valuesUntypedBoolUntypedIntUntypedRuneUntypedFloatUntypedComplexUntypedStringUntypedNil// aliasesByte = Uint8Rune = Int32)// BasicInfo is a set of flags describing properties of a basic type.type BasicInfo int// Properties of basic types.const (IsBoolean BasicInfo = 1 << iotaIsIntegerIsUnsignedIsFloatIsComplexIsStringIsUntypedIsOrdered = IsInteger | IsFloat | IsStringIsNumeric = IsInteger | IsFloat | IsComplexIsConstType = IsBoolean | IsNumeric | IsString)// A Basic represents a basic type.type Basic struct {kind BasicKindinfo BasicInfoname string}// Kind returns the kind of basic type b.func ( *Basic) () BasicKind { return .kind }// Info returns information about properties of basic type b.func ( *Basic) () BasicInfo { return .info }// Name returns the name of basic type b.func ( *Basic) () string { return .name }func ( *Basic) () Type { return }func ( *Basic) () string { return TypeString(, nil) }
![]() |
The pages are generated with Golds v0.7.9-preview. (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. |