util

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapText

func WrapText(text string, lineLength int) []string

Generated by chatgpt. In this updated implementation, the wrapText function creates a lines slice of strings instead of a single string. It appends each wrapped line to the slice using the append function. Finally, it returns the lines slice.

Types

type SortRange

type SortRange[T any] struct {
	Map map[string]T
}

func NewSortRange

func NewSortRange[T any](_map map[string]T) SortRange[T]

func (SortRange[T]) Iter

func (r SortRange[T]) Iter() <-chan struct {
	Key   string
	Value T
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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