Documentation
¶
Overview ¶
Package templating aggregates individualization, token generation and detection, as well as variable-value detection behind a cohesive import.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BuildPattern = tokendetection.BuildPattern
BuildPattern builds a compiled regexp for token detection based on delimiters.
var CollectTokenNames = tokendetection.CollectTokenNames
CollectTokenNames scans content and returns global and per-file required tokens.
var DetectInContent = tokendetection.DetectInContent
DetectInContent detects token occurrences in content.
var DetectVariableValues = variablevalue.Detect
DetectVariableValues scans content for values that originate from unselected variations.
var FilterByIgnore = tokendetection.FilterByIgnore
FilterByIgnore filters out matches for ignored inner token names.
var FilterKnownCompositeTokens = tokendetection.FilterKnownCompositeTokens
FilterKnownCompositeTokens narrows unresolved matches composed from already known tokens.
var IsEnabled = tokendetection.IsEnabled
IsEnabled resolves whether token warnings are enabled for a project.
var NewIndividualizerWithStandardManipulators = individualizer.NewIndividualizerWithStandardManipulators
NewIndividualizerWithStandardManipulators constructs a default individualizer.
var NewTokenGeneratorWithEngine = tokengen.NewTokenGeneratorWithEngine
NewTokenGeneratorWithEngine creates a token generator bound to a Lua engine.
var ResolveEffectiveDelimiters = tokengen.ResolveEffectiveDelimiters
ResolveEffectiveDelimiters resolves effective token delimiters for a project.
var ResolveEffectiveDelimitersForDistribution = tokengen.ResolveEffectiveDelimitersForDistribution
ResolveEffectiveDelimitersForDistribution resolves effective token delimiters for a project and distribution.
Functions ¶
func VarMarkerRegex ¶
VarMarkerRegex returns a cached regex matching the variant markers (`<preIdentifier>Var<name>`) for the given preIdentifier. Compiling on first use and caching keeps repeated individualization runs cheap when the same preIdentifier appears across many files.
Types ¶
type Match ¶
type Match = tokendetection.Match
Match describes a single token match with a short preview.
type StandardManipulatorOptions ¶
type StandardManipulatorOptions = individualizer.StandardManipulatorOptions
StandardManipulatorOptions configures the built-in individualizer manipulators.
type TokenBasedIndividualizer ¶
type TokenBasedIndividualizer = individualizer.TokenBasedIndividualizer
TokenBasedIndividualizer performs token-based content individualization.
type TokenGenerator ¶
type TokenGenerator = tokengen.TokenGenerator
TokenGenerator creates tokens from variation selections and Lua extensions.
type UserGroup ¶
type UserGroup = individualizer.UserGroup
UserGroup is the individualization context for a project.
type VariableFinding ¶
type VariableFinding = variablevalue.Finding
VariableFinding describes an unexpected variable value occurrence.
type VariableOptions ¶
type VariableOptions = variablevalue.Options
VariableOptions configures the variable-value detector.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package detectionutil provides helpers for loading detection-related configuration used by variable/token detection logic.
|
Package detectionutil provides helpers for loading detection-related configuration used by variable/token detection logic. |
|
Package hashartifact renders hash directives into raw and hashed artifacts.
|
Package hashartifact renders hash directives into raw and hashed artifacts. |
|
Package individualizer provides a flexible token replacement and file manipulation system.
|
Package individualizer provides a flexible token replacement and file manipulation system. |
|
Package solutiondeletion applies removal rules to filter solution content from repositories.
|
Package solutiondeletion applies removal rules to filter solution content from repositories. |
|
Package tablehash renders hashed solution tables for work repositories.
|
Package tablehash renders hashed solution tables for work repositories. |
|
Package targetprocessing wires built-in cross-target processors.
|
Package targetprocessing wires built-in cross-target processors. |
|
Package targetprocessor defines processors that can transform multiple target repository contents together after normal per-target individualization.
|
Package targetprocessor defines processors that can transform multiple target repository contents together after normal per-target individualization. |
|
Package tokendetection provides functionality to detect and collect tokens in source code.
|
Package tokendetection provides functionality to detect and collect tokens in source code. |
|
transformers
Package transformers provides various string transformation functions used for generating individualization tokens from class names.
|
Package transformers provides various string transformation functions used for generating individualization tokens from class names. |
|
Package variablevalue provides detection utilities for spotting values from non-selected variations within individualized content.
|
Package variablevalue provides detection utilities for spotting values from non-selected variations within individualized content. |