Skip to content

Commit abcbb6e

Browse files
authored
Update docs/content/doc/developers/guidelines-backend.md
1 parent 9b95062 commit abcbb6e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/content/doc/developers/guidelines-backend.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ i.e. `servcies/user`, `models/repository`.
103103

104104
### Import Alias
105105

106-
Since there are many packages and sub-packages, it is possible that you find packages like `modules/user`, `models/user`, and `services/user`. When these packages are imported in one Go file, it's difficult to know which package we are using and if it's a variable name or an import name. So, we always recommend to use import aliases. To differ from package variables which are commonly in camelCase, just use **snake_case** for import aliases.
106+
Since there are some packages which use the same package name, it is possible that you find packages like `modules/user`, `models/user`, and `services/user`. When these packages are imported in one Go file, it's difficult to know which package we are using and if it's a variable name or an import name. So, we always recommend to use import aliases. To differ from package variables which are commonly in camelCase, just use **snake_case** for import aliases.
107107
i.e. `import user_service "code.gitea.io/gitea/services/user"`
108108

109109
### Future Tasks

0 commit comments

Comments
 (0)