Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
ichunt-micro-v2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5378ccd7
authored
Jan 12, 2021
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
up
parent
3e333a7d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
main.go
main.go
View file @
5378ccd7
...
...
@@ -15,10 +15,7 @@ import (
"syscall"
"time"
)
var
(
config
=
flag
.
String
(
"config"
,
"./conf/dev/"
,
"input config file like ./conf/dev/"
)
)
var
config
string
func
registryEtcd
(){
//初始化注册中心 注册etcd 服务中心
...
...
@@ -41,11 +38,13 @@ func registryEtcd(){
func
main
(){
if
*
config
==
""
{
flag
.
StringVar
(
&
config
,
"config"
,
"./conf/dev"
,
"配置文件"
)
flag
.
Parse
()
if
config
==
""
{
flag
.
Usage
()
os
.
Exit
(
1
)
}
lib
.
InitModule
(
*
config
)
lib
.
InitModule
(
config
)
defer
lib
.
Destroy
()
dao
.
ServiceManagerHandler
.
LoadOnce
()
...
...
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