MCPcopy
hub / github.com/pterm/pterm / NewStyle

Function NewStyle

color.go:260–266  ·  view source on GitHub ↗

NewStyle returns a new Style. Accepts multiple colors.

(colors ...Color)

Source from the content-addressed store, hash-verified

258// NewStyle returns a new Style.
259// Accepts multiple colors.
260func NewStyle(colors ...Color) *Style {
261 ret := Style{}
262 for _, c := range colors {
263 ret = append(ret, c)
264 }
265 return &ret
266}
267
268// Add styles to the current Style.
269func (s Style) Add(styles ...Style) Style {

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…