...

Package constants

import "edge-infra.dev/hack/build/rules/gazelle/constants"
Overview
Index

Overview ▾

func ResolveAttr

func ResolveAttr(rule *build.Rule, key string, constMap BazelConstMap) string

type BazelConstMap

type BazelConstMap map[string]string

func ResolveConstants

func ResolveConstants(args language.GenerateArgs, f *build.File, constMap BazelConstMap) (BazelConstMap, error)

ResolveConstants resolves values from the current file as well as from load statements in the file