Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions content/reference/go/go-generated.md
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ Thus, the proto field `birth_year` becomes `BirthYear` in Go, and
For the field definition:

```proto
// proto2
int32 birth_year = 1;
```

Expand All @@ -283,6 +284,7 @@ is replaced with the corresponding Go type according to the
For this field definition:

```proto
// proto3
int32 birth_year = 1;
```

Expand All @@ -292,7 +294,7 @@ an accessor method `GetBirthYear()` which returns the `int32` value in
[zero value](https://golang.org/ref/spec#The_zero_value) of that type
if the field is unset (`0` for numbers, the empty string for strings).

The `FirstActiveYear` struct field will be of type `*int32`, because it is
The `BirthYear` struct field will be of type `*int32`, because it is
marked `optional`.

For other scalar field types (including `bool`, `bytes`, and `string`), `int32`
Expand Down Expand Up @@ -325,7 +327,7 @@ message Concert {
}

// editions
message Concer {
message Concert {
Band headliner = 1;
}
```
Expand Down