summaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/helpers.go b/helpers.go
index 8ddb213..8dc71e9 100644
--- a/helpers.go
+++ b/helpers.go
@@ -24,6 +24,11 @@ func (p *Repos) FormatTEXT() string {
return prototext.Format(p)
}
+// unmarshalTEXT
+func (p *Repos) UnmarshalTEXT(data []byte) error {
+ return prototext.Unmarshal(data, p)
+}
+
// marshal json
func (p *Repos) MarshalJSON() ([]byte, error) {
return protojson.Marshal(p)