corrected typo in docs. "TIme" -> "Time"

master
Charles Iliya Krempeaux 2023-10-23 11:48:20 -07:00
parent a04e838c90
commit 2f80229834
3 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ var content strfs.Content = strfs.CreateContent(s)
var regularfile strfs.RegularFile = strfs.RegularFile{ var regularfile strfs.RegularFile = strfs.RegularFile{
FileContent: content, FileContent: content,
FileName: "helloworld.html", FileName: "helloworld.html",
FileModTIme: time.Date(2022, 12, 12, 10, 30, 14, 2, time.UTC), FileModTime: time.Date(2022, 12, 12, 10, 30, 14, 2, time.UTC),
} }
var file fs.FS = &regularfile var file fs.FS = &regularfile

View File

@ -18,7 +18,7 @@ import (
// var regularfile strfs.RegularFile = strfs.RegularFile{ // var regularfile strfs.RegularFile = strfs.RegularFile{
// FileContent: content, // FileContent: content,
// FileName: "notice.html", // FileName: "notice.html",
// FileModTIme: time.Date(2022, 12, 12, 10, 30, 14, 2, time.UTC), // FileModTime: time.Date(2022, 12, 12, 10, 30, 14, 2, time.UTC),
// } // }
type Content struct{ type Content struct{
value string value string
@ -40,7 +40,7 @@ var _ io.ReadCloser = &Content{}
// var regularfile strfs.RegularFile = strfs.RegularFile{ // var regularfile strfs.RegularFile = strfs.RegularFile{
// FileContent: content, // FileContent: content,
// FileName: "message.md", // FileName: "message.md",
// FileModTIme: time.Now(), // FileModTime: time.Now(),
// } // }
func CreateContent(value string) Content { func CreateContent(value string) Content {
var reader io.Reader = strings.NewReader(value) var reader io.Reader = strings.NewReader(value)

View File

@ -14,7 +14,7 @@ import (
// var regularfile strfs.RegularFile = strfs.RegularFile{ // var regularfile strfs.RegularFile = strfs.RegularFile{
// FileContent: content, // FileContent: content,
// FileName: "helloworld.html", // FileName: "helloworld.html",
// FileModTIme: time.Date(2022, 12, 12, 10, 30, 14, 2, time.UTC), // FileModTime: time.Date(2022, 12, 12, 10, 30, 14, 2, time.UTC),
// } // }
type RegularFile struct { type RegularFile struct {
FileContent Content FileContent Content