proxy.golang.org : github.com/adrg/splash
Package splash allows styling terminal output. It provides a set of types and functions to facilitate coloring and styling of output text. It can be useful in CLI applications or logging libraries. The core of the package is the Property type. A property represents either a color (foreground or background) or a text attribute (bold, underline, etc.). The package also defines the Style type which is a collection of properties. Styles provide the ability to store a group of properties and reuse them when needed. Both types come with the familiar String, Sprint, Sprintf and Sprintln methods which are used the same as the ones in the fmt package. Moreover, from a programming standpoint, there is no difference between using a property and a style. Text attributes: Foreground and background colors Combining colors with text attributes Property functions Styles Format Colors Text attributes Examples
Registry
-
Source
- Documentation
- JSON
purl: pkg:golang/github.com/adrg/splash
Keywords:
background-color
, color
, colors
, console
, go
, golang
, library
, package
, shell
, splash
, terminal
, text-color
License: MIT
Latest release: over 3 years ago
First release: over 3 years ago
Namespace: github.com/adrg
Dependent repositories: 1
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 3 months ago