(text []byte)
| 79 | } |
| 80 | |
| 81 | func (p *Int64) UnmarshalText(text []byte) error { |
| 82 | n, err := Parse(string(text)) |
| 83 | if err != nil { |
| 84 | return err |
| 85 | } |
| 86 | *p = Int64(n) |
| 87 | return nil |
| 88 | } |
| 89 | |
| 90 | var ( |
| 91 | fullRegexp = regexp.MustCompile(`^\s*(\-?[\d\.]+)\s*([kmgtp]?b|[bkmgtp]|)\s*$`) |