Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IndexOfSID ¶ added in v0.256.0
func IndexOfSID(gpp gpplib.GppContainer, sid gppConstants.SectionID) int
IndexOfSID returns a zero or non-negative integer that represents the position of the 'sid' value in the 'gpp.SectionTypes' array. If the 'sid' value is not found, returns -1. This logic is used in more than one place in our codebase, therefore it was decided to make it its own function.
func IsSIDInList ¶ added in v0.256.0
func IsSIDInList(gppSIDs []int8, sid gppConstants.SectionID) bool
IsSIDInList returns true if the 'sid' value is found in the gppSIDs array. Its logic is used in more than one place in our codebase, therefore it was decided to make it its own function.
Types ¶
Click to show internal directories.
Click to hide internal directories.