Skip to content

Commit 35af5a1

Browse files
jpluscplusmmyitcv
authored andcommitted
encoding/protobuf: include annotations heading
This adds a section heading to the encoding/protobuf package documentation for the set of annotations which CUE understands in Protobuf options. Adding this heading will allow us to link to this section on the rendered page at https://pkg.go.dev/cuelang.org/go/encoding/protobuf from https://cuelang.org/docs/concept/how-cue-works-with-protocol-buffers/, which is desirable so that that page doesn't need to explain every annotation that CUE permits. Signed-off-by: Jonathan Matthews <[email protected]> Change-Id: I1e7f9c4ebaddb12961e5feae19e18742066353e4 Reviewed-on: https://review.gerrithub.io/c/cue-lang/cue/+/1193847 TryBot-Result: CUEcueckoo <[email protected]> Reviewed-by: Paul Jolly <[email protected]>
1 parent de5d0cf commit 35af5a1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

encoding/protobuf/protobuf.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
// Timestamp time.Time See struct.proto.
6565
// Duration time.Duration See struct.proto.
6666
//
67+
// # Annotations
68+
//
6769
// Protobuf definitions can be annotated with CUE constraints that are included
6870
// in the generated CUE:
6971
//

0 commit comments

Comments
 (0)