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

chore: add editorconfig #280

Merged
merged 1 commit into from
Jan 19, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true

[*.go]
indent_size = 4
indent_style = tab

[Makefile]
indent_style = tab
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ build-http:
### Generating commands
gen:
go run ./internal/generator/main.go \
"./internal/engine/command/crowdfund/crowdfund.yml" "./internal/engine/command/market/market.yml"
"./internal/engine/command/crowdfund/crowdfund.yml" \
"./internal/engine/command/market/market.yml"

find . -name "*.gen.go" -exec gofumpt -l -w {} +

###
Expand Down
2 changes: 1 addition & 1 deletion config/config.sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ logger:
max_size: 10 # Maximum size (in MB) of the log file before rotation.
max_backups: 10 # Maximum number of backup log files to retain.
compress: true # Compress old log files.
targets: [file, console] # Logging targets: file, console, or both.
targets: [file, console] # Logging targets: file, console, or both.
32 changes: 17 additions & 15 deletions internal/engine/command/crowdfund/crowdfund.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion internal/engine/command/market/market.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/engine/command/market/market.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ sub_commands:
https://xeggex.com/market/PACTUS_USDT

Azbit Price: **{{.azbitPrice}} USDT**
https://azbit.com/exchange/PAC_USDT
https://azbit.com/exchange/PAC_USDT
Loading