Discover Packages
github.com/Rid/hapesay/v2
decoration
package
Version:
v2.0.21
Opens a new window with list of versions in this module.
Published: Jan 13, 2022
License: Artistic-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Index Constants Variables Functions Types type Option type Writer WithAurora(initialSeq) WithBold() WithRainbow() NewWriter(w, opts) (w) SetColorSeq(colorSeq) (w) Write(b) (w) WriteString(s)
Documentation
¶
type Option func(o *options)
Option for any writer in this package.
WithAurora writes with aurora.
WithBold writes with bold.
WithRainbow writes with rainbow.
Writer is a writer to decorates.
NewWriter creates a new writer.
SetColorSeq sets current color sequence.
Write writes bytes. which is implemented io.Writer.
If Bold is enabled in the options, the text will be written as Bold.
If both Aurora and Rainbow are enabled in the options, Aurora will take precedence.
WriteString writes string. which is implemented io.StringWriter.
See also Write.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.