From 1eb924b3642fd4ac2e12ace01802e27e8063826f Mon Sep 17 00:00:00 2001 From: xgfone Date: Thu, 14 May 2020 23:18:38 +0800 Subject: [PATCH] update the module version to v5 --- README.md | 19 +++++++++---------- field/field.go | 2 +- go.mod | 2 +- struct_test.go | 4 ++-- 4 files changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 9d12b3a..8c919f3 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,10 @@ # gconf [![Build Status](https://travis-ci.org/xgfone/gconf.svg?branch=master)](https://travis-ci.org/xgfone/gconf) [![GoDoc](https://godoc.org/github.com/xgfone/gconf?status.svg)](http://godoc.org/github.com/xgfone/gconf) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](https://raw.githubusercontent.com/xgfone/gconf/master/LICENSE) An extensible and powerful go configuration manager, which is inspired by [oslo.config](https://github.com/openstack/oslo.config), [github.com/micro/go-micro/config](https://github.com/micro/go-micro/tree/master/config) and [viper](https://github.com/spf13/viper). -The current version is `v4` to support **Semantic Import Versioning**, which requires `Go1.11+`. See [DOC](https://godoc.org/github.com/xgfone/gconf). ## Install ```shell -$ go get -u github.com/xgfone/gconf/v4 +$ go get -u github.com/xgfone/gconf/v5 ``` ### V3 @@ -60,7 +59,7 @@ import ( "flag" "fmt" - "github.com/xgfone/gconf/v4" + "github.com/xgfone/gconf/v5" ) func main() { @@ -101,7 +100,7 @@ package main import ( "fmt" - "github.com/xgfone/gconf/v4" + "github.com/xgfone/gconf/v5" ) var opts = []gconf.Opt{ @@ -140,7 +139,7 @@ import ( "fmt" "time" - "github.com/xgfone/gconf/v4" + "github.com/xgfone/gconf/v5" ) func main() { @@ -174,7 +173,7 @@ import ( "fmt" "github.com/urfave/cli/v2" - "github.com/xgfone/gconf/v4" + "github.com/xgfone/gconf/v5" ) func main() { @@ -235,7 +234,7 @@ import ( "fmt" "time" - "github.com/xgfone/gconf/v4" + "github.com/xgfone/gconf/v5" ) var opts = []gconf.Opt{ @@ -285,7 +284,7 @@ import ( "os" "time" - "github.com/xgfone/gconf/v4" + "github.com/xgfone/gconf/v5" ) type Group struct { @@ -520,8 +519,8 @@ import ( "fmt" "time" - "github.com/xgfone/gconf/v4" - "github.com/xgfone/gconf/v4/field" + "github.com/xgfone/gconf/v5" + "github.com/xgfone/gconf/v5/field" ) // AppConfig is used to configure the application. diff --git a/field/field.go b/field/field.go index c62d43f..04d6be4 100644 --- a/field/field.go +++ b/field/field.go @@ -18,7 +18,7 @@ import ( "sync" "time" - "github.com/xgfone/gconf/v4" + "github.com/xgfone/gconf/v5" ) // SafeValue is used to set and get the value safely. diff --git a/go.mod b/go.mod index 1272e2f..27f0d57 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/xgfone/gconf/v4 +module github.com/xgfone/gconf/v5 require ( github.com/BurntSushi/toml v0.3.1 diff --git a/struct_test.go b/struct_test.go index d131cdb..62d6c2f 100644 --- a/struct_test.go +++ b/struct_test.go @@ -20,8 +20,8 @@ import ( "os" "time" - "github.com/xgfone/gconf/v4" - "github.com/xgfone/gconf/v4/field" + "github.com/xgfone/gconf/v5" + "github.com/xgfone/gconf/v5/field" ) func ExampleOptField() {