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{
FileContent: content,
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

View File

@ -18,7 +18,7 @@ import (
// var regularfile strfs.RegularFile = strfs.RegularFile{
// FileContent: content,
// 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{
value string
@ -40,7 +40,7 @@ var _ io.ReadCloser = &Content{}
// var regularfile strfs.RegularFile = strfs.RegularFile{
// FileContent: content,
// FileName: "message.md",
// FileModTIme: time.Now(),
// FileModTime: time.Now(),
// }
func CreateContent(value string) Content {
var reader io.Reader = strings.NewReader(value)

View File

@ -14,7 +14,7 @@ import (
// var regularfile strfs.RegularFile = strfs.RegularFile{
// FileContent: content,
// 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 {
FileContent Content