goctl add plugin support (#243)

* add plugin support

* add plugin support

* add plugin support

* add plugin support

* add plugin support

* add plugin support

* add plugin support

* add plugin support

* add plugin support

* add plugin support

* add plugin support

* remove no need

* add plugin support

* rename

* rename

* add plugin support

* refactor

* update plugin

* refactor

* refactor

* refactor

* update plugin

* newline

Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
This commit is contained in:
kingxt
2020-12-07 14:55:10 +08:00
committed by GitHub
parent 7cd0463953
commit cecd4b1b75
5 changed files with 224 additions and 1 deletions

View File

@@ -17,3 +17,12 @@ func Untitle(s string) string {
return strings.ToLower(s[:1]) + s[1:]
}
func Index(slice []string, item string) int {
for i, _ := range slice {
if slice[i] == item {
return i
}
}
return -1
}