package main
import (
"io"
"net/http"
"entrlcom.dev/unit"
)
func main() {
// Ex: http.MaxBytesReader().
http.MaxBytesReader(w, r, unit.KiB * 2) // 2 KiB.
// Ex: io.LimitReader().
io.LimitReader(r, unit.MiB * 4) // 4 MiB.
}
-
Notifications
You must be signed in to change notification settings - Fork 0
Units of measurement
License
entrlcom/go-unit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Units of measurement
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published