replvar

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2023 License: MIT Imports: 6 Imported by: 0

README

GoDoc

replvar

Variable replacement thingie

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(ctx context.Context, s string, mode string) (string, error)

Replace will replace any variable found in s with their value from the context

func ResolveStringVariable added in v0.0.2

func ResolveStringVariable(ctx context.Context, v string) string

ResolveStringVariable returns the string value for a variable name based on the context

func ResolveVariable added in v0.0.2

func ResolveVariable(ctx context.Context, v string) any

ResolveVariable returns the value for a variable name based on the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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