Skip to content

Commit 59e67e5

Browse files
Use env
1 parent a54a3d5 commit 59e67e5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

musixmatch_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ package gomusixmatch_test
33
import (
44
"context"
55
"net/http"
6+
"os"
67
"testing"
78

89
musixmatch "github.com/milindmadhukar/go-musixmatch"
910
"github.com/milindmadhukar/go-musixmatch/params"
1011
)
1112

12-
var client = musixmatch.New("<YOUR API KEY>", http.DefaultClient)
13+
14+
var client = musixmatch.New(os.Getenv("MUSIXMATCH_API_KEY"), http.DefaultClient)
1315

1416
// INFO: Martin Garrix Musixmatch ID : 24407895
1517
// INFO: AREA21 Musixmatch ID : 50722792

0 commit comments

Comments
 (0)