Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Difference ¶
Difference returns the difference of slice and slice2
func GetMessage ¶
GetMessage retrieves a message tag and returns a random message chose from res/datasets/messages.json
Types ¶
type Message ¶
Message contains the message's tag and its contained matched sentences
func GetMessageByTag ¶
GetMessageByTag returns a message found by the given tag and locale
func GetMessages ¶
GetMessages returns the cached messages for the given locale
func SerializeMessages ¶
SerializeMessages serializes the content of `res/datasets/messages.json` in JSON
Click to show internal directories.
Click to hide internal directories.