diff --git a/golang/ChangeLog.txt b/golang/ChangeLog.txt index e69de29b..a4418112 100644 --- a/golang/ChangeLog.txt +++ b/golang/ChangeLog.txt @@ -0,0 +1,2 @@ +2020-02-11 Version: v0.0.1 +- Tea Util for Go SDK. \ No newline at end of file diff --git a/golang/service/service.go b/golang/service/service.go index f1e63fbb..edde870d 100644 --- a/golang/service/service.go +++ b/golang/service/service.go @@ -82,7 +82,7 @@ func Empty(val string) bool { return val == "" } -func Equal(val1, val2 string) bool { +func EqualString(val1, val2 string) bool { return val1 == val2 } diff --git a/golang/service/service_test.go b/golang/service/service_test.go index fa5d4acb..eb14f3c9 100644 --- a/golang/service/service_test.go +++ b/golang/service/service_test.go @@ -59,11 +59,11 @@ func Test_Empty(t *testing.T) { utils.AssertEqual(t, false, ok) } -func Test_Equal(t *testing.T) { - ok := Equal("v1", "v1") +func Test_EqualString(t *testing.T) { + ok := EqualString("v1", "v1") utils.AssertEqual(t, true, ok) - ok = Equal("v1", "v2") + ok = EqualString("v1", "v2") utils.AssertEqual(t, false, ok) }