Skip to content

Commit

Permalink
Merge 4fa1269 into 0690d3f
Browse files Browse the repository at this point in the history
  • Loading branch information
FGYFFFF authored Jul 6, 2023
2 parents 0690d3f + 4fa1269 commit 4f98240
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/hz/generator/template_funcs.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
package generator

import (
"strings"
"text/template"

"github.com/cloudwego/hertz/cmd/hz/util"
Expand All @@ -25,6 +26,8 @@ import (
var funcMap = template.FuncMap{
"GetUniqueHandlerOutDir": getUniqueHandlerOutDir,
"ToSnakeCase": util.ToSnakeCase,
"Split": strings.Split,
"Trim": strings.Trim,
}

// getUniqueHandlerOutDir uses to get unique "api.handler_path"
Expand Down

0 comments on commit 4f98240

Please sign in to comment.