import "camlistore.org/pkg/blobref" blobData := []byte("Hello, world!") blobRef := blobref.SHA1FromString(fmt.Sprintf("sha1-%x", sha1.Sum(blobData)))
import "camlistore.org/pkg/blobref" blobRefString := "sha1-1c00d07001081564ec8094569f5e5d5be86fa5ff" blobRef, _ := blobref.Parse(blobRefString)This example parses a string representation of a BlobRef into the BlobRef type. Overall, the go camlistore.org.pkg.blobref BlobRef String package library provides functionality for creating, parsing, and working with BlobRefs in a Camlistore repository.