Add feed description view (#12)

with colors!
This commit is contained in:
Dave Gallant
2020-07-03 23:25:48 -04:00
committed by GitHub
parent 85bf323fe8
commit afbfa53ae6
8 changed files with 99 additions and 21 deletions

View File

@@ -2,14 +2,15 @@
package file
import (
"os"
"github.com/spf13/afero"
)
// Exists returns true if a file exists
func Exists(filename string) bool {
info, err := os.Stat(filename)
if os.IsNotExist(err) {
var AppFs = afero.NewOsFs()
_, err := AppFs.Stat(filename)
if err != nil {
return false
}
return !info.IsDir()
return true
}