Skip to content

Commit

Permalink
feat: updated project structure
Browse files Browse the repository at this point in the history
  • Loading branch information
hokamsingh committed Aug 30, 2024
1 parent 02449f8 commit 4362191
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ dist/
app/
cmd/
uploads/
temp/

# Go modules and cache
vendor/
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,4 @@ For any questions, issues, or feedback, please visit our [GitHub repository](htt

Happy coding!

---
---
4 changes: 3 additions & 1 deletion pkg/lessgo/less.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,9 @@ const (
// )
func ConvertToBytes(size int64, unit SizeUnit) int64 {
s, err := utils.ConvertToBytes(float64(size), utils.SizeUnit(unit))
log.Printf("Failed to convert bytes: %v", err)
if err != nil {
log.Fatalf("Failed to convert bytes: %v", err)
}
return int64(s)
}

Expand Down

0 comments on commit 4362191

Please sign in to comment.