replacer

package
v3.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2023 License: MIT Imports: 4 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Replace

func Replace(template string, values map[string]interface{}) string

Replace replaces placeholders in template with values on the fly.

func ReplaceOne

func ReplaceOne(template string, key string, value interface{}) string

Replace replaces one placeholder in template with one value on the fly.

Types

This section is empty.

Jump to

Keyboard shortcuts

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