Skip to content

entrlcom/go-unit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unit

Table of Content

Examples

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.
}

License

MIT

About

Units of measurement

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published