corrected typo in docs. "TIme" -> "Time"
parent
a04e838c90
commit
2f80229834
|
@ -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 = ®ularfile
|
var file fs.FS = ®ularfile
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue