baseline

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package baseline provides a mechanism for applying baseline overrides to Go structs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Apply

func Apply[T any](dst, src *T)

Apply applies a baseline to the destination struct.

For every field in the destination struct that is not set to its zero value, it sets the corresponding field in the destination struct to the value in the source struct. The value of the source struct is cloned if it contains a pass-by-reference type with interior mutability so that the original source value is not modified by changes to the applied baseline in the destination struct.

Only directly exported fields are considered.

Types

This section is empty.

Jump to

Keyboard shortcuts

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