dev
This commit is contained in:
11
internal/httprule/fieldpath.go
Normal file
11
internal/httprule/fieldpath.go
Normal 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, ".")
|
||||
}
|
||||
Reference in New Issue
Block a user