Versions in this module Expand all Collapse all v1 v1.0.1 May 8, 2024 Changes in this version + var ErrNullSepLevelInvalid = fmt.Errorf("TrailingNullLevel exceeded maximum") + var ErrParseGroupCount = fmt.Errorf(..., ErrParsePersonName, groupSep, groupSep) + var ErrParseGroupSegmentCount = fmt.Errorf(..., ErrParsePersonName, segmentSep, segmentSep, segmentSep, segmentSep) + var ErrParsePersonName = errors.New("error parsing PN value") + type GroupInfo struct + FamilyName string + GivenName string + MiddleName string + NamePrefix string + NameSuffix string + TrailingNullLevel GroupTrailingNullLevel + func (group GroupInfo) DCM() (string, error) + func (group GroupInfo) IsEmpty() bool + func (group GroupInfo) MustDCM() string + type GroupTrailingNullLevel uint + const GroupNullLevelAll + const GroupNullLevelGiven + const GroupNullLevelMiddle + const GroupNullLevelNone + const GroupNullLevelPrefix + func (level GroupTrailingNullLevel) String() string + type Info struct + Alphabetic GroupInfo + Ideographic GroupInfo + Phonetic GroupInfo + TrailingNullLevel InfoTrailingNullLevel + func Parse(valueString string) (Info, error) + func (info *Info) WithTrailingNulls() Info + func (info *Info) WithoutTrailingNulls() Info + func (info Info) DCM() (string, error) + func (info Info) IsEmpty() bool + func (info Info) MustDCM() string + func (info Info) WithFormat(infoNullSepLevel InfoTrailingNullLevel, ...) Info + func (info Info) WithoutEmptyGroups() Info + type InfoTrailingNullLevel uint + const InfoNullLevelAll + const InfoNullLevelIdeographic + const InfoNullLevelNone + func (level InfoTrailingNullLevel) String() string