echoswagger/converter.go
2018-08-31 20:47:37 +08:00

9 lines
138 B
Go

package echoswagger
func proccessPath(path string) string {
if len(path) == 0 || path[0] != '/' {
path = "/" + path
}
return path
}