Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( HeaderRunes = []rune{'人'} LeftChar = ">" RightChar = "<" )
Functions ¶
func Body ¶
Body returns the message body part of "突然の死" like message. Body adds side ornament characters and spaces in each lines.
func Footer ¶
Footer returns the footer string of "突然の死" like message based on the display width of msg.
func Header ¶
Header returns the header string of "突然の死" like message based on the display width of msg.
func MessageWidth ¶
MessageWidth is the display width of assined string msg. msg is expected to be single line; i.e. not including \r and \n. It is based on the information from Unicode. So-called Multibyte characters' width is counted as 2. Other characters' are 1. See https://godoc.org/golang.org/x/text/width for the details.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.