Confusing naming of struct fields or methods RVV-B0001
Bug risk
Minor
6 months ago3 years old
Method 'AddAliasWthDB' differs only by capitalization to function 'addAliasWthDB' in the same source file
450}
451
452// AddAliasWthDB add a aliasName for the drivename
453func AddAliasWthDB(aliasName, driverName string, db *sql.DB, params ...DBOption) error {454	_, err := addAliasWthDB(aliasName, driverName, db, params...)
455	return err
456}
Method 'ParseData' differs only by capitalization to method 'parseData' in the same source file
214// ParseData parse ini the data
215// When include other.conf,other.conf is either absolute directory
216// or under beego in default temporary directory(/tmp/beego[-username]).
217func (ini *IniConfig) ParseData(data []byte) (Configer, error) {218	dir := "beego"
219	currentUser, err := user.Current()
220	if err == nil {
Method 'serveHttp' differs only by capitalization to method 'ServeHTTP' in the same source file
1002	p.chainRoot.filter(ctx, p.getUrlPath(ctx), preFilterParams)
1003}
1004
1005func (p *ControllerRegister) serveHttp(ctx *beecontext.Context) {1006	var err error
1007	startTime := time.Now()
1008	r := ctx.Request
Method 'match' differs only by capitalization to method 'Match' in the same source file
291	return t.match(pattern[1:], pattern, w, ctx)
292}
293
294func (t *Tree) match(treePattern string, pattern string, wildcardValues []string, ctx *context.Context) (runObject interface{}) {295	if len(pattern) > 0 {
296		i, l := 0, len(pattern)
297		for i < l && pattern[i] == '/' {
Method 'addtree' differs only by capitalization to method 'AddTree' in the same source file
 51	t.addtree(splitPath(prefix), tree, nil, "")
 52}
 53
 54func (t *Tree) addtree(segments []string, tree *Tree, wildcards []string, reg string) { 55	if len(segments) == 0 {
 56		panic("prefix should has path")
 57	}