Skip to content

Commit

Permalink
chore: Use open sourced xmltree
Browse files Browse the repository at this point in the history
  • Loading branch information
djboris9 committed Apr 19, 2022
1 parent f0a6d13 commit 81d7cd7
Show file tree
Hide file tree
Showing 11 changed files with 10 additions and 342 deletions.
1 change: 1 addition & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ require (

require (
github.com/Shopify/goluago v0.0.0-20210621135517-fe0528d0b204 // indirect
github.com/djboris9/xmltree v0.0.0-20220419153310-7195f31abe9c // indirect
github.com/google/go-cmp v0.5.7 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46t
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/djboris9/xmltree v0.0.0-20220419153310-7195f31abe9c h1:CjiSCEVpooDh3Tz9ts2uLLVBRnCqztvTUW0XMCaTJb4=
github.com/djboris9/xmltree v0.0.0-20220419153310-7195f31abe9c/go.mod h1:km5TB248zqH9KjrGFnrQM9efnseM1rqpRrB+DBrhzQk=
github.com/google/go-cmp v0.5.7 h1:81/ik6ipDQS2aGcBfIN5dHDB36BwrStyeAQquSYCV4o=
github.com/google/go-cmp v0.5.7/go.mod h1:n+brtR0CgQNWTVd5ZUFpTBC8YFBDLK/h/bpaJ8/DtOE=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
Expand Down
2 changes: 1 addition & 1 deletion internal/writer/writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/djboris9/rea/internal/utils"
"github.com/djboris9/rea/pkg/document"
"github.com/djboris9/rea/pkg/engine"
"github.com/djboris9/rea/pkg/xmltree"
"github.com/djboris9/xmltree"
)

// Opens, reads and return the content.xml as XML node.
Expand Down
2 changes: 1 addition & 1 deletion pkg/bundle/bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"log"
"strings"

"github.com/djboris9/rea/pkg/xmltree"
"github.com/djboris9/xmltree"
)

type Writer struct {
Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/engine.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (

"github.com/Shopify/go-lua"
"github.com/djboris9/rea/internal/safelua"
"github.com/djboris9/rea/pkg/xmltree"
"github.com/djboris9/xmltree"
"golang.org/x/exp/slices"

goluagoUtil "github.com/Shopify/goluago/util"
Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/engine_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/djboris9/rea/pkg/xmltree"
"github.com/djboris9/xmltree"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
)
Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/luatree.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"sync"

"github.com/djboris9/rea/internal/utils"
"github.com/djboris9/rea/pkg/xmltree"
"github.com/djboris9/xmltree"
)

var ErrLuaTree = errors.New("luaTreeErr")
Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/luatree_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/xml"
"testing"

"github.com/djboris9/rea/pkg/xmltree"
"github.com/djboris9/xmltree"
"github.com/google/go-cmp/cmp"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/engine/marshaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

"github.com/djboris9/rea/pkg/xmltree"
"github.com/djboris9/xmltree"
"github.com/google/go-cmp/cmp"
)

Expand Down
175 changes: 0 additions & 175 deletions pkg/xmltree/xmltree.go

This file was deleted.

Loading

0 comments on commit 81d7cd7

Please sign in to comment.