mnd

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mnd provides reusable constants for the Notifiarr application packages.

Index

Constants

View Source
const (
	Mode0755  = 0o755
	Mode0750  = 0o750
	Mode0600  = 0o600
	Kilobyte  = 1024
	Megabyte  = Kilobyte * Kilobyte
	KB100     = Kilobyte * 100
	OneDay    = 24 * time.Hour
	Base10    = 10
	Base8     = 8
	Bits64    = 64
	Bits32    = 32
	Disabled  = "disabled"
	Success   = "success"
	HelpLink  = "Notifiarr Discord: https://notifiarr.com/discord"
	UserRepo  = "Notifiarr/toolbarr"
	BugIssue  = "This is a bug please report it on github: https://github.com/" + UserRepo + "/issues/new"
	IsLinux   = runtime.GOOS == "linux"
	IsWindows = runtime.GOOS == "windows"
	IsMac     = runtime.GOOS == "darwin"
)

Application Constants.

View Source
const (
	Title = "Toolbarr"
	Name  = "toolbarr"
)

Application Defaults.

Variables

This section is empty.

Functions

func FormatBytes

func FormatBytes(size interface{}) string

FormatBytes converts a byte counter into a pretty UI string. The input val must be int, int64, uint64 or float64.

Types

type App added in v0.1.0

type App interface {
	Ask(title string, msg string) bool
}

App provides a simple interface to do things in the wails app.

Jump to

Keyboard shortcuts

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