texts

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: BSD-3-Clause Imports: 7 Imported by: 1

Documentation

Overview

Package texts replaces ID placeholders like @12345 with actual texts from a text table.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Table

type Table map[int]string

func From

func From(r io.Reader) (Table, error)

func FromFile

func FromFile(path string) (Table, error)

func (Table) ResolveTexts

func (t Table) ResolveTexts(w io.Writer, r io.Reader) error

func (Table) ResolveTextsString

func (t Table) ResolveTextsString(s string) (string, error)

Jump to

Keyboard shortcuts

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