aocstrings

package
v0.0.0-...-bc1935d Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Lines

func Lines(input string) []string

Lines of the string.

func MustAtoi

func MustAtoi(s string) int

func PadLeft

func PadLeft(s string, n int, c rune) string

func PadRight

func PadRight(s string, n int, c rune) string

func Paragraphs

func Paragraphs(input string) []string

Paragrahs of the string.

func Reverse

func Reverse(s string) string

func RuneGrid

func RuneGrid(s string) [][]rune

func Set

func Set(s string, i int, r rune) string

Set rune `i` of string `s` to `r`.

func SpaceSeparatedInts

func SpaceSeparatedInts(s string) []int

func TryTrimPrefix

func TryTrimPrefix(s string, prefix string) (string, bool)

func TryTrimSuffix

func TryTrimSuffix(s string, suffix string) (string, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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