go-api-pkg/fluentd/config.go
2022-12-01 04:15:16 +01:00

15 lines
197 B
Go

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
}