bungolow

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger golog.Logger = golog.LoggingConfiguration().
	Configure(golog.Debug, "").
	WriteTo(&writer.FmtPrinter{}).
	CreateLogger()

Functions

This section is empty.

Types

type Environment

type Environment interface {
	BaseDir() string
	ImgDir() string

	GetFilePath(filename string) string
	GetImagePath(filename string) string
}

func GetEnvironment

func GetEnvironment() Environment

func NewEnvironment

func NewEnvironment(baseDirectory string, imgDirectory string) (Environment, error)

type EnvironmentConfig

type EnvironmentConfig struct {
	BaseDirectory string
	ImgDirectory  string
}

func (*EnvironmentConfig) BaseDir

func (env *EnvironmentConfig) BaseDir() string

func (*EnvironmentConfig) GetFilePath

func (env *EnvironmentConfig) GetFilePath(filename string) string

func (*EnvironmentConfig) GetImagePath

func (env *EnvironmentConfig) GetImagePath(filename string) string

func (*EnvironmentConfig) ImgDir

func (env *EnvironmentConfig) ImgDir() string

Directories

Path Synopsis
Serves images to user interfaces
Serves images to user interfaces

Jump to

Keyboard shortcuts

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