assert

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NotEmpty

func NotEmpty(s *string)

NotEmpty trims a string and panics if its len is 0.

func SemverVersion

func SemverVersion(v *string)

SemverVersion will trim the string and panic if it doesn't match the spec for a semantic version. Uses the suggested regex from https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string

Types

This section is empty.

Jump to

Keyboard shortcuts

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