Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
kratos-layout
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lizifeng
kratos-layout
Commits
f2351dfb
Commit
f2351dfb
authored
Jun 08, 2022
by
kzkzzzz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
change
parent
74df0ed8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
main.go
cmd/server/main.go
+1
-2
No files found.
cmd/server/main.go
View file @
f2351dfb
...
...
@@ -5,7 +5,6 @@ import (
"os"
"github.com/go-kratos/kratos-layout/internal/conf"
"github.com/go-kratos/kratos/v2"
"github.com/go-kratos/kratos/v2/config"
"github.com/go-kratos/kratos/v2/config/file"
"github.com/go-kratos/kratos/v2/log"
...
...
@@ -27,7 +26,7 @@ var (
)
func
init
()
{
flag
.
StringVar
(
&
flagconf
,
"conf"
,
"
../../configs
"
,
"config path, eg: -conf config.yaml"
)
flag
.
StringVar
(
&
flagconf
,
"conf"
,
""
,
"config path, eg: -conf config.yaml"
)
}
func
newApp
(
logger
log
.
Logger
,
hs
*
http
.
Server
,
gs
*
grpc
.
Server
)
*
kratos
.
App
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment