diff options
| author | Jeff Carr <[email protected]> | 2024-11-20 10:31:25 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-11-20 10:31:25 -0600 |
| commit | 39a8d9e13ecb9619418bd15dba5ef3ecf4e2d9f9 (patch) | |
| tree | b516483849e974eb8fdb1ae9421f892ebccc98d6 /helpers.go | |
| parent | 35a2db858f1635f947c2b5f9bbfe9bb64ef7a472 (diff) | |
config files are cool!
Diffstat (limited to 'helpers.go')
| -rw-r--r-- | helpers.go | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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) |
