Skip to content

Nested styles? #35

Open
Open
@jwalton

Description

@jwalton

The README.md claims this supports nested styles, but I didn't see any examples. I tried:

	colorful := termenv.String("colorful").Foreground(termenv.ANSIRed)
	hello := termenv.String("Hello", colorful.String(), "world").Foreground(termenv.ANSIBlue).String()
	fmt.Println(hello)

But this printed something blue then red then white, instead of the expected blue then red then blue.

(BTW - slick library. I wish I'd found this before I ported all of chalk to go. :P)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions