aboutsummaryrefslogtreecommitdiff
path: root/src/go/types/type.go
blob: f6bd75908f1cd99f92f04877ba5f3e6e3ad8ee8b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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

// A Type represents a type of Go.
// All types implement the Type interface.
type Type interface {
	// Underlying returns the underlying type of a type.
	Underlying() Type

	// String returns a string representation of a type.
	String() string
}