Marcel van Lohuizen | 3074aeb | 2019-06-25 13:04:56 +0200 | [diff] [blame] | 1 | syntax = "proto3"; |
| 2 | |
| 3 | // Package basic is just that: basic. |
| 4 | package cuelang.examples.basic; |
| 5 | |
| 6 | import "cue/cue.proto"; |
| 7 | |
| 8 | option go_package = "cuelang.org/encoding/protobuf/examples/basic"; |
| 9 | |
| 10 | // This is my type. |
| 11 | message MyType { |
| 12 | string string_value = 1; // just any 'ole string |
| 13 | |
| 14 | // A method must start with a capital letter. |
| 15 | repeated string method = 2 [(cue.val) = '[...=~"^[A-Z]"]']; |
Jason Wang | 5f47167 | 2019-08-23 09:59:46 -0700 | [diff] [blame] | 16 | |
| 17 | map<string, string> exmaple_map = 3; |
Marcel van Lohuizen | 3074aeb | 2019-06-25 13:04:56 +0200 | [diff] [blame] | 18 | } |