Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

\* Statistical exception #31

Open
eudore opened this issue Feb 15, 2020 · 0 comments
Open

\* Statistical exception #31

eudore opened this issue Feb 15, 2020 · 0 comments
Assignees
Labels

Comments

@eudore
Copy link

eudore commented Feb 15, 2020

gomod go get installed, version gocloc \ @ v0.3.1
Comprehensive code is regarded as a comment after return "/*" in go code

gomod go get安装,版本gocloc@v0.3.1
在go代码中return "/*" 后全面代码算为注释

// getRouteByName 函数使用函数名称生成路由路径。
func getRouteByName(name string) string {
	names := splitName(name)
	if checkAllowMethod(names[0]) {
		names = names[1:]
	}
	if len(names) == 0 {
		return "/*"
	}
	name = ""
	for i := 0; i < len(names); i++ {
		if names[i] == "By" {
			name = name + "/:" + names[i+1]
			i++
		} else {
			name = name + "/" + names[i]
		}
	}
	return strings.ToLower(name)
}
@eudore eudore changed the title \ * Statistical exception \* Statistical exception Feb 15, 2020
@hhatto hhatto self-assigned this May 13, 2021
@hhatto hhatto added the bug label Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants