str

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractFromPtr

func ExtractFromPtr(p *string) string

ExtractFromPtr safely dereferences a string pointer, returning empty string for nil. Provides null-safety when working with optional string fields in data structures.

func NonEmptyToPtr

func NonEmptyToPtr(v string) *string

NonEmptyToPtr returns a pointer to the string if it's non-empty, otherwise returns nil. Useful for converting string values to nullable pointers in API structs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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