diff --git a/bee.go b/bee.go index f64c163..59cfa9d 100644 --- a/bee.go +++ b/bee.go @@ -25,7 +25,7 @@ import ( "strings" ) -const version = "1.2.3" +const version = "1.2.4" type Command struct { // Run runs the command. diff --git a/g_docs.go b/g_docs.go index ab1c8b1..fa9b903 100644 --- a/g_docs.go +++ b/g_docs.go @@ -333,12 +333,12 @@ func isSystemPackage(pkgpath string) bool { if utils.FileExists(wg) { return true } - - //TODO(zh):support go1.4 - wg, _ = filepath.EvalSymlinks(filepath.Join(goroot, "src", pkgpath)) - if utils.FileExists(wg) { - return true - } + + //TODO(zh):support go1.4 + wg, _ = filepath.EvalSymlinks(filepath.Join(goroot, "src", pkgpath)) + if utils.FileExists(wg) { + return true + } return false } @@ -589,6 +589,9 @@ func getModel(str string) (pkgpath, objectname string, m swagger.Model, realType if desc := stag.Get("description"); desc != "" { mp.Description = desc } + if ignore := stag.Get("ignore"); ignore != "" { + continue + } } m.Properties[name] = mp }