From 493c11929ffd426081e37d6a0057529d5f020b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=85=E5=AD=90?= Date: Tue, 29 Jun 2021 14:57:15 +0800 Subject: [PATCH] fix(examples): rename config to cfg in blog (#1122) --- examples/blog/cmd/blog/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/blog/cmd/blog/main.go b/examples/blog/cmd/blog/main.go index 51e352ad6..68d982838 100644 --- a/examples/blog/cmd/blog/main.go +++ b/examples/blog/cmd/blog/main.go @@ -71,17 +71,17 @@ func main() { flag.Parse() logger := log.NewStdLogger(os.Stdout) - config := config.New( + cfg := config.New( config.WithSource( file.NewSource(flagconf), ), ) - if err := config.Load(); err != nil { + if err := cfg.Load(); err != nil { panic(err) } var bc conf.Bootstrap - if err := config.Scan(&bc); err != nil { + if err := cfg.Scan(&bc); err != nil { panic(err) } tp, err := tracerProvider(bc.Trace.Endpoint)