cuelang.org/go@v0.10.1/encoding/protobuf/examples/basic/basic.proto (about)

     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]"]'];
    16  
    17      map<string, string> example_map = 3;
    18  }