util

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package util provides utility functions for the dehydrated-api-go application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool

func Bool(b *bool) bool

Bool returns the boolean value of a boolean pointer. If the pointer is nil, it returns false.

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer to the given boolean.

func String

func String(s *string) string

String returns the string value of a string pointer. If the pointer is nil, it returns an empty string.

func StringPtr

func StringPtr(s string) *string

StringPtr returns a pointer to the given string.

func StringSlice

func StringSlice(s *[]string) []string

StringSlice returns the string slice value of a string slice pointer. If the pointer is nil, it returns nil.

func StringSlicePtr

func StringSlicePtr(s []string) *[]string

StringSlicePtr returns a pointer to the given string slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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