Изменение наименования пакета
This commit is contained in:
parent
94fa3d3d6e
commit
ae015603d8
|
@ -2,8 +2,7 @@ package clean
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/api/model"
|
||||||
"github.com/ekomobile/dadata/v2/api/model"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package suggest
|
package suggest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ekomobile/dadata/v2/api/model"
|
"gitea.24example.ru/spavelit/dadata/api/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package suggest
|
package suggest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ekomobile/dadata/v2/api/model"
|
"gitea.24example.ru/spavelit/dadata/api/model"
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -2,8 +2,7 @@ package suggest
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/api/model"
|
||||||
"github.com/ekomobile/dadata/v2/api/model"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Name gender values
|
// Name gender values
|
||||||
|
|
|
@ -4,10 +4,9 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client/transport"
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/ekomobile/dadata/v2/client/transport"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -5,12 +5,11 @@ import (
|
||||||
"context"
|
"context"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/api/suggest"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client/transport"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client/transport/encoder"
|
||||||
"io"
|
"io"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/ekomobile/dadata/v2/api/suggest"
|
|
||||||
"github.com/ekomobile/dadata/v2/client/transport"
|
|
||||||
"github.com/ekomobile/dadata/v2/client/transport/encoder"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func ExampleNewClient() {
|
func ExampleNewClient() {
|
||||||
|
|
|
@ -2,10 +2,9 @@ package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client/transport"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/ekomobile/dadata/v2/client/transport"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
|
@ -2,11 +2,11 @@ package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"errors"
|
"errors"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client/transport"
|
||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ekomobile/dadata/v2/client/transport"
|
|
||||||
"github.com/stretchr/testify/assert"
|
"github.com/stretchr/testify/assert"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,8 @@ package encoder
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client/transport"
|
||||||
"io"
|
"io"
|
||||||
|
|
||||||
"github.com/ekomobile/dadata/v2/client/transport"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// RawEncoderFactory is a factory for noop-encoder that just writes to transport io.Writer.
|
// RawEncoderFactory is a factory for noop-encoder that just writes to transport io.Writer.
|
||||||
|
|
11
dadata.go
11
dadata.go
|
@ -1,13 +1,12 @@
|
||||||
package dadata
|
package dadata
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"gitea.24example.ru/spavelit/dadata/api/clean"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/api/profile"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/api/stat"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/api/suggest"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client"
|
||||||
"net/url"
|
"net/url"
|
||||||
|
|
||||||
"github.com/ekomobile/dadata/v2/api/clean"
|
|
||||||
"github.com/ekomobile/dadata/v2/api/profile"
|
|
||||||
"github.com/ekomobile/dadata/v2/api/stat"
|
|
||||||
"github.com/ekomobile/dadata/v2/api/suggest"
|
|
||||||
"github.com/ekomobile/dadata/v2/client"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|
|
@ -6,15 +6,14 @@ import (
|
||||||
"bytes"
|
"bytes"
|
||||||
"context"
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/api/suggest"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client"
|
||||||
|
"gitea.24example.ru/spavelit/dadata/client/transport/encoder"
|
||||||
"net/url"
|
"net/url"
|
||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ekomobile/dadata/v2/client"
|
|
||||||
"github.com/ekomobile/dadata/v2/client/transport/encoder"
|
|
||||||
"github.com/stretchr/testify/suite"
|
"github.com/stretchr/testify/suite"
|
||||||
|
|
||||||
"github.com/ekomobile/dadata/v2/api/suggest"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type (
|
type (
|
||||||
|
|
Loading…
Reference in New Issue
Block a user