update influxdb to v1.1.1 and change client to v2

This commit is contained in:
Karol Kraśkiewicz
2017-03-10 23:09:30 +01:00
parent 0ea3e9a2c1
commit 2a270e8f18
16 changed files with 1527 additions and 301 deletions

View File

@@ -20,6 +20,10 @@ func init() {
}
func UnescapeString(in string) string {
if strings.IndexByte(in, '\\') == -1 {
return in
}
for b, esc := range codesStr {
in = strings.Replace(in, esc, b, -1)
}