File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 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)
9898```
9999
100100GO 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.
You can’t perform that action at this time.
0 commit comments