Example #1
0
func (d *bytesValue) Get() interface{} { return units.Base2Bytes(*d) }
Example #2
0
// BytesVar parses numeric byte units. eg. 1.5KB
func (p *parserMixin) BytesVar(target *units.Base2Bytes) {
	p.SetValue(newBytesValue(units.Base2Bytes(0), target))
}