MCPcopy Index your code
hub / github.com/google/go-github / GetContent

Method GetContent

github/github-accessors.go:2866–2871  ·  view source on GitHub ↗

GetContent returns the Content field if it's non-nil, zero value otherwise.

()

Source from the content-addressed store, hash-verified

2864
2865// GetContent returns the Content field if it's non-nil, zero value otherwise.
2866func (b *Blob) GetContent() string {
2867 if b == nil || b.Content == nil {
2868 return ""
2869 }
2870 return *b.Content
2871}
2872
2873// GetEncoding returns the Encoding field if it's non-nil, zero value otherwise.
2874func (b *Blob) GetEncoding() string {

Callers 2

TestBlob_GetContentFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestBlob_GetContentFunction · 0.76