util

package
v0.0.0-...-d16d342 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvoidKeywords

func AvoidKeywords(name string) string

func JoinPairs

func JoinPairs[T1, T2 any](seq iter.Seq2[T1, T2], psep, sep string) string

func JoinSeq

func JoinSeq[T any](seq iter.Seq[T], sep string) string

func Lines

func Lines(r io.Reader) iter.Seq2[string, error]

func MethodName

func MethodName(prefix, tname, mname string) string

func Not

func Not[T any](f func(T) bool) func(T) bool

func Pairs

func Pairs[T any](seq iter.Seq[T]) iter.Seq2[T, T]

func ParseCPrefix

func ParseCPrefix(cprefix string) string

func ToCamelCase

func ToCamelCase(name string) string

func ToSnakeCase

func ToSnakeCase(name string) string

Types

type Set

type Set[T comparable] map[T]struct{}

func (Set[T]) AddAll

func (s Set[T]) AddAll(vals iter.Seq[T])

func (Set[T]) Contains

func (s Set[T]) Contains(v T) bool

Jump to

Keyboard shortcuts

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