ego

package
v0.0.0-...-76bca70 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ERRBADSECTION = errors.New("No section: ")
	ERRBADKEY     = errors.New("No Key: ")
)
View Source
var (
	BIGOOPS = errors.New("Well that's not supposed to happen")
)
View Source
var (
	Renderer renderer
)

Functions

func Config

func Config(section, key string, def interface{}) (interface{}, error)

func Init

func Init(a *App, r renderer) error

func InternalFS_Add

func InternalFS_Add(file string, data []byte)

InternalFS_Add will add a file to the Internal Filesystem Usually, this is only used for items compiled into the binary

func InternalFS_Get

func InternalFS_Get(file string) ([]byte, error)

InternalFS_Get retrieves

func InternalFS_Has

func InternalFS_Has(file string) bool

InternalFS_Has checks if a file exists in the Internal Filesystem

func LoadConfig

func LoadConfig(path string) error

func PrintConfig

func PrintConfig()

func Run

func Run() error

func SaveConfig

func SaveConfig(path string) error

Types

type App

type App struct {
	Name string
	// contains filtered or unexported fields
}

func CreateApp

func CreateApp(n string) (*App, error)

type WinMode

type WinMode int32
const (
	FULLSCREEN WinMode = iota
	WINDOWED
	BORDERLESS_FULLSCREEN
)

func (WinMode) String

func (w WinMode) String() string

Directories

Path Synopsis
!build
!build

Jump to

Keyboard shortcuts

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