go-api-pkg/fluentd/config.go

15 lines
197 B
Go
Raw Normal View History

2022-12-01 17:56:11 +01:00
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
}