File tree 1 file changed +15
-5
lines changed
1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -98,12 +98,22 @@ let result = client.getBooleanValue(key: "my-flag", defaultValue: false)
98
98
```
99
99
100
100
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 )
106
110
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
+ ```
107
117
108
118
> [! NOTE]
109
119
> If you add a new flag in GO Feature Flag, expect some delay before having it available for the provider.
You can’t perform that action at this time.
0 commit comments