Skip to content

Commit

Permalink
Merge pull request #23 from HPInc/update-module-name
Browse files Browse the repository at this point in the history
Rename module to github.com/hpinc/go3mf
  • Loading branch information
qmuntal authored Apr 16, 2021
2 parents 23cf1cd + e6714d8 commit 0d8b1cd
Show file tree
Hide file tree
Showing 50 changed files with 95 additions and 95 deletions.
26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[![PkgGoDev](https://pkg.go.dev/badge/github.com/qmuntal/go3mf)](https://pkg.go.dev/github.com/qmuntal/go3mf)
[![Build Status](https://github.com/qmuntal/go3mf/workflows/CI/badge.svg)](https://github.com/qmuntal/go3mf/actions?query=workflow%3ACI)
[![Go Report Card](https://goreportcard.com/badge/github.com/qmuntal/go3mf)](https://goreportcard.com/report/github.com/qmuntal/go3mf)
[![codecov](https://coveralls.io/repos/github/qmuntal/go3mf/badge.svg)](https://coveralls.io/github/qmuntal/go3mf?branch=master)
[![codeclimate](https://codeclimate.com/github/qmuntal/go3mf/badges/gpa.svg)](https://codeclimate.com/github/qmuntal/go3mf)
[![PkgGoDev](https://pkg.go.dev/badge/github.com/hpinc/go3mf)](https://pkg.go.dev/github.com/hpinc/go3mf)
[![Build Status](https://github.com/hpinc/go3mf/workflows/CI/badge.svg)](https://github.com/hpinc/go3mf/actions?query=workflow%3ACI)
[![Go Report Card](https://goreportcard.com/badge/github.com/hpinc/go3mf)](https://goreportcard.com/report/github.com/hpinc/go3mf)
[![codecov](https://coveralls.io/repos/github/hpinc/go3mf/badge.svg)](https://coveralls.io/github/hpinc/go3mf?branch=master)
[![codeclimate](https://codeclimate.com/github/hpinc/go3mf/badges/gpa.svg)](https://codeclimate.com/github/hpinc/go3mf)
[![License](https://img.shields.io/badge/License-BSD%202--Clause-orange.svg)](https://opensource.org/licenses/BSD-2-Clause)

# go3mf
Expand Down Expand Up @@ -34,7 +34,7 @@ package main
import (
"fmt"

"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func main() {
Expand Down Expand Up @@ -67,7 +67,7 @@ import (
"fmt"
"io/ioutil"
"net/http"
"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func main() {
Expand All @@ -90,7 +90,7 @@ import (
"fmt"
"os"

"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func main() {
Expand All @@ -110,11 +110,11 @@ package main
import (
"fmt"

"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/material"
_"github.com/qmuntal/go3mf/production"
_ "github.com/qmuntal/go3mf/beamlattice"
_ "github.com/qmuntal/go3mf/slices"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/material"
_"github.com/hpinc/go3mf/production"
_ "github.com/hpinc/go3mf/beamlattice"
_ "github.com/hpinc/go3mf/slices"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion beamlattice/beamlattice.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package beamlattice

import (
"errors"
"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

// Namespace is the canonical name of this extension.
Expand Down
2 changes: 1 addition & 1 deletion beamlattice/beamlattice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"testing"

"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf/spec"
)

var _ spec.Marshaler = new(BeamLattice)
Expand Down
6 changes: 3 additions & 3 deletions beamlattice/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"encoding/xml"
"strconv"

"github.com/qmuntal/go3mf"
specerr "github.com/qmuntal/go3mf/errors"
"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf"
specerr "github.com/hpinc/go3mf/errors"
"github.com/hpinc/go3mf/spec"
)

func (Spec) DecodeAttribute(interface{}, spec.Attr) error {
Expand Down
4 changes: 2 additions & 2 deletions beamlattice/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/errors"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/errors"
)

func TestDecode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion beamlattice/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"encoding/xml"
"strconv"

"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf/spec"
)

// Marshal3MF encodes the resource.
Expand Down
2 changes: 1 addition & 1 deletion beamlattice/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func TestMarshalModel(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions beamlattice/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
package beamlattice

import (
"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/errors"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/errors"
)

func (Spec) Validate(m interface{}, path string, obj interface{}) error {
Expand Down
4 changes: 2 additions & 2 deletions beamlattice/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/errors"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/errors"
)

func TestValidate(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"sort"
"sync"

"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf/spec"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"testing"

"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf/spec"
)

var _ spec.Marshaler = new(BaseMaterials)
Expand Down
4 changes: 2 additions & 2 deletions decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"strings"
"unsafe"

specerr "github.com/qmuntal/go3mf/errors"
"github.com/qmuntal/go3mf/spec"
specerr "github.com/hpinc/go3mf/errors"
"github.com/hpinc/go3mf/spec"
)

type modelDecoder struct {
Expand Down
4 changes: 2 additions & 2 deletions encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ import (
"strconv"
"strings"

xml3mf "github.com/qmuntal/go3mf/internal/xml"
"github.com/qmuntal/go3mf/spec"
xml3mf "github.com/hpinc/go3mf/internal/xml"
"github.com/hpinc/go3mf/spec"
)

const defaultFloatPrecision = 4
Expand Down
2 changes: 1 addition & 1 deletion encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf/spec"
"github.com/stretchr/testify/mock"
)

Expand Down
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/qmuntal/go3mf
module github.com/hpinc/go3mf

require (
github.com/go-test/deep v1.0.7
Expand Down
2 changes: 1 addition & 1 deletion importer/stl/ascii.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strconv"
"strings"

"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

// asciiDecoder can create a Model from a Read stream that is feeded with a ASCII STL.
Expand Down
2 changes: 1 addition & 1 deletion importer/stl/ascii_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func Test_asciiDecoder_decode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion importer/stl/binary.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"encoding/binary"
"io"

"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

type binaryHeader struct {
Expand Down
2 changes: 1 addition & 1 deletion importer/stl/binary_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func Test_binaryDecoder_decode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion importer/stl/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"strings"
"unicode/utf8"

"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

var checkEveryFaces = 1000
Expand Down
2 changes: 1 addition & 1 deletion importer/stl/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func TestNewDecoder(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions materials/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"strconv"
"strings"

"github.com/qmuntal/go3mf"
specerr "github.com/qmuntal/go3mf/errors"
"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf"
specerr "github.com/hpinc/go3mf/errors"
"github.com/hpinc/go3mf/spec"
)

func (Spec) DecodeAttribute(interface{}, spec.Attr) error {
Expand Down
4 changes: 2 additions & 2 deletions materials/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/errors"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/errors"
)

func TestDecode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion materials/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strconv"
"strings"

"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf/spec"
)

// Marshal3MF encodes the resource.
Expand Down
2 changes: 1 addition & 1 deletion materials/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func TestMarshalModel(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion materials/materials.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"errors"
"image/color"

"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions materials/materials_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"reflect"
"testing"

"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/spec"
)

var _ go3mf.Asset = new(Texture2D)
Expand Down
4 changes: 2 additions & 2 deletions materials/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"image/color"
"strings"

"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/errors"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/errors"
)

func (Spec) Validate(model interface{}, path string, asset interface{}) error {
Expand Down
4 changes: 2 additions & 2 deletions materials/validate_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/errors"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/errors"
)

func TestValidate(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions production/decoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
package production

import (
"github.com/qmuntal/go3mf"
specerr "github.com/qmuntal/go3mf/errors"
"github.com/qmuntal/go3mf/spec"
"github.com/qmuntal/go3mf/uuid"
"github.com/hpinc/go3mf"
specerr "github.com/hpinc/go3mf/errors"
"github.com/hpinc/go3mf/spec"
"github.com/hpinc/go3mf/uuid"
)

func (Spec) CreateElementDecoder(_ interface{}, _ string) spec.ElementDecoder {
Expand Down
4 changes: 2 additions & 2 deletions production/decoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/errors"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/errors"
)

func TestDecode(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion production/encoder.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package production
import (
"encoding/xml"

"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf/spec"
)

// Marshal3MFAttr encodes the resource attributes.
Expand Down
2 changes: 1 addition & 1 deletion production/encoder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/go-test/deep"
"github.com/qmuntal/go3mf"
"github.com/hpinc/go3mf"
)

func TestMarshalModel(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions production/production.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package production
import (
"errors"

"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/uuid"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/uuid"
)

// Namespace is the canonical name of this extension.
Expand Down
4 changes: 2 additions & 2 deletions production/production_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package production
import (
"testing"

"github.com/qmuntal/go3mf"
"github.com/qmuntal/go3mf/spec"
"github.com/hpinc/go3mf"
"github.com/hpinc/go3mf/spec"
)

var _ spec.MarshalerAttr = new(BuildAttr)
Expand Down
Loading

0 comments on commit 0d8b1cd

Please sign in to comment.