# Functions
CallMatch calls the function with the matched argument automatically you can define multiple parameter factory function to inject the return value as the function argument.
CallStructFieldsMethod iterates field from the given struct object check if the field object implements the interface, if it's implemented, then we call a specific method.
For backward compatibility of reflect.Value.CanInt in go1.17.
Modified from golang 1.19.1 reflect to eliminate all possible panic.
Used by bbgo/interact_modify.go.
InheritStructValues merges the field value from the source struct to the dest struct.
https://github.com/xiaojun207/go-base-utils/blob/master/utils/Clone.go.
@param s: strategy object @param f: io.Writer used for writing the strategy dump @param seriesLength: if exist, the first value will be chosen to be the length of data from series to be printed out default to 1 when not exist or the value is invalid.
ParseStructAndInject parses the struct fields and injects the objects into the corresponding fields by its type.
@param s: strategy object @param f: io.Writer used for writing the config dump @param style: pretty print table style.
ToReflectValues convert the go objects into reflect.Value slice.