Skip to content

Commit 9048d4d

Browse files
committed
update sign up
1 parent d36679d commit 9048d4d

File tree

3 files changed

+79
-1
lines changed

3 files changed

+79
-1
lines changed

.air.toml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# .air.conf
2+
# Config file for [Air](https://github.com/cosmtrek/air) in TOML format
3+
4+
# Working directory
5+
# . or absolute path, please note that the directories following must be under root.
6+
root = "."
7+
tmp_dir = "tmp"
8+
9+
[build]
10+
# Just plain old shell command. You could use `make` as well.
11+
cmd = "go build -o ./tmp/main ."
12+
# Binary file yields from `cmd`.
13+
bin = "tmp/main"
14+
# Customize binary.
15+
full_bin = "APP_ENV=dev APP_USER=air ./tmp/main"
16+
# Watch these filename extensions.
17+
include_ext = ["go", "tpl", "tmpl", "html"]
18+
# Ignore these filename extensions or directories.
19+
exclude_dir = ["assets", "tmp", "vendor", "frontend/node_modules"]
20+
# Watch these directories if you specified.
21+
include_dir = []
22+
# Exclude files.
23+
exclude_file = []
24+
# It's not necessary to trigger build each time file changes if it's too frequent.
25+
delay = 1000 # ms
26+
# Stop to run old binary when build errors occur.
27+
stop_on_error = true
28+
# This log file places in your tmp_dir.
29+
log = "air_errors.log"
30+
31+
[log]
32+
# Show log time
33+
time = false
34+
35+
[color]
36+
# Customize each part's color. If no color found, use the raw app log.
37+
main = "magenta"
38+
watcher = "cyan"
39+
build = "yellow"
40+
runner = "green"
41+
42+
[misc]
43+
# Delete tmp directory on exit
44+
clean_on_exit = true

.gitignore

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Binaries for programs and plugins
2+
*.exe
3+
*.exe~
4+
*.dll
5+
*.so
6+
*.dylib
7+
8+
# Test binary, built with `go test -c`
9+
*.test
10+
*.tmp
11+
*tmp
12+
13+
# Output of the go coverage tool, specifically when used with LiteIDE
14+
*.out
15+
16+
# IDE files
17+
.vscode
18+
.DS_Store
19+
.idea
20+
21+
# Misc
22+
*.fiber.gz
23+
*.fasthttp.gz
24+
*.pprof
25+
*.workspace
26+
27+
# Environment
28+
*.env
29+
30+
# Dependencies
31+
/vendor/
32+
vendor/
33+
vendor
34+
/Godeps/

routes/auth/service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"returnone/database/user"
66
"returnone/utils/crypto"
7-
SendError "returnone/utils/sendError"
7+
"returnone/utils/sendError"
88

99
"github.com/gofiber/fiber/v2"
1010
)

0 commit comments

Comments
 (0)