Skip to content

Commit

Permalink
mini spec: Predeclared identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
xushiwei committed Nov 22, 2024
1 parent 0b4eb42 commit cc3fbeb
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions doc/spec-mini.md
Original file line number Diff line number Diff line change
Expand Up @@ -1773,8 +1773,61 @@ The _blank identifier_ is represented by the underscore character `_`. It serves

### Predeclared identifiers

The following identifiers are implicitly declared in the [universe block]():

```go
Types:
any bigint bigrat bool byte comparable
complex64 complex128 error float32 float64
int int8 int16 int32 int64 rune string
uint uint8 uint16 uint32 uint64 uintptr

Constants:
true false iota

Zero value:
nil

Functions:
append cap clear close complex copy delete echo imag len
make max min new panic print printf println real recover // TODO(xsw): more
```

### Exported identifiers

TODO

### Uniqueness of identifiers

TODO

### Constant declarations

TODO

### Iota

TODO

### Type declarations

TODO

#### Alias declarations

TODO

#### Type definitions

TODO

### Variable declarations

TODO

### Short variable declarations

TODO

### Function declarations

Expand Down

0 comments on commit cc3fbeb

Please sign in to comment.