From 39a8d9e13ecb9619418bd15dba5ef3ecf4e2d9f9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 20 Nov 2024 10:31:25 -0600 Subject: config files are cool! --- helpers.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'helpers.go') 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) -- cgit v1.2.3