Skip to content

Commit

Permalink
Centralising data in a single repository
Browse files Browse the repository at this point in the history
  • Loading branch information
samlown committed Sep 29, 2023
1 parent 5de93db commit e70e284
Show file tree
Hide file tree
Showing 76 changed files with 15,929 additions and 15,947 deletions.
4 changes: 2 additions & 2 deletions bill/invoice_correct.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"fmt"
"strings"

"github.com/invopop/gobl/build"
"github.com/invopop/gobl/cal"
"github.com/invopop/gobl/cbc"
"github.com/invopop/gobl/data"
"github.com/invopop/gobl/head"
"github.com/invopop/gobl/schema"
"github.com/invopop/gobl/tax"
Expand Down Expand Up @@ -131,7 +131,7 @@ func (inv *Invoice) CorrectionOptionsSchema() (interface{}, error) {

// try to load the pre-generated schema, this is just way more efficient
// than trying to generate the configuration options manually.
data, err := build.Content.ReadFile("schemas/bill/correction-options.json")
data, err := data.Content.ReadFile("schemas/bill/correction-options.json")
if err != nil {
return nil, fmt.Errorf("loading schema option data: %w", err)
}
Expand Down
4 changes: 2 additions & 2 deletions build/build.go → data/build.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Package build is used to embed the generated regimes and schemas.
package build
// Package data contains both generated and embedded data.
package data

import "embed"

Expand Down
File renamed without changes.
Loading

0 comments on commit e70e284

Please sign in to comment.