make function private as others

This commit is contained in:
Kirill Zhuravlev 2023-02-15 00:19:35 +01:00 committed by Avelino
parent ab3d9909a1
commit 49e5c3ed2d
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A
3 changed files with 4 additions and 4 deletions

View File

@ -68,7 +68,7 @@ func renderAll() error {
}
}
err := ConvertAndRenderIndex(readmePath, outIndexFile)
err := convertAndRenderIndex(readmePath, outIndexFile)
if err != nil {
return fmt.Errorf("unable to convert markdown to html: %w", err)
}

View File

@ -94,7 +94,7 @@ func TestSeparator(t *testing.T) {
}
func TestConvertAndRenderIndex(t *testing.T) {
err := ConvertAndRenderIndex(readmePath, outIndexFile)
err := convertAndRenderIndex(readmePath, outIndexFile)
if err != nil {
t.Errorf("html generate error '%s'", err.Error())
}

View File

@ -8,8 +8,8 @@ import (
"github.com/avelino/awesome-go/pkg/markdown"
)
// ConvertAndRenderIndex generate site html (index.html) from markdown file
func ConvertAndRenderIndex(srcFilename, outFilename string) error {
// convertAndRenderIndex generate site html (index.html) from markdown file
func convertAndRenderIndex(srcFilename, outFilename string) error {
input, err := os.ReadFile(srcFilename)
if err != nil {
return err