gen

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(t string) []string

Get returns all data for the given type.

func GetRandom

func GetRandom(t string) string

GetRandom returns a random entry for the given type.

func InitGen

func InitGen()

InitGen loads all data from the assets/gen folder. This function should be called on startup. The data is stored in a map with the type as key and a slice of strings, which are the lines of the file, as value.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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