gitlab.com/evatix-go/core@v1.3.55/issetter/New.go (about)

     1  package issetter
     2  
     3  import "errors"
     4  
     5  func New(name string) (Value, error) {
     6  	val, has := jsonValuesMap[name]
     7  
     8  	if !has {
     9  		return Uninitialized, errors.New(
    10  			"cannot convert to issetter based on given value - " + name)
    11  	}
    12  
    13  	return Value(val.Value()), nil
    14  }