Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d2b68a202 | ||
|
|
144e2ffb25 | ||
|
|
0a1c3c436e |
8
README.md
Normal file
8
README.md
Normal file
@@ -0,0 +1,8 @@
|
||||
go语言工具类
|
||||
|
||||
####
|
||||
进行安装
|
||||
~~~
|
||||
go get github.com/ayflying/utility_go
|
||||
~~~
|
||||
|
||||
@@ -91,7 +91,7 @@ func (c *cMake) Logic(name string) (err error) {
|
||||
//生成文件不覆盖
|
||||
if !gfile.Exists(filePath) {
|
||||
//fileStr := gfile.GetContents("./make/logic")
|
||||
get, _ := fs.ReadFile(ConfigFiles, "make/act")
|
||||
get, _ := fs.ReadFile(ConfigFiles, "make/logic")
|
||||
fileStr := string(get)
|
||||
fileStr = gstr.Replace(fileStr, "{package}", name)
|
||||
fileStr = gstr.Replace(fileStr, "{name}", gstr.CaseCamel(name))
|
||||
|
||||
@@ -140,7 +140,7 @@ func (s *Excel) sliceFormat(list []interface{}, Slice map[string]string) []inter
|
||||
if get, ok := v3.(string); !ok {
|
||||
//g.Log().Errorf(gctx.New(), "当前类型断言失败:%v", v3)
|
||||
parts = []string{gconv.String(v3)}
|
||||
continue
|
||||
|
||||
} else {
|
||||
for _, v := range shadiao {
|
||||
get = strings.ReplaceAll(get, v, "|")
|
||||
|
||||
Reference in New Issue
Block a user