settings

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply[T Setting[S], S any](d *S, ss []T) *S

Apply is apply settings

func ApplyOr added in v0.0.4

func ApplyOr[T Setting[S], S any](d S, ss ...T) *S

ApplyOr is an apply settings with defaults

func ApplyOrZero

func ApplyOrZero[T Setting[S], S any](ss ...T) *S

ApplyOrZero is an apply settings with defaults

Types

type Setting

type Setting[S any] func(*S)

Setting is a setting function for Apply

Jump to

Keyboard shortcuts

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