kubernetes/test/featuregates_linter/cmd/util.go

var GOOS

func findGOOS() string {}

// identifierName returns the name of an identifier.
// if ignorePkg, only return the last part of the identifierName.
func identifierName(v ast.Expr, ignorePkg bool) string {}

// importAliasMap returns the mapping from pkg path to import alias.
func importAliasMap(imports []*ast.ImportSpec) map[string]string {}

func basicStringLiteral(v ast.Expr) (string, error) {}

func basicIntLiteral(v ast.Expr) (int64, error) {}

func parseBool(variables map[string]ast.Expr, v ast.Expr) (bool, error) {}

func globalVariableDeclarations(tree *ast.File) map[string]ast.Expr {}