blob: d66aab913521255a21ae6e958da8ed99e72da664 [file] [log] [blame]
Marcel van Lohuizen3074aeb2019-06-25 13:04:56 +02001syntax = "proto3";
2
3// Package basic is just that: basic.
4package cuelang.examples.basic;
5
6import "cue/cue.proto";
7
8option go_package = "cuelang.org/encoding/protobuf/examples/basic";
9
10// This is my type.
11message 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]"]'];
16}