util

package
v0.3.61 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertNilError

func AssertNilError(err error)

func TemplatedExample

func TemplatedExample(s string) string

templatedExample applies a templating function to the example string so we can make the text dyanamic. It also applies standard Kubernetes formatting rules after the templating step.

func UniqueString

func UniqueString(l []string) []string

UniqueString removes duplicates from a list. There are no ordering guarantees.

Types

type DynamicTemplateOptions

type DynamicTemplateOptions struct {
	// Application is the application name as defined by argv[0].
	Application string
}

DynamicTemplateOptions allows some parameters to be passed into help text and that text to be templated so it will update automatically when the options do.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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