Skip to content

Commit

Permalink
update to v3 path to work as library, make convert internal
Browse files Browse the repository at this point in the history
  • Loading branch information
tedpearson committed Jan 8, 2023
1 parent ce694d4 commit 62544b2
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/tedpearson/ForecastMetrics
module github.com/tedpearson/ForecastMetrics/v3

go 1.19

Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ import (
"github.com/pkg/errors"
"github.com/spf13/viper"

myhttp "github.com/tedpearson/ForecastMetrics/http"
"github.com/tedpearson/ForecastMetrics/source"
"github.com/tedpearson/ForecastMetrics/weather"
myhttp "github.com/tedpearson/ForecastMetrics/v3/http"
"github.com/tedpearson/ForecastMetrics/v3/source"
"github.com/tedpearson/ForecastMetrics/v3/weather"
)

var (
Expand Down
7 changes: 4 additions & 3 deletions source/nws.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ import (
"github.com/cenkalti/backoff/v3"
"github.com/pkg/errors"
"github.com/rickb777/date/period"
"github.com/tedpearson/ForecastMetrics/convert"
"github.com/tedpearson/ForecastMetrics/http"
"github.com/tedpearson/ForecastMetrics/weather"

"github.com/tedpearson/ForecastMetrics/v3/http"
"github.com/tedpearson/ForecastMetrics/v3/internal/convert"
"github.com/tedpearson/ForecastMetrics/v3/weather"
)

type NWS struct {
Expand Down
7 changes: 4 additions & 3 deletions source/visualcrossing.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ import (

"github.com/cenkalti/backoff/v3"
"github.com/pkg/errors"
"github.com/tedpearson/ForecastMetrics/convert"
"github.com/tedpearson/ForecastMetrics/http"
"github.com/tedpearson/ForecastMetrics/weather"

"github.com/tedpearson/ForecastMetrics/v3/http"
"github.com/tedpearson/ForecastMetrics/v3/internal/convert"
"github.com/tedpearson/ForecastMetrics/v3/weather"
)

type VisualCrossing struct {
Expand Down
2 changes: 1 addition & 1 deletion weather/forecast.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"github.com/iancoleman/strcase"
"github.com/influxdata/influxdb-client-go/v2/api/write"

"github.com/tedpearson/ForecastMetrics/http"
"github.com/tedpearson/ForecastMetrics/v3/http"
)

type WriteOptions struct {
Expand Down

0 comments on commit 62544b2

Please sign in to comment.