utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFileSystem

func GetFileSystem(useOS bool, embedFs embed.FS) http.FileSystem

GetFileSystem If the `useOS` flag is set, use the live filesystem, otherwise use the embedded filesystem

Types

type Duration

type Duration struct {
	time.Duration
}

Duration is a wrapper for time.Duration

func (*Duration) UnmarshalJSON

func (duration *Duration) UnmarshalJSON(b []byte) error

UnmarshalJSON implements the json.Unmarshaler interface

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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