293dd2e848
* Add vendor dir so builds dont require dep * Pin specific version go-eth version
15 lines
344 B
Go
15 lines
344 B
Go
// Copyright (c) 2016 Arista Networks, Inc.
|
|
// Use of this source code is governed by the Apache License 2.0
|
|
// that can be found in the COPYING file.
|
|
|
|
package elasticsearch
|
|
|
|
import (
|
|
"strings"
|
|
)
|
|
|
|
// EscapeFieldName escapes field names for Elasticsearch
|
|
func EscapeFieldName(name string) string {
|
|
return strings.Replace(name, ".", "_", -1)
|
|
}
|