Skip to content

Commit

Permalink
chore: add editorconfig (#280)
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f authored Jan 19, 2025
1 parent d913e99 commit 9d5ea2b
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 19 deletions.
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

0 comments on commit 9d5ea2b

Please sign in to comment.