Skip to content

Commit 9b95062

Browse files
wxiaoguangdelvh
andauthored
Update docs/content/doc/developers/guidelines-backend.md
Co-authored-by: delvh <[email protected]>
1 parent 15aa8bb commit 9b95062

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 package levels and sub packages, so you will find `modules/user`, `models/user`, `services/user`. When these packages are import into 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 recommend to always use import alias. To differ from package variables which are commonly use camelCase, just use **snake_case** as import package alias.
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.
107107
i.e. `import user_service "code.gitea.io/gitea/services/user"`
108108

109109
### Future Tasks

0 commit comments

Comments
 (0)