util

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bool added in v0.0.3

func Bool(b bool) *bool

func CreateFile added in v0.0.3

func CreateFile(filename string) (*os.File, error)

func Exists added in v0.0.3

func Exists(p string) (bool, error)

func Int added in v0.0.3

func Int(i int) *int

func Max

func Max(a, b int) int

func Pad

func Pad(s string, length int) string

func ReadMarkdown added in v0.0.3

func ReadMarkdown(r io.Reader, frontMatter interface{}) (string, error)

func String added in v0.0.3

func String(s string) *string

func Strings added in v0.0.3

func Strings(ss []string) *[]string

func Width

func Width(s string) int

func WriteMarkdown added in v0.0.3

func WriteMarkdown(w io.Writer, md string, frontMatter interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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