// GetLocalPort returns the local ports from the Config port mapping.
GetLocalPort returns the local ports from the Config port mapping.
// GetLocalPort returns the local ports from the Config port mapping .
func (c Config) GetLocalPort() (port int, err error) {
	localStr, _ := splitPort(c.Port)
	local, err := strconv.ParseInt(localStr, 10, 64)
	if err != nil {
		return 0, err
	}
	return int(local), nil
}
func ( c Config ) GetLocalPort ( ) ( port int , err error ) { localStr , _ := splitPort ( c . Port ) local , err := strconv . ParseInt ( localStr , 10 , 64 ) if err != nil { return 0 , err } return int ( local ) , nil }
GetLocalPort returns the local ports from the Config port mapping.
GetLocalPort returns the local ports from the Config port mapping .