summaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-20 10:31:25 -0600
committerJeff Carr <[email protected]>2024-11-20 10:31:25 -0600
commit39a8d9e13ecb9619418bd15dba5ef3ecf4e2d9f9 (patch)
treeb516483849e974eb8fdb1ae9421f892ebccc98d6 /helpers.go
parent35a2db858f1635f947c2b5f9bbfe9bb64ef7a472 (diff)
config files are cool!
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)