This commit is contained in:
2025-04-12 12:38:00 +08:00
parent 5341dfcd1a
commit 52bfd05b80
47 changed files with 4730 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
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, ".")
}