Skip to content

New Function - Equal<Type>sP, EqualMap<Type>, Distinct<Type>P

Compare
Choose a tag to compare
@logic-building logic-building released this 04 Aug 16:52
· 36 commits to master since this release
b1a7d96

New functions to compare slice and map.
EqualsP : eg EqualIntsP, EqualFloats64P
EqualMap: eg. EqualMapIntP , EqualMapInt64Float64P

New function to check if the slice is distinct
DistinctP: eg. DistinctIntP

Auto-generate code for struct has options to include the only list -
//go:generate gofp -destination fp.go -pkg employee -type "Employee" -only "Distinct, DistinctPtr, DistinctP"

A full list of value for option only is provided in README