gen/api15gen/api_analyzer.go
func isPathParam(p string, pathPatterns []*gen.PathPattern) bool {
	for _, pattern := range pathPatterns {
		for _, v := range pattern.Variables {
			if p == v {
				return true
			}
		}
	}
	return false
}
func isPathParam(p string, pathPatterns []*gen.PathPattern) bool {
	for _, pattern := range pathPatterns {
		for _, v := range pattern.Variables {
			if p == v {
				return true
			}
		}
	}
	return false
}
// Look in given path patterns to chek whether given parameter name corresponds to a variable
// name.