strformat

package
v0.0.36 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2025 License: MIT Imports: 5 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

View Source
var T = Tmpl

Alias of `strformat.Tmpl`

Alias of `strformat.TmplWithoutErr`

Functions

func IsOnlyNumber

func IsOnlyNumber(s string) bool

Check string value, will return `true` if string value is only number and return `false` if string value not only contains number

func Tmpl

func Tmpl(tmplFormat string, values any) (string, error)

Format string with golang template

func TmplWithoutErr

func TmplWithoutErr(tmplFormat string, values any) string

Format string with golang template but without return error

Types

This section is empty.

Jump to

Keyboard shortcuts

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