text

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 4 Imported by: 3

Documentation

Overview

Package text renders anything (numbers, errors, ...) as text. It calls: - a strconv converter if possible - String() for types implementing fmt.Stringer() - Errors() for errors

Usage:

@text.C(1) // display an integer

@text.C(err) // display an error

templ: version: v0.2.793

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func C

func C(s any) templ.Component

Types

This section is empty.

Jump to

Keyboard shortcuts

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