util

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 Max

func Max(a, b int) int

func Pad

func Pad(s string, length int) string

func Ptr added in v0.1.0

func Ptr[T any](t T) *T

func ReadMarkdown added in v0.0.3

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

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

type Version added in v0.0.4

type Version string

func (Version) Newer added in v0.0.4

func (v Version) Newer(r Version) bool

Jump to

Keyboard shortcuts

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