We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
spectrum
EndpointString()
1 parent ec83a8f commit 04e2ba4Copy full SHA for 04e2ba4
endpoint.go
@@ -0,0 +1,9 @@
1
+package spectrum
2
+
3
+import "strings"
4
5
+func EndpointString(method, path string) string {
6
+ method = strings.ToUpper(strings.TrimSpace(method))
7
+ path = strings.TrimSpace(path)
8
+ return strings.Join([]string{method, path}, " ")
9
+}
0 commit comments