Encoded returns the encoded value. Returns the empty string if not set or valid.
()
| 380 | // Encoded returns the encoded value. |
| 381 | // Returns the empty string if not set or valid. |
| 382 | func (c Checksum) Encoded() string { |
| 383 | if !c.IsSet() { |
| 384 | return "" |
| 385 | } |
| 386 | return base64.StdEncoding.EncodeToString(c.r) |
| 387 | } |
| 388 | |
| 389 | // Raw returns the raw checksum value if set. |
| 390 | func (c Checksum) Raw() []byte { |