Logo
Explore Help
Register Sign In
zlei6/go-zero
1
0
Fork 0
You've already forked go-zero
mirror of https://github.com/zeromicro/go-zero.git synced 2026-05-25 23:58:21 +08:00
Code Issues Packages Projects Releases Wiki Activity
Files
1e1cc1a0d92fa0a1db88b553a98bd7a45653c7ea
go-zero/tools/goctl/model/sql/util/slice.go

14 lines
255 B
Go
Raw Normal View History

feature model interface (#222) * make variable declaration more concise * add model interface * optimize interface methods * fix: go test failed * warp returns * optimize
2020-11-24 22:36:23 +08:00
package util
Code optimized (#523) * optimized markdown generator * optimized markdown generator * optimized markdown generator * add more comment * add comment * add comment * add comments for rpc tool * add comments for model tool * add comments for model tool * add comments for model tool * add comments for config tool * add comments for config tool * add comments * add comments * add comments * add comments * add comment * remove rpc main head info * add comment * optimized Co-authored-by: anqiansong <anqiansong@xiaoheiban.cn>
2021-02-26 16:11:47 +08:00
// TrimStringSlice returns a copy slice without empty string item
feature model interface (#222) * make variable declaration more concise * add model interface * optimize interface methods * fix: go test failed * warp returns * optimize
2020-11-24 22:36:23 +08:00
func TrimStringSlice(list []string) []string {
var out []string
for _, item := range list {
if len(item) == 0 {
continue
}
out = append(out, item)
}
return out
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 1074ms Template: 41ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API