实现导入Markdown

This commit is contained in:
Minho
2018-03-25 14:59:42 +08:00
parent 74df816f38
commit 6a49b8a42f
6 changed files with 210 additions and 170 deletions

View File

@@ -151,11 +151,10 @@ func AbsolutePath(p string) (string, error) {
// FileExists reports whether the named file or directory exists.
func FileExists(name string) bool {
if _, err := os.Stat(name); err != nil {
if os.IsNotExist(err) {
return false
}
return false
}else{
return true
}
return true
}
func FormatBytes(size int64) string {