Reformat static_page_generater/main.go
This commit is contained in:
@@ -311,7 +311,7 @@ func parseFile(
|
||||
fileExt := ""
|
||||
|
||||
if fileExtDotIdx >= 0 {
|
||||
fileExt = name[fileExtDotIdx:len(name)]
|
||||
fileExt = name[fileExtDotIdx:]
|
||||
}
|
||||
|
||||
mimeType := getMimeTypeByExtension(fileExt)
|
||||
@@ -369,7 +369,7 @@ func parseFile(
|
||||
ContentHash: base64.StdEncoding.EncodeToString(
|
||||
getHash(content[0:contentLen])[:8]),
|
||||
CompressedHash: base64.StdEncoding.EncodeToString(
|
||||
getHash(content[contentLen:len(content)])[:8]),
|
||||
getHash(content[contentLen:])[:8]),
|
||||
Date: time.Now(),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user