Skip to content

Commit

Permalink
fix: to snake
Browse files Browse the repository at this point in the history
  • Loading branch information
linyyyang committed Sep 6, 2023
1 parent 5df80de commit e2654c1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ginny/handler/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package handler

import (
"fmt"
"strings"

"github.com/fatih/structs"
"github.com/goriller/ginny-cli/ginny/options"
Expand Down Expand Up @@ -36,7 +35,7 @@ func CreateService() error {
for _, val := range v {
fmt.Printf("%s: %v,%v,%v\n", k, val.Name, val.RequestType, val.ReturnsType)
srcFile := fmt.Sprintf("%s/service/tpl.go", tmpPath)
dstFile := fmt.Sprintf("%s/internal/service/%s.go", conf.ProjectPath, strings.ToLower(val.Name))
dstFile := fmt.Sprintf("%s/internal/service/%s.go", conf.ProjectPath, strcase.ToSnake(val.Name))
if util.Exists(dstFile) {
continue
}
Expand Down

0 comments on commit e2654c1

Please sign in to comment.