Skip to content

Commit 9e31cd0

Browse files
Merge pull request #100 from marctc/rename_module
Rename module name and imports
2 parents 2de8370 + 97c7b47 commit 9e31cd0

File tree

5 files changed

+15
-13
lines changed

5 files changed

+15
-13
lines changed

exporter/structs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package exporter
33
import (
44
"net/http"
55

6-
"github.com/infinityworks/github-exporter/config"
6+
"github.com/githubexporter/github-exporter/config"
77
"github.com/prometheus/client_golang/prometheus"
88
)
99

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/infinityworks/github-exporter
1+
module github.com/githubexporter/github-exporter
22

33
go 1.19
44

http/server.go

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
package http
22

33
import (
4-
"github.com/infinityworks/github-exporter/exporter"
5-
"github.com/prometheus/client_golang/prometheus"
6-
"github.com/prometheus/client_golang/prometheus/promhttp"
74
"log"
85
"net/http"
6+
7+
"github.com/githubexporter/github-exporter/exporter"
8+
"github.com/prometheus/client_golang/prometheus"
9+
"github.com/prometheus/client_golang/prometheus/promhttp"
910
)
1011

1112
type Server struct {

main.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
package main
22

33
import (
4-
conf "github.com/infinityworks/github-exporter/config"
5-
"github.com/infinityworks/github-exporter/exporter"
6-
"github.com/infinityworks/github-exporter/http"
4+
conf "github.com/githubexporter/github-exporter/config"
5+
"github.com/githubexporter/github-exporter/exporter"
6+
"github.com/githubexporter/github-exporter/http"
77
"github.com/infinityworks/go-common/logger"
88
"github.com/prometheus/client_golang/prometheus"
99
"github.com/sirupsen/logrus"

test/github_exporter_test.go

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ package test
22

33
import (
44
"fmt"
5-
"github.com/infinityworks/github-exporter/config"
6-
"github.com/infinityworks/github-exporter/exporter"
7-
web "github.com/infinityworks/github-exporter/http"
8-
"github.com/prometheus/client_golang/prometheus"
9-
"github.com/steinfletcher/apitest"
105
"io/ioutil"
116
"net/http"
127
"os"
138
"strings"
149
"testing"
10+
11+
"github.com/githubexporter/github-exporter/config"
12+
"github.com/githubexporter/github-exporter/exporter"
13+
web "github.com/githubexporter/github-exporter/http"
14+
"github.com/prometheus/client_golang/prometheus"
15+
"github.com/steinfletcher/apitest"
1516
)
1617

1718
func TestHomepage(t *testing.T) {

0 commit comments

Comments
 (0)