misc

package
v0.0.0-...-5f9e87e Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: BSD-3-Clause Imports: 8 Imported by: 9

Documentation

Overview

package misc has some functions that really don't belong in any particular package.

Index

Constants

This section is empty.

Variables

View Source
var (
	DejavusansTtf []byte
	WingoWav      []byte
	WingoPng      []byte
	ClosePng      []byte
	MinimizePng   []byte
	MaximizePng   []byte
	Wallpaper     []byte
)
View Source
var ConfigPaths = xdg.Paths{
	Override:     "",
	XDGSuffix:    "Wonderland",
	GoImportPath: "github.com/Anima-OS/Wonderland/config",
}
View Source
var DataPaths = xdg.Paths{
	Override:     "",
	XDGSuffix:    "Wonderland",
	GoImportPath: "github.com/Anima-OS/Wonderland/data",
}
View Source
var ScriptPaths = xdg.Paths{
	Override:     "",
	XDGSuffix:    "Wonderland",
	GoImportPath: "github.com/Anima-OS/Wonderland/config",
}

Functions

func ConfigFile

func ConfigFile(name string) string

func DataFile

func DataFile(name string) []byte

func Max

func Max(a, b int) int

func Min

func Min(a, b int) int

func Mod

func Mod(x, m int) int

This exists because '%' isn't really modulus; it's *remainder*. e.g., (-1) % 2 = -1 but (-1) mod 2 = 1.

func ReadData

func ReadData()

func Round

func Round(n float64) int

func ScriptConfigPath

func ScriptConfigPath(name string) string

func ScriptPath

func ScriptPath(name string) string

func StackTrace

func StackTrace() string

Prints a simple stack trace without panicing.

XXX: I tried using runtime.Stack, but I couldn't get it to work...

Types

This section is empty.

Jump to

Keyboard shortcuts

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