From 7562f29046ee4a712fd36f13196b21047448df99 Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 15 May 2020 14:14:17 -0400 Subject: [PATCH] Use more idiomatic function name for content setter in pager --- pager/pager.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pager/pager.go b/pager/pager.go index 79170cd..a6f01e9 100644 --- a/pager/pager.go +++ b/pager/pager.go @@ -29,7 +29,7 @@ func (m Model) ScrollPercent() float64 { } // Content set the pager's text content -func (m *Model) Content(s string) { +func (m *Model) SetContent(s string) { s = strings.Replace(s, "\r\n", "\n", -1) // normalize line endings m.lines = strings.Split(s, "\n") }