wsstate

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValuesEqual added in v0.0.4

func ValuesEqual(a, b interface{}) bool

ValuesEqual returns if the two values are equal. Can have false negatives.

Types

type State

type State map[string]interface{}

State is WS information from a scoreboard.

func ReadStateFile

func ReadStateFile(path string) (State, error)

func (State) GetBool

func (s State) GetBool(k string) bool

func (State) GetInt

func (s State) GetInt(k string) int

func (State) GetString

func (s State) GetString(k string) string

func (State) Summary

func (s State) Summary() string

func (State) WriteStateFile

func (s State) WriteStateFile(path string) error

Jump to

Keyboard shortcuts

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