Documentation ¶
Index ¶
- Variables
- func GetLooksLength(text string) int
- func MaxOfLooksLength(s ...string) int
- type AsciiArt
- type IPrintableAsciiArt
- type Writer
- func (w *Writer) SetColorful(b bool)
- func (w *Writer) SetColorfulAlways(b bool)
- func (w *Writer) SetDuration(d time.Duration)
- func (w *Writer) SetInsertEmpty(b bool)
- func (w *Writer) SetOffset(offset int)
- func (w *Writer) SetOverwrite(b bool)
- func (w *Writer) SetTimes(times int)
- func (w *Writer) Write(aa []string) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetLooksLength ¶
GetLooksLength は見た目上のテキストの長さを返す。 例:
a == 1 あ == 2 漢 == 2 b == 2
見た目上の長さを特別扱いしたい文字などが登場したらここに追加していく感じでヨロ!
func MaxOfLooksLength ¶
MaxOfLooksLength は引数に渡された文字列のうち見た目上の長さが最大なものの長さを返す
Types ¶
type IPrintableAsciiArt ¶
IPrintableAsciiArt は出力可能なアスキーアートを表す
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) SetColorful ¶
SetColorful はランダムに色付けするようにするかどうかのON/OFFを設定する
func (*Writer) SetColorfulAlways ¶
SetColorfulAlways は SetColorful に加えて パイプやリダイレクト時にも色付けを強制するかどうかのON/OFFを設定する
func (*Writer) SetDuration ¶
SetDuration は SetTimes で2回以上出力するように指定したときのインターバルを設定する
func (*Writer) SetInsertEmpty ¶
SetInsertEmpty は出力時に1行目に必ず空行を出力するかどうかのON/OFFを設定する
func (*Writer) SetOverwrite ¶
SetOverwrite は SetTimes で2回以上出力する場合に 同じ場所へ上書きするかどうかのON/OFFを設定する
Click to show internal directories.
Click to hide internal directories.