util

package
v0.0.0-...-d4afc08 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CommentErr

func CommentErr(c string) string

func CommentErrs

func CommentErrs(messages []string) []bzl.Comment

func ListWithComments

func ListWithComments(list []bzl.Expr, comments []bzl.Comment) *bzl.ListExpr

ListWithComments creates a bzl.ListExpr with value of list if both list and comments are empty, nil is returned if list is empty, an empty list is rendered that contains comments if list is non-empty, comments are placed at the beginning of the list

func MakeGlob

func MakeGlob(include, exclude []bzl.Expr) bzl.Expr

MakeGlob returns a `glob([], exclude=[])` expression the default ExprFromValue produces a `glob([], "excludes": [])` expression

func MakeGlobS

func MakeGlobS(include, exclude []string) bzl.Expr

func MakeStringExprs

func MakeStringExprs(values []string) []bzl.Expr

func SortExprs

func SortExprs(exprs []bzl.Expr) []bzl.Expr

Types

This section is empty.

Jump to

Keyboard shortcuts

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