Skip to content

Commit

Permalink
Adding common size units
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzack9999 committed May 15, 2024
1 parent ce08021 commit 4f5b973
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
Empty file added unit/doc.go
Empty file.
8 changes: 8 additions & 0 deletions unit/size.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
package unit

const (
Byte = 1
Kilo = 1024
Mega = 1024 * 1024
Giga = 1024 * 1024 * 1024
)

0 comments on commit 4f5b973

Please sign in to comment.