From ee09f57192c7828ffa185050edfb45d506317c89 Mon Sep 17 00:00:00 2001 From: Vasiliy Tolstov Date: Mon, 21 Jun 2021 16:21:27 +0300 Subject: [PATCH] update Signed-off-by: Vasiliy Tolstov --- flag.go | 7 +++++-- go.mod | 2 +- go.sum | 4 ++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/flag.go b/flag.go index 2cb4d77..d0f6c65 100644 --- a/flag.go +++ b/flag.go @@ -100,12 +100,15 @@ func (c *flagConfig) Init(opts ...config.Option) error { return nil } -func (c *flagConfig) Load(ctx context.Context) error { +func (c *flagConfig) Load(ctx context.Context, opts ...config.LoadOption) error { + options := config.NewLoadOptions(opts...) + _ = options + // TODO: allow merge, append and so flag.Parse() return nil } -func (c *flagConfig) Save(ctx context.Context) error { +func (c *flagConfig) Save(ctx context.Context, opts ...config.SaveOption) error { return nil } diff --git a/go.mod b/go.mod index f56cadf..d754752 100644 --- a/go.mod +++ b/go.mod @@ -2,4 +2,4 @@ module github.com/unistack-org/micro-config-flag/v3 go 1.16 -require github.com/unistack-org/micro/v3 v3.3.23 +require github.com/unistack-org/micro/v3 v3.4.0 diff --git a/go.sum b/go.sum index 0669248..3e10b38 100644 --- a/go.sum +++ b/go.sum @@ -5,8 +5,8 @@ github.com/imdario/mergo v0.3.12 h1:b6R2BslTbIEToALKP7LxUvijTsNI9TAe80pLWN2g/HU= github.com/imdario/mergo v0.3.12/go.mod h1:jmQim1M+e3UYxmgPu/WyfjB3N3VflVyUjjjwH0dnCYA= github.com/patrickmn/go-cache v2.1.0+incompatible/go.mod h1:3Qf8kWWT7OJRJbdiICTKqZju1ZixQ/KpMGzzAfe6+WQ= github.com/silas/dag v0.0.0-20210121180416-41cf55125c34/go.mod h1:7RTUFBdIRC9nZ7/3RyRNH1bdqIShrDejd1YbLwgPS+I= -github.com/unistack-org/micro/v3 v3.3.23 h1:iQtvVF4p+HPtWgm/zPt7+gN78EQMf1rHSMppxYlbRHQ= -github.com/unistack-org/micro/v3 v3.3.23/go.mod h1:LXmPfbJnJNvL0kQs8HfnkV3Wya2Wb+C7keVq++RCZnk= +github.com/unistack-org/micro/v3 v3.4.0 h1:z9F3lgAb2j4cZ1ib5qBj66JPYUAzR4sNIJqUDjVwyVQ= +github.com/unistack-org/micro/v3 v3.4.0/go.mod h1:LXmPfbJnJNvL0kQs8HfnkV3Wya2Wb+C7keVq++RCZnk= golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= golang.org/x/sys v0.0.0-20210423082822-04245dca01da/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=