code-generator: k8s.io/code-generator/pkg/util Index | Files

package util

import "k8s.io/code-generator/pkg/util"

Index

Package Files

build.go plural_exceptions.go

func BoilerplatePath Uses

func BoilerplatePath() string

BoilerplatePath uses the boilerplate in code-generator by calculating the relative path to it.

func CurrentPackage Uses

func CurrentPackage() string

CurrentPackage returns the go package of the current directory, or "" if it cannot be derived from the GOPATH.

func PluralExceptionListToMapOrDie Uses

func PluralExceptionListToMapOrDie(pluralExceptions []string) map[string]string

PluralExceptionListToMapOrDie converts the list in "Type:PluralType" to map[string]string. This is used for pluralizer. If the format is wrong, this function will panic.

Package util imports 6 packages (graph) and is imported by 35 packages. Updated 2020-02-12. Refresh now. Tools for package owners.