X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=common.go;h=e7ac21752d701e533c25f62ccba47e8e87fcce5f;hb=HEAD;hp=03ce423de3759782de89bfd6390be4785225379d;hpb=f5354dbe2f9695b15d1d807025000a44bcd56186;p=sgblog.git diff --git a/common.go b/common.go index 03ce423..e7ac217 100644 --- a/common.go +++ b/common.go @@ -1,10 +1,25 @@ +// 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.26.0" + 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 }