Repository: open-feature/go-sdk
Pull request #66 (2022-09-16 09:14:22)

feat!: rename module to go-sdk
Signed-off-by: Skye Gill <gill.skye95@gmail.com>


Patch:
diff --git a/README.md b/README.md
index fc1f19e..532f7d3 100644
--- a/README.md
+++ b/README.md
@@ -1,29 +1,29 @@
-# OpenFeature SDK for Golang
+# OpenFeature SDK for Go
 
 [![a](https://img.shields.io/badge/slack-%40cncf%2Fopenfeature-brightgreen?style=flat&logo=slack)](https://cloud-native.slack.com/archives/C0344AANLA1)
-[![Go Report Card](https://goreportcard.com/badge/github.com/open-feature/golang-sdk)](https://goreportcard.com/report/github.com/open-feature/golang-sdk)
-[![codecov](https://codecov.io/gh/open-feature/golang-sdk/branch/main/graph/badge.svg?token=FZ17BHNSU5)](https://codecov.io/gh/open-feature/golang-sdk)
+[![Go Report Card](https://goreportcard.com/badge/github.com/open-feature/go-sdk)](https://goreportcard.com/report/github.com/open-feature/go-sdk)
+[![codecov](https://codecov.io/gh/open-feature/go-sdk/branch/main/graph/badge.svg?token=FZ17BHNSU5)](https://codecov.io/gh/open-feature/go-sdk)
 [![Specification](https://img.shields.io/static/v1?label=Specification&message=v0.4.0&color=yellow)](https://github.com/open-feature/spec/tree/v0.4.0)
 
-This is the Golang implementation of [OpenFeature](https://openfeature.dev), a vendor-agnostic abstraction library for evaluating feature flags.
+This is the Go implementation of [OpenFeature](https://openfeature.dev), a vendor-agnostic abstraction library for evaluating feature flags.
 
 We support multiple data types for flags (floats, integers, strings, booleans, objects) as well as hooks, which can alter the lifecycle of a flag evaluation.
 
 ## Installation
 
 ```shell
-go get github.com/open-feature/golang-sdk
+go get github.com/open-feature/go-sdk
 ```
 
 ## Usage
 
 To configure the sdk you'll need to add a provider to the `openfeature` global singleton. From there, you can generate a `Client` which is usable by your code.
 While you'll likely want a provider for your specific backend, we've provided a `NoopProvider`, which simply returns the default passed in.
-```golang
+```go
 package main
 
 import (
-	"github.com/open-feature/golang-sdk/pkg/openfeature"
+	"github.com/open-feature/go-sdk/pkg/openfeature"
 )
 
 func main() {
@@ -98,8 +98,8 @@ We are also present in the `#openfeature` channel in the [CNCF slack](https://sl
 
 Thanks so much to our contributors.
 
-<a href="https://github.com/open-feature/golang-sdk/graphs/contributors">
-  <img src="https://contrib.rocks/image?repo=open-feature/golang-sdk" />
+<a href="https://github.com/open-feature/go-sdk/graphs/contributors">
+  <img src="https://contrib.rocks/image?repo=open-feature/go-sdk" />
 </a>
 
 Made with [contrib.rocks](https://contrib.rocks).
diff --git a/go.mod b/go.mod
index b84aa89..878de32 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module github.com/open-feature/golang-sdk
+module github.com/open-feature/go-sdk
 
 go 1.17
 
diff --git a/pkg/openfeature/provider.go b/pkg/openfeature/provider.go
index f866568..2f19497 100644
--- a/pkg/openfeature/provider.go
+++ b/pkg/openfeature/provider.go
@@ -27,7 +27,7 @@ type FeatureProvider interface {
 // ResolutionDetail is a structure which contains a subset of the fields defined in the EvaluationDetail,
 // representing the result of the provider's flag resolution process
 // see https://github.com/open-feature/spec/blob/main/specification/types.md#resolution-details
-// N.B we could use generics but to support older versions of golang for now we will have type specific resolution
+// N.B we could use generics but to support older versions of go for now we will have type specific resolution
 // detail
 type ResolutionDetail struct {
 	ErrorCode string


Test patch:
diff --git a/pkg/openfeature/client_example_test.go b/pkg/openfeature/client_example_test.go
index ed1f7f5..c69e0f9 100644
--- a/pkg/openfeature/client_example_test.go
+++ b/pkg/openfeature/client_example_test.go
@@ -5,7 +5,7 @@ import (
 	"fmt"
 	"log"
 
-	"github.com/open-feature/golang-sdk/pkg/openfeature"
+	"github.com/open-feature/go-sdk/pkg/openfeature"
 )
 
 func ExampleNewClient() {
diff --git a/pkg/openfeature/noop_provider_test.go b/pkg/openfeature/noop_provider_test.go
index 04c8975..63b6e62 100644
--- a/pkg/openfeature/noop_provider_test.go
+++ b/pkg/openfeature/noop_provider_test.go
@@ -1,8 +1,9 @@
 package openfeature_test
 
 import (
-	"github.com/open-feature/golang-sdk/pkg/openfeature"
 	"testing"
+
+	"github.com/open-feature/go-sdk/pkg/openfeature"
 )
 
 func TestNoopProvider_Metadata(t *testing.T) {