Skip to content

Commit

Permalink
Update secretsconfig.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gak authored Jun 16, 2024
1 parent daa4c9d commit d28d88c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/content/docs/reference/secretsconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Configuration values are named, typed values. They are managed by the `ftl confi
To declare a configuration value use the following syntax:

```go
var defaultUser = ftl.Config[string]("defaultUser")
var defaultUser = ftl.Config[Username]("defaultUser")
```

Then to retrieve a configuration value:
Expand All @@ -36,7 +36,7 @@ Secrets are encrypted, named, typed values. They are managed by the `ftl secret`
Declare a secret with the following:

```go
var apiKey = ftl.Secret[string]("apiKey")
var apiKey = ftl.Secret[Credentials]("apiKey")
```

Then to retrieve a secret value:
Expand Down

0 comments on commit d28d88c

Please sign in to comment.