fix
This commit is contained in:
14
fluentd/config.go
Normal file
14
fluentd/config.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package fluentd
|
||||
|
||||
import (
|
||||
"strconv"
|
||||
"strings"
|
||||
)
|
||||
|
||||
func ParseAddr(addr string) (string, int) {
|
||||
p := strings.Split(addr, ":")
|
||||
fHost := p[0]
|
||||
fPort, _ := strconv.Atoi(p[1])
|
||||
|
||||
return fHost, fPort
|
||||
}
|
||||
Reference in New Issue
Block a user