utils

package
v0.2.24 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirsInDir added in v0.2.21

func DirsInDir(path string) []string

dirsInDir returns a list of directories in a directory. It includes symlinks that point to valid directories.

func Esc

func Esc(s string) string

Esc escapes a string for use in a wikifier template

func EscFmt

func EscFmt(s string) string

EscFmt escapes a string for use in wikifier formatted text

func EscLink(s string) string

EscLink is like EscFmt except also escapes pipe for [[ links ]]

func EscListMapValue

func EscListMapValue(s string) string

EscListMapValue is like EscFmt except also escapes semicolon

func EscMapKey

func EscMapKey(s string) string

EscMapKey is like EscFmt except also escapes colon and semicolon

Types

This section is empty.

Jump to

Keyboard shortcuts

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