// Text sets the value for optional text parameter
170161
func (c *ChatMeMessageCall) Text(text string) *ChatMeMessageCall {
	c.text = text
	return c
}
1225587
func (i LineCap) String() string {
	switch i {
	case LineCapButt:
		return "LineCapButt"
	case LineCapRound:
		return "LineCapRound"
	case LineCapSquare:
		return "LineCapSquare"
	default:
		return fmt.Sprintf("LineCap(%d)", i)
	}
}
699726
func (s *SSMLMessageType) SetText(v string) *SSMLMessageType {
	s.Text = &v
	return s
}
857373
func (m *Message) String() string {
	return "\nCommand:" + m.Command +
		"\nHeaders:" + m.Headers.String() +
		HexData(m.Body)
}
1059187
func Text(expected, actual interface{}) *Result {
	exp, expErr := toText(expected)
	act, err := toText(actual)
	if err != nil {
		return &Result{err: fmt.Sprintf("[diff] actual: %s", err)}
	}
	var d *Result
	if expErr != nil {
		d = &Result{err: fmt.Sprintf("[diff] expected: %s", expErr)}
	} else {
		exp = strings.TrimSuffix(exp, "\n")
		act = strings.TrimSuffix(act, "\n")
		d = TextSlices(
			strings.SplitAfter(exp, "\n"),
			strings.SplitAfter(act, "\n"),
		)
	}
	return update(UpdateMode, expected, act, d)
}
115866
func (s *CreateCommentInput) SetText(v string) *CreateCommentInput {
	s.Text = &v
	return s
}
308638
func (r *Response) Text(text string) error {
	return r.Raw([]byte(text))
}
763199
func (d draw) Text(r Renderer, text string, x, y int, style Style) {
	style.GetTextOptions().WriteToRenderer(r)
	defer r.ResetStyle()

	r.Text(text, x, y)
}
994694
func (l Item) String() string {
	return fmt.Sprintf("%s (%q)", l.typ, l.val)
}
612295
func (it InstructionType) String() string {
	text, ok := instructionTypeText[it]
	if !ok {
		return fmt.Sprintf("InstructionType(%d)", it)
	}
	return text
}
1196961
func (vr *vectorRenderer) Text(body string, x, y int) {
	vr.c.Text(x, y, body, vr.s.GetTextOptions())
}
1298138
func (c *Input) InsertText(text string) (*gcdmessage.ChromeResponse, error) {
	var v InputInsertTextParams
	v.Text = text
	return c.InsertTextWithParams(&v)
}
596178
func nodeText(n *html.Node) string {
	var b bytes.Buffer
	writeNodeText(n, &b)
	return b.String()
}
921610
func (formatter *outputFormatter) Text(s *goquery.Selection) string {
	var buf bytes.Buffer

	// Slightly optimized vs calling Each: no single selection object created
	var f func(*html.Node)
	f = func(n *html.Node) {
		if n.Type == html.TextNode && 0 == n.DataAtom { // NB: had to add the DataAtom check to avoid printing text twice when a textual node embeds another textual node
			// Keep newlines and spaces, like jQuery
			buf.WriteString(n.Data)
		}
		if n.FirstChild != nil {
			for c := n.FirstChild; c != nil; c = c.NextSibling {
				f(c)
			}
		}
	}
	for _, n := range s.Nodes {
		f(n)
	}

	return buf.String()
}
266073
func (e *Event) Text() (string, error) {
	if e.Type != TextMessage {
		return "", errors.New("Event.Text() called on non-TextMessage event")
	}
	bts, err := ioutil.ReadAll(e)
	return string(bts), err
}
268639
func (tb *TextBuf) Text(x, y int, txt string, align int) {
	if align <= 1 {
		switch align {
		case 0:
			x -= StrLen(txt) / 2
		case 1:
			x -= StrLen(txt)
		}
		i := 0
		for _, r := range txt {
			tb.Put(x+i, y, r)
			i++
		}
	} else {
		switch align {
		case 3:
			y -= StrLen(txt) / 2
		case 2:
			x -= StrLen(txt)
		}
		i := 0
		for _, r := range txt {
			tb.Put(x, y+i, r)
			i++
		}
	}
}
727958
func (s *IndicesAnalyzeService) Text(text ...string) *IndicesAnalyzeService {
	s.request.Text = text
	return s
}