placeholders

package
v0.0.0-...-2dc91a7 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsAnyPlaceholders

func ContainsAnyPlaceholders(s string) bool

func ContainsLocalePlaceholder

func ContainsLocalePlaceholder(s string) bool

func ContainsTagPlaceholder

func ContainsTagPlaceholder(s string) bool

func Resolve

func Resolve(s, pattern string) (map[string]string, error)

Resolve matches s against pattern and maps placeholders in pattern to substrings of s. Resolve handles '*' wildcards in the pattern, but will return an error if the pattern contains '**'.

func ResolveTranslationKeyPrefix

func ResolveTranslationKeyPrefix(translationKeyPrefix optional.String, filePath string) (optional.String, error)

func ToGlobbingPattern

func ToGlobbingPattern(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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