aboutsummaryrefslogtreecommitdiff
path: root/helpers.go
diff options
context:
space:
mode:
authorAlexander NeonXP Kiryukhin <a.kiryukhin@mail.ru>2019-05-30 14:05:08 +0300
committerAlexander NeonXP Kiryukhin <a.kiryukhin@mail.ru>2019-05-30 14:05:08 +0300
commit2f4b6e90597784a8a7c01027e0ff5c6b69634a96 (patch)
tree5d94daf9fc394425b03baf3915ffd03a0011e442 /helpers.go
parent97fd40df4d85d91f3414dc88aa96222c1d827b49 (diff)
Parallel write
Speedup
Diffstat (limited to 'helpers.go')
-rw-r--r--helpers.go14
1 files changed, 14 insertions, 0 deletions
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
+}