add stuff that may not compile.
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-03-25 14:13:43 +01:00
parent 9aa7304982
commit 410e07a6a2
16 changed files with 674 additions and 3 deletions
+3 -2
View File
@@ -55,9 +55,10 @@ func EncodeTagArray(arr []Tag) []string {
return result
}
func DecodeTagArray(arr []string) ([]Tag, error) {
result := make([]Tag, len(arr))
func DecodeTagArray(arr []string) ([]*Tag, error) {
result := make([]*Tag, 0, len(arr))
for i, v := range arr {
result = append(result, &Tag{})
err := result[i].Decode(v)
if err != nil {
return nil, err