X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;f=w.go;h=63baaedad6f3afa0606ae7a7a70fed136b308b6a;hb=88188862917fb5f831158bf4a8ce30b62f87e370;hp=fd71e189b2db45da2a5b950dcc5524b6ffcbdca6;hpb=29baa531948de1a2478a47d04bbab14012dc4c15;p=gorecfile.git diff --git a/w.go b/w.go index fd71e18..63baaed 100644 --- a/w.go +++ b/w.go @@ -1,6 +1,6 @@ /* recfile -- GNU recutils'es recfiles parser on pure Go -Copyright (C) 2020 Sergey Matveev +Copyright (C) 2020-2021 Sergey Matveev This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -15,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program. If not, see . */ -// GNU recutils'es recfiles parser on pure Go package recfile import ( @@ -31,7 +30,7 @@ func NewWriter(w io.StringWriter) *Writer { return &Writer{w} } -func (w *Writer) RecordStart(fs ...Field) (written int, err error) { +func (w *Writer) RecordStart() (written int, err error) { return w.w.WriteString("\n") }