func (bindPoint *BindPoint) Validate() error {
	if bindPoint.InterfaceAddress == "" {
		return errors.New("value for address must be provided")
	}
	if bindPoint.Address == "" {
		return errors.New("value for address must be provided")
	}
	return nil
}
Validate this configuration object.
package xweb
import (
	"fmt"
	"github.com/pkg/errors"
)
type BindPoint struct {
	InterfaceAddress string  
	Address          string  
}
func (bindPoint *BindPoint) Parse(config map[interface{}]interface{}) error {
	if interfaceVal, ok := config["interface"]; ok {
		if address, ok := interfaceVal.(string); ok {
			bindPoint.InterfaceAddress = address
		} else {
			return fmt.Errorf("could not use value for address, not a string")
		}
	}
	if interfaceVal, ok := config["address"]; ok {
		if address, ok := interfaceVal.(string); ok {
			bindPoint.Address = address
		} else {
			return errors.New("could not use value for address, not a string")
		}
	}
	return nil
}