// NewConfig creates a Config with the required fields and uses defaults for
// the others.
//
// Panics on empty values.
NewConfig creates a Config with the required fields and uses defaults for
the others.

Panics on empty values.
// NewConfig creates a Config with the required fields and uses defaults for // the others . // // Panics on empty values .
func NewConfig(name, namespace string) *Config {
	if namespace == "" || name == "" {
		panic("invalid etcd config")
	}
	namespace = path.Join("/", strings.Trim(namespace, "/ "))
	return &Config{
		Name:        name,
		Namespace:   namespace,
		NewTaskFunc: DefaultTaskFunc,
	}
}
func NewConfig ( name , namespace string ) * Config { if namespace == " " || name == " " { panic ( " " ) } namespace = path . Join ( " " , strings . Trim ( namespace , " " ) ) return & Config { Name : name , Namespace : namespace , NewTaskFunc : DefaultTaskFunc , } }
NewConfig creates a Config with the required fields and uses defaults for
the others.
NewConfig creates a Config with the required fields and uses defaults for the others .