utility

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package utility provides general-purpose, dependency-free helper functions shared across Tupic services. It belongs to no layer and must not import any layer of this library (depguard enforces this). It is not a catch-all: a helper that needs a contract or domain type belongs in that layer, not here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseUUID

func ParseUUID(s string) (uuid.UUID, error)

ParseUUID parses a UUID string and wraps any parse error with context.

func StringDereference

func StringDereference(p *string) string

StringDereference returns the string value of p, or "" if p is nil.

func StringOrNil

func StringOrNil(value string) *string

StringOrNil returns nil if value is empty after trimming.

Types

This section is empty.

Jump to

Keyboard shortcuts

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