type RandomResponse … type PositionalResponse … func (r RandomResponse) Random() string { … } // RandomWithExtras returns a random response from the list of responses, with the extras appended to the list of responses func (r RandomResponse) RandomWithExtras(extras []string) string { … } func (r RandomResponse) RandomWithString(insert string) string { … } func (r RandomResponse) RandomWithChoice() (string, int) { … } func (r PositionalResponse) Position(p uint8) string { … } func TruncateText(s string, max int) string { … }