text

package module
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	WeekdayId = make(map[time.Weekday]string)
	MonthId   = make(map[time.Month]string)
)

Functions

func ConstructTemplateByMap

func ConstructTemplateByMap(template string, params map[string]string) (formattedTemplate string)

This function will return Template for the keys and params that are given, this will return formatted template in string. * You should pass the param with the correct key map according to the template. Check the unit test for usage

func ConstructTemplateByOrder

func ConstructTemplateByOrder(template string, params ...string) (formattedTemplate string)

This function will return Template for template and params that are given, this will return formatted template in string. * You should pass the params with the correct order according to the template * Don't forget to use {{order_number}} as a placeholder. Check the unit test for usage

func FormatIDR

func FormatIDR(amount int64) string

func TranslateDateToIndonesian

func TranslateDateToIndonesian(date time.Time) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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