From 11b0a4d4395fac0154383f35bcaae543ed5b0c0f Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sun, 24 Dec 2023 11:42:24 +0100 Subject: [PATCH] Format code --- providers/internetbs.go | 8 ++++---- providers/opensrs.go | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/providers/internetbs.go b/providers/internetbs.go index 95b0eca..e39bb65 100644 --- a/providers/internetbs.go +++ b/providers/internetbs.go @@ -29,14 +29,14 @@ import ( ) type InternetbsAPI struct { - ApiKey string `json:"apikey,omitempty" happydomain:"label=API Key,placeholder=xxxxxxxx,required,description=Your API key."` - Password string `json:"password,omitempty" happydomain:"label=Password,placeholder=xxxxxxxx,required,description=Your account password."` + ApiKey string `json:"apikey,omitempty" happydomain:"label=API Key,placeholder=xxxxxxxx,required,description=Your API key."` + Password string `json:"password,omitempty" happydomain:"label=Password,placeholder=xxxxxxxx,required,description=Your account password."` } func (s *InternetbsAPI) NewDNSServiceProvider() (providers.DNSServiceProvider, error) { config := map[string]string{ - "api-key": s.ApiKey, - "password": s.Password, + "api-key": s.ApiKey, + "password": s.Password, } return providers.CreateDNSProvider(s.DNSControlName(), config, nil) } diff --git a/providers/opensrs.go b/providers/opensrs.go index 0f6e3a7..8f203ab 100644 --- a/providers/opensrs.go +++ b/providers/opensrs.go @@ -29,16 +29,16 @@ import ( ) type OpensrsAPI struct { - ApiKey string `json:"apiKey,omitempty" happydomain:"label=API key,placeholder=xxxxxxxx,required,description=Your API key."` + ApiKey string `json:"apiKey,omitempty" happydomain:"label=API key,placeholder=xxxxxxxx,required,description=Your API key."` Username string `json:"username,omitempty" happydomain:"label=Username,placeholder=xxxxxxxx,required,description=Your username."` - BaseUrl string `json:"base_url,omitempty" happydomain:"label=Base URL,placeholder=xxxxxxxx,description=Alternate base URL."` + BaseUrl string `json:"base_url,omitempty" happydomain:"label=Base URL,placeholder=xxxxxxxx,description=Alternate base URL."` } func (s *OpensrsAPI) NewDNSServiceProvider() (providers.DNSServiceProvider, error) { config := map[string]string{ - "apikey": s.ApiKey, + "apikey": s.ApiKey, "username": s.Username, - "baseurl": s.BaseUrl, + "baseurl": s.BaseUrl, } return providers.CreateDNSProvider(s.DNSControlName(), config, nil) }