mirror of
https://github.com/ebrianne/adguard-exporter.git
synced 2025-01-05 08:37:35 +01:00
Format with go fmt
This commit is contained in:
parent
f19ad68975
commit
88a0fc5cae
@ -119,5 +119,5 @@ func (c *Client) isUsingPassword() bool {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *Client) authenticateRequest(req *http.Request) {
|
func (c *Client) authenticateRequest(req *http.Request) {
|
||||||
req.Header.Add("Authorization", "Basic " + c.b64password)
|
req.Header.Add("Authorization", "Basic "+c.b64password)
|
||||||
}
|
}
|
||||||
|
4
main.go
4
main.go
@ -1,16 +1,16 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/base64"
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
"time"
|
||||||
"encoding/base64"
|
|
||||||
|
|
||||||
"github.com/ebrianne/adguard-exporter/config"
|
"github.com/ebrianne/adguard-exporter/config"
|
||||||
"github.com/ebrianne/adguard-exporter/internal/metrics"
|
|
||||||
"github.com/ebrianne/adguard-exporter/internal/adguard"
|
"github.com/ebrianne/adguard-exporter/internal/adguard"
|
||||||
|
"github.com/ebrianne/adguard-exporter/internal/metrics"
|
||||||
"github.com/ebrianne/adguard-exporter/internal/server"
|
"github.com/ebrianne/adguard-exporter/internal/server"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user