Skip to content

Commit

Permalink
使用原生转换
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 20, 2024
1 parent 9bf3121 commit 5746c03
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions applicationBuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ package webapi

import (
"fmt"
"net/http"
"net/http/pprof"
"strconv"
"strings"

"github.com/farseer-go/collections"
"github.com/farseer-go/fs/configure"
"github.com/farseer-go/fs/container"
Expand All @@ -10,15 +15,11 @@ import (
"github.com/farseer-go/fs/exception"
"github.com/farseer-go/fs/flog"
"github.com/farseer-go/fs/modules"
"github.com/farseer-go/fs/parse"
"github.com/farseer-go/webapi/context"
"github.com/farseer-go/webapi/controller"
"github.com/farseer-go/webapi/middleware"
"github.com/farseer-go/webapi/minimal"
"github.com/farseer-go/webapi/websocket"
"net/http"
"net/http/pprof"
"strings"
)

type applicationBuilder struct {
Expand Down Expand Up @@ -240,7 +241,7 @@ func (r *applicationBuilder) print() {
if method == "" {
method = "GET"
}
fmt.Printf("%s:%s %s%s\n", flog.Blue(parse.ToString(index+1)), flog.Red(method), r.hostAddress, httpRoute.RouteUrl)
fmt.Printf("%s:%s %s%s\n", flog.Blue(strconv.Itoa(index+1)), flog.Red(method), r.hostAddress, httpRoute.RouteUrl)
})
fmt.Println("---------------------------------------")
}
Expand Down

0 comments on commit 5746c03

Please sign in to comment.