MustMakePrimitive
Creates a new Primitive from the given interface value. This function panics if an error occurs during the creation of the Primitive.
def MustMakePrimitive(
v: interface{}
) - > *core.Primitive
Converts an arbitrary Go value into a core.Primitive, panicking if the conversion fails. This function is useful when you are certain the conversion will succeed and prefer a panic over an error return.
Parameters
| Name | Type | Description |
|---|---|---|
| v | interface{} | The Go value to be converted into a core.Primitive. This can be any type that MakePrimitive can handle. |
Returns
| Type | Description |
|---|---|
*core.Primitive | A pointer to the core.Primitive representation of the input value. |