From 2f4b6e90597784a8a7c01027e0ff5c6b69634a96 Mon Sep 17 00:00:00 2001 From: Alexander NeonXP Kiryukhin Date: Thu, 30 May 2019 14:05:08 +0300 Subject: Parallel write Speedup --- helpers.go | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 helpers.go (limited to 'helpers.go') diff --git a/helpers.go b/helpers.go new file mode 100644 index 0000000..b8672ac --- /dev/null +++ b/helpers.go @@ -0,0 +1,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 +} -- cgit v1.2.3