utils

package
v2.0.0-rc04 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PgmName = "mdrip"
	Version = "v2.0.0-rc02"
)

Variables

This section is empty.

Functions

func Check

func Check(msg string, err error)

Check reports the error fatally if it's non-nil.

func DropLeadingNumbers

func DropLeadingNumbers(s string) string

DropLeadingNumbers drops leading numbers and underscores.

func SampleString

func SampleString(incoming string, max int) string

SampleString converts a long multi-line string to a short one-line sample.

func Spaces

func Spaces(n int) string

Spaces returns a string of length n with only spaces.

func Summarize

func Summarize(c []byte) string

Summarize is better than SampleString?

Types

This section is empty.

Jump to

Keyboard shortcuts

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