ByteParts returns the "parts" field. The caller owns the returned slice.
()
| 102 | // ByteParts returns the "parts" field. The caller owns the returned |
| 103 | // slice. |
| 104 | func (b *Blob) ByteParts() []BytesPart { |
| 105 | // TODO: move this method off Blob, and make the caller go |
| 106 | // through a (*Blob).ByteBackedBlob() comma-ok accessor first. |
| 107 | s := make([]BytesPart, len(b.ss.Parts)) |
| 108 | for i, part := range b.ss.Parts { |
| 109 | s[i] = *part |
| 110 | } |
| 111 | return s |
| 112 | } |
| 113 | |
| 114 | func (b *Blob) Builder() *Builder { |
| 115 | var m map[string]interface{} |
no outgoing calls
no test coverage detected