update

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package update contains utilities for updating various data structures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bytes

func Bytes(old, updated []byte) []byte

Bytes returns updated bytes slice if it's length is greater than zero, otherwise returns old.

func NullableBool

func NullableBool(old bool, updated *bool) bool

NullableBool returns updated value if it is not null, otherwise returns old.

func String

func String(old, updated string) string

String returns updated string if it's length is greater than zero, otherwise returns old.

Types

This section is empty.

Jump to

Keyboard shortcuts

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