go_tools

package module
v0.0.0-...-f87dc8c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2019 License: GPL-3.0 Imports: 9 Imported by: 0

README

go_tools

Various tools written in Go

There are no binaries included in the repo.

From the base go_tools/ directory you build the tools. There are currently just a few, status_report, chargen, and vng the Vargn name generator.

go build -o bin/status_report cmd/status_report/main.go

Currently working on the issues of locating the names.db file. It is a SQLite database that currently must be in the directory you run chargen from.

Addendum: Added a -d <database_name_with_path> flag to chargen. Defaults to data/names.db

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Age

func Age(terms int) int

func ArrayFromFile

func ArrayFromFile(f *os.File) []string

func FormatUPP

func FormatUPP(upp [6]int) string

func Gender

func Gender() string

func GetName

func GetName(gender string, db_name string) string

func NumTerms

func NumTerms() int

func OneD6

func OneD6() int

func RNG

func RNG(min int, max int) int

func RandomStringFromArray

func RandomStringFromArray(array []string) string

func RollUPP

func RollUPP() [6]int

func StringInArray

func StringInArray(val string, array []string) bool

func TwoD6

func TwoD6() int

Types

type Person

type Person struct {
	Name   string
	UPP    [6]int
	Gender string
	PSR    int
	Age    int
	Terms  int
	Career string
}

func MakePerson

func MakePerson(options map[string]string) Person

Directories

Path Synopsis
cmd
d66
vng

Jump to

Keyboard shortcuts

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