Skip to content

Commit 3c95068

Browse files
Update README.md
1 parent 579fddf commit 3c95068

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

README.md

+15-5
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,22 @@ let result = client.getBooleanValue(key: "my-flag", defaultValue: false)
9898
```
9999

100100
GO Feature Flag supports different all OpenFeature supported types of feature flags, it means that you can use all the accessor directly
101-
- **Bool**: `client.getBooleanValue(key: "my-flag", defaultValue: false)`
102-
- **String**: `client.getStringValue(key: "my-flag", defaultValue: "default")`
103-
- **Integer**: `client.getIntegerValue(key: "my-flag", defaultValue: 1)`
104-
- **Double**: `client.getDoubleValue(key: "my-flag", defaultValue: 1.1)`
105-
- **Object**: `client.getObjectValue(key: "my-flag", defaultValue: Value.structure(["key":Value.integer("1234"))`
101+
```swift
102+
// Bool
103+
client.getBooleanValue(key: "my-flag", defaultValue: false)
104+
105+
// String
106+
client.getStringValue(key: "my-flag", defaultValue: "default")
107+
108+
// Integer
109+
client.getIntegerValue(key: "my-flag", defaultValue: 1)
106110

111+
// Double
112+
client.getDoubleValue(key: "my-flag", defaultValue: 1.1)
113+
114+
// Object
115+
client.getObjectValue(key: "my-flag", defaultValue: Value.structure(["key":Value.integer("1234"))
116+
```
107117

108118
> [!NOTE]
109119
> If you add a new flag in GO Feature Flag, expect some delay before having it available for the provider.

0 commit comments

Comments
 (0)