mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 10:55:51 +02:00
style: format go code with tab indent #605
This commit is contained in:
parent
96cff98c66
commit
598d91a417
15 changed files with 244 additions and 251 deletions
|
@ -1,12 +1,12 @@
|
|||
package nginx
|
||||
|
||||
import (
|
||||
"github.com/tufanbarisyildirim/gonginx"
|
||||
"github.com/tufanbarisyildirim/gonginx/dumper"
|
||||
"github.com/tufanbarisyildirim/gonginx/parser"
|
||||
)
|
||||
|
||||
func (c *NgxConfig) FmtCode() (fmtContent string) {
|
||||
fmtContent = gonginx.DumpConfig(c.c, gonginx.IndentedStyle)
|
||||
fmtContent = dumper.DumpConfig(c.c, dumper.IndentedStyle)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -16,6 +16,6 @@ func FmtCode(content string) (fmtContent string, err error) {
|
|||
if err != nil {
|
||||
return
|
||||
}
|
||||
fmtContent = gonginx.DumpConfig(c, gonginx.IndentedStyle)
|
||||
fmtContent = dumper.DumpConfig(c, dumper.IndentedStyle)
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue