Help us shape the future of Go! Take the 2026 Go Developer Survey

validation

package
v1.62.2 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0, BSD-2-Clause, MIT, + 1 more Imports: 0 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldEnforceImmutability

func ShouldEnforceImmutability(new, old []string) bool

ShouldEnforceImmutability compares the given slices and returns if a immutability should be enforced. It mainly checks if the order of the same elements in `new` and `old` is the same, i.e. only an addition of elements to `new` is allowed.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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