utils

package
v0.0.0-...-c1fa50f Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DirListTemplateHTML = `` /* 1030-byte string literal not displayed */

DirListTemplateHTML to be used as index.html for redering DirectoryList

View Source
var HTMLReplacer = strings.NewReplacer(
	"&", "&",
	"<", "&lt;",
	">", "&gt;",

	`"`, "&#34;",

	"'", "&#39;",
)

HTMLReplacer ...

Functions

func GetHumanReadableSize

func GetHumanReadableSize(f os.FileInfo) string

GetHumanReadableSize ...

func GetLocalIP

func GetLocalIP() net.IP

GetLocalIP i.e. 192.168.X.Y ~ your local private IP

func ParseArgs

func ParseArgs() string

ParseArgs ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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