]> Sergey Matveev's repositories - sgblog.git/blobdiff - cmd/sgblog-comment-add/main.go
Raised copyright years
[sgblog.git] / cmd / sgblog-comment-add / main.go
index 49c8d136476b31cceb7cb45784c690e3c8857e23..a81d53d0ee28de9b594438ade0520486a32f62a5 100644 (file)
@@ -1,6 +1,6 @@
 /*
-SGBlog -- Git-backed CGI/inetd blogging/phlogging engine
-Copyright (C) 2020-2021 Sergey Matveev <stargrave@stargrave.org>
+SGBlog -- Git-backed CGI/UCSPI blogging/phlogging/gemlogging engine
+Copyright (C) 2020-2022 Sergey Matveev <stargrave@stargrave.org>
 
 This program is free software: you can redistribute it and/or modify
 it under the terms of the GNU Affero General Public License as
@@ -15,7 +15,7 @@ You should have received a copy of the GNU Affero General Public License
 along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
 
-// Git-backed CGI/inetd blogging/phlogging engine
+// Git-backed CGI/UCSPI blogging/phlogging/gemlogging engine
 package main
 
 import (
@@ -152,8 +152,8 @@ func main() {
                log.Fatal(err)
        }
        if _, err = recfileW.WriteFields(
-               recfile.Field{"From", from},
-               recfile.Field{"Date", time.Now().UTC().Format(sgblog.WhenFmt)},
+               recfile.Field{Name: "From", Value: from},
+               recfile.Field{Name: "Date", Value: time.Now().UTC().Format(sgblog.WhenFmt)},
        ); err != nil {
                log.Fatal(err)
        }