Skip to main content
Version: v0.19.5

File

The FileRetriever will read a local file to get your flags.

tip

Using a file to store your flags is not recommend, except if it is in a shared folder for all your services.

Example

err := ffclient.Init(ffclient.Config{
PollingInterval: 3 * time.Second,
Retriever: &ffclient.FileRetriever{
Path: "file-example.yaml",
},
})
defer ffclient.Close()

Configuration fields

To configure your File retriever:

FieldDescription
Pathlocation of your file on the file system.

Get the latest GO Feature Flag updates