misc

package
v2.0.0-...-4b7107c Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 3 Imported by: 0

README

Misc Utilities

Description

Just a general collection of misc. functions and tools. If it can't be solved in one .go file, it shouldn't be here. This is just simple stuff that doesn't justify its own project.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcMaxColumnWidth

func CalcMaxColumnWidth(list *[]string) (maxWidth int)

func IsStringCapitalized

func IsStringCapitalized(s string) bool

IsStringCapitalized - return bool if first character of string is capitalized

func LeftPad

func LeftPad(c rune, s string, sz int) string

LeftPad - pad the left side of string (s) with char (c) for total output size (sz) chars

func RepeatChars

func RepeatChars(s string, num int) (result string)

RepeatChars - return a string of s (string) repeated num (int) times.

func RightPad

func RightPad(c rune, s string, sz int) string

RightPad - pad the right side of string (s) with char (c) for total output size (sz) chars

Types

type NullObjectStruct

type NullObjectStruct struct{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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