Export WriteNodesAsString on writer interface

WriteNodesAsString is simple enough to implement but exposing it is helpful in
the implementation of extending writers and we don't aim to keep writer a small
interface so let's expose it.
This commit is contained in:
Niklas Fasching 2019-10-30 22:05:06 +01:00
parent c9d11e1556
commit 9a0a9c11eb
13 changed files with 42 additions and 41 deletions

View file

@ -9,6 +9,7 @@ type Writer interface {
String() string // String is called at the very end to retrieve the final output.
WriterWithExtensions() Writer
WriteNodesAsString(...Node) string
WriteKeyword(Keyword)
WriteInclude(Include)