protoc-gen-ts/internal/httprule/fieldpath.go

12 lines
258 B
Go
Raw Permalink Normal View History

2025-04-12 12:38:00 +08:00
package httprule
import "strings"
// FieldPath describes the path for a field from a message.
// Individual segments are in snake case (same as in protobuf file).
type FieldPath []string
func (f FieldPath) String() string {
return strings.Join(f, ".")
}