1 2 3 4 5 6 7 8 9 10 11 12 13 14
package main import "github.com/paulmach/osm" func convertTags(tags osm.Tags) []Tag { result := make([]Tag, 0, len(tags)) for _, t := range tags { result = append(result, Tag{ Key: t.Key, Value: t.Value, }) } return result }