X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=common.go;h=e7ac21752d701e533c25f62ccba47e8e87fcce5f;hb=HEAD;hp=90adb7a75495b888ae6799b0fec7f1c5431c47b2;hpb=8e6e4d7ceab685acee5757921c6278845f559fcb;p=sgblog.git diff --git a/common.go b/common.go index 90adb7a..e7ac217 100644 --- a/common.go +++ b/common.go @@ -1,10 +1,25 @@ -// SGBlog -- Git-backed CGI/inetd blogging/phlogging engine +// SGBlog -- Git-backed CGI/UCSPI blogging/phlogging/gemlogging engine +// Copyright (C) 2020-2024 Sergey Matveev +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as +// published by the Free Software Foundation, version 3 of the License. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +// SGBlog -- Git-backed CGI/UCSPI blogging/phlogging/gemlogging engine package sgblog import ( "bytes" "fmt" - "io/ioutil" + "io" "sort" "text/scanner" @@ -15,7 +30,7 @@ import ( ) const ( - Version = "0.20.2" + Version = "0.34.0" WhenFmt = "2006-01-02 15:04:05Z07:00" ) @@ -81,7 +96,7 @@ func GetNote(repo *git.Repository, tree *object.Tree, what plumbing.Hash) []byte if err != nil { return nil } - data, err := ioutil.ReadAll(r) + data, err := io.ReadAll(r) if err != nil { return nil }