strx

package
v0.1.0-alpha-5 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Err

func Err(err error) string

Err formats an error into a string which contains the full stack trace.

func NormaliseURL

func NormaliseURL(url string) string

NormaliseURL will prefix a given URL with a scheme if it is missing.

func PadLeft

func PadLeft(str, pad string, length int) string

PadLeft pads a given string to the left until the desired length has been reached.

func PadRight

func PadRight(str, pad string, length int) string

PadRight pads a given string to the right until the desired length has been reached.

Types

This section is empty.

Jump to

Keyboard shortcuts

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