Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrNoImplement is error "no implementation" ErrNoImplement = errors.New("no implementation") )
Functions ¶
Types ¶
type CharEncode ¶ added in v0.1.7
type CharEncode int
CharEncode is type of character encoding
const ( //CharUnknown is unknown character CharUnknown CharEncode = iota //CharUTF8 is UTF-8 CharUTF8 //CharISO8859_1 is ISO-8859-1 CharISO8859_1 //CharShiftJIS is Shift-JIS CharShiftJIS //CharEUCJP is EUC-JP CharEUCJP //CharISO2022JP is ISO-2022-JP CharISO2022JP )
func DetectCharEncode ¶ added in v0.1.7
func DetectCharEncode(body []byte) CharEncode
DetectCharEncode returns character encoding
func TypeofCharEncode ¶ added in v0.1.7
func TypeofCharEncode(s string) CharEncode
TypeofCharEncode returns CharEncode from string
func (CharEncode) String ¶ added in v0.1.7
func (e CharEncode) String() string
type Link ¶
type Link struct {
URL string `json:"url,omitempty"`
Location string `json:"location,omitempty"`
Title string `json:"title,omitempty"`
Description string `json:"description,omitempty"`
}
Link class is information of URL
func New ¶
New returns new Link instance
Example ¶
link, err := New("https://git.io/vFR5M")
if err != nil {
fmt.Println(err)
return
}
fmt.Println(link.Encode(StyleMarkdown))
Output: [GitHub - spiegel-im-spiegel/mklink: Make Link with Markdown Format](https://github.com/spiegel-im-spiegel/mklink)
Click to show internal directories.
Click to hide internal directories.
