github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/unit/unit.go (about)

     1  package unit
     2  
     3  const (
     4  	_ = iota // ignore first value by assigning to blank identifier
     5  	// KiB kilobyte
     6  	KiB = 1 << (10 * iota) // 1 << (10*1)
     7  	// MiB megabyte
     8  	MiB // 1 << (10*2)
     9  	// GiB gigabyte
    10  	GiB // 1 << (10*3)
    11  	// TiB terabyte
    12  	TiB // 1 << (10*4)
    13  )