ref: beaf5db3ff7d70d5644f3d3aaab3d38284c5fede
parent: 61a02c4df8aeff4d236e2e5f206aeef06b794982
author: bep <[email protected]>
date: Sat Mar 28 17:46:02 EDT 2015
Use helpers.FilePathSeparator const
--- a/commands/new.go
+++ b/commands/new.go
@@ -93,7 +93,7 @@
var kind string
// assume the first directory is the section (kind)
- if strings.Contains(createpath[1:], string(filepath.Separator)) {
+ if strings.Contains(createpath[1:], helpers.FilePathSeparator) {
kind = helpers.GuessSection(createpath)
}