gpp

package
v2.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexOfSID

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

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

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL