shared

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ExecDir string

ExecDir is dirname of executable

Functions

func IsChromeApp

func IsChromeApp() bool

IsChromeApp decides whether to run in Chrome App (i.e. windowed mode)

func IsDebug

func IsDebug() bool

IsDebug decides whether to run in debug mode (e.g. development server)

func Load

func Load()

Load loads from .env and .env.local to os.Getenv

func MediaPath

func MediaPath() string

MediaPath returns path to media folder, and mkdir if necessary

func OpenURL added in v0.2.2

func OpenURL(u string)

OpenURL opens specified URL in the default web browser

func Port

func Port() int

Port gets server port, or "default" port value

func UserDataDir

func UserDataDir() string

UserDataDir is used to store all writable data

Types

This section is empty.

Jump to

Keyboard shortcuts

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