router/pkg/routerconfig/routerconfig.go (10 lines of code) (raw):

package routerconfig import "fmt" func VersionPath(version int) string { switch version { case 1: return "" default: return fmt.Sprintf("v%d/", version) } }