Skip to content

Commit e35bcd3

Browse files
committed
Fix config mapstructure tag (#98)
Config tags were wrong. The correct form is `mapstructure`. This tag is used to support all the file extension known by viper. (we use json and yaml)
1 parent eebe806 commit e35bcd3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: internal/config/credentials.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ func SetEmptyCredentials(settings *viper.Viper) {
5050

5151
// Credentials contains the parameters of Arduino IoT Cloud credentials.
5252
type Credentials struct {
53-
Client string `map-structure:"client"` // Client ID of the user
54-
Secret string `map-structure:"secret"` // Secret ID of the user, unique for each Client ID
53+
Client string `mapstructure:"client"` // Client ID of the user
54+
Secret string `mapstructure:"secret"` // Secret ID of the user, unique for each Client ID
5555
}
5656

5757
// Validate the credentials.

0 commit comments

Comments
 (0)