fun

package
v1.4.137 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatText

func FormatText(ps *playerstate.PlayerState, s string) string

FormatText replaces placeholders in the given text.

func SetTimeZoneHours added in v1.3.303

func SetTimeZoneHours(h int)

SetTimeZoneHours overrides the current time zone.

Should be the time zone offset of Jan 1 this year, rounded DOWN (as in, floor) to whole hours.

Used on Android to get the time zone from Java code.

func TryFormatText

func TryFormatText(ps *playerstate.PlayerState, s string) (string, error)

TryFormatText replaces placeholders in the given text.

Types

This section is empty.

Jump to

Keyboard shortcuts

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