# Functions

No description provided by the author
DiagError collects errors and appends diagnostics with diagnostic of err.
Filter takes 2 arguments: 1.
GetChangeWithParse checks if there has been any changes made to the value saved under the given key in the resourceData object if so, the functon applies the given parse function to the old and new values and returns the parsing results the function also returns a boolean which indicates weather a change has been made or not.
Map takes 2 arguments: 1.
GetChangeWithParse checks if there has been any changes made to the value saved under the given key in the resourceData object if so, the functon converts the the old and new values to the desired type note that if the conversion fails the function will panic!.
MustResourceDataCollectionToSlice takes a ResourceData object and a fieldName the function tries to retrieve the field's value and expects it to be of type schema.TypeSet or schema.TypeList (otherwise it will panic!) this function then converts the set/list to a slice of the desired type.
MustSchemaCollectionToSlice converts the argument to a slice of the desired type The argument must be of type schema.TypeSet or schema.TypeList otherwise, the function will panic.
MustSliceAs takes a slice as an argument and converts all it's members to the desired type T.
MustUnmarshalAs marshals the argument and than unmarshals it to the desired type ignores error if marshal/unmarshal fails (prints the error and returns the empty value of the desired type).
MustValueAs converts a the given argument to the desired type note that this conversion is not safe and may panic.
No description provided by the author
SlicesDiff excepts to slices which represents old and new values THe function returns: 1.
SliceToStringIndicatorsMap excepts a slice of generice type T The function returns a map from a string representation of each value in the slice to the value itself for example: [1, 2, 3] ==> {"1": 1, "2": 2, "3": 3}.
SupressDiffIfExists shows diff only if resource is new.
UnmarshalAs marshals the argument and than unmarshals it to the desired type returns error upon failure.

# Constants

No description provided by the author