Documentation ¶
Index ¶
- func ConvertUint16(str string) uint16
- func ConvertUint8(str string) uint8
- func CopyAndSetField[T any, V any](input *T, fieldName string, newValue *V) *T
- func ExtractBearerToken(authHeader string) string
- func FormatEndpoint(endpoint string) string
- func GenerateRandomString(n uint64) (string, error)
- func IsValidObjectID(id string) bool
- func LoadPEMFileInto(path string) ([]byte, error)
- func MapTo[T any, V any](from *V) (*T, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertUint16 ¶
func ConvertUint8 ¶
func CopyAndSetField ¶
CopyAndSetField creates a copy of the provided struct and sets the specified field to the new value.
func ExtractBearerToken ¶
func FormatEndpoint ¶
func GenerateRandomString ¶
func IsValidObjectID ¶
func LoadPEMFileInto ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.