Skip to content

String transform method #229

Closed
Closed
@meowgorithm

Description

It would be handy to have a method on a Style that can apply a function to a string:

s := NewStyle().Transform(strings.ToUpper);
fmt.Println(s.Render("raow")) // RAOW

With the the argument there being a func(string) string.

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions