RefFromString returns a blobref from the given string, for the currently recommended hash function.
(s string)
| 430 | // RefFromString returns a blobref from the given string, for the currently |
| 431 | // recommended hash function. |
| 432 | func RefFromString(s string) Ref { |
| 433 | h := NewHash() |
| 434 | io.WriteString(h, s) |
| 435 | return RefFromHash(h) |
| 436 | } |
| 437 | |
| 438 | // RefFromBytes returns a blobref from the given string, for the currently |
| 439 | // recommended hash function. |