Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Commit

Permalink
switch imports back to github
Browse files Browse the repository at this point in the history
Signed-off-by: Denys Smirnov <denys@sourced.tech>
  • Loading branch information
Denys Smirnov authored and dennwc committed Apr 8, 2019
1 parent 3788acc commit 119c90d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: "{build}"
platform: x64
image: Visual Studio 2017

clone_folder: c:\gopath\src\gopkg.in\bblfsh\client-go.v3
clone_folder: c:\gopath\src\github.com\bblfsh\go-client

environment:
GOPATH: c:\gopath
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
language: go
go_import_path: gopkg.in/bblfsh/client-go.v3
go_import_path: github.com/bblfsh/go-client

env:
- BBLFSHD_VERSION=v2.9.1 BBLFSH_PYTHON_VERSION=v2.3.0
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Package configuration
PROJECT = client-go
PROJECT = go-client

# Including ci Makefile
CI_REPOSITORY ?= https://github.com/src-d/ci.git
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# client-go [![GoDoc](https://godoc.org/gopkg.in/bblfsh/client-go.v3?status.svg)](https://godoc.org/gopkg.in/bblfsh/client-go.v3) [![Build Status](https://travis-ci.org/bblfsh/client-go.svg?branch=master)](https://travis-ci.org/bblfsh/client-go) [![Build status](https://ci.appveyor.com/api/projects/status/github/bblfsh/client-go?svg=true)](https://ci.appveyor.com/project/mcuadros/client-go) [![codecov](https://codecov.io/gh/bblfsh/client-go/branch/master/graph/badge.svg)](https://codecov.io/gh/bblfsh/client-go)
# go-client [![GoDoc](https://godoc.org/github.com/bblfsh/go-client?status.svg)](https://godoc.org/github.com/bblfsh/go-client) [![Build Status](https://travis-ci.org/bblfsh/go-client.svg?branch=master)](https://travis-ci.org/bblfsh/go-client) [![Build status](https://ci.appveyor.com/api/projects/status/github/bblfsh/go-client?svg=true)](https://ci.appveyor.com/project/mcuadros/go-client) [![codecov](https://codecov.io/gh/bblfsh/go-client/branch/master/graph/badge.svg)](https://codecov.io/gh/bblfsh/go-client)

[Babelfish](https://doc.bblf.sh) Go client library provides functionality to both
connecting to the Babelfish server for parsing code
Expand All @@ -7,16 +7,16 @@ and for analysing UASTs with the functionality provided by [libuast](https://git

## Installation

The recommended way to install *client-go* is:
The recommended way to install *go-client* is:

```sh
go get -u gopkg.in/bblfsh/client-go.v3/...
go get -u github.com/bblfsh/go-client/...
```

## Example
### CLI

Although *client-go* is a library, this codebase also includes an example of `bblfsh-cli` application at [`./cmd/bblfsh-cli`](/cmd/bblfsh-cli). When [installed](#Installation), it allows to parse a single file, query it with XPath and print the resulting UAST structure immediately.
Although *go-client* is a library, this codebase also includes an example of `bblfsh-cli` application at [`./cmd/bblfsh-cli`](/cmd/bblfsh-cli). When [installed](#Installation), it allows to parse a single file, query it with XPath and print the resulting UAST structure immediately.
See `$ bblfsh-cli -h` for list of all available CLI options.

### Code
Expand All @@ -32,8 +32,8 @@ package main
import (
"fmt"

"gopkg.in/bblfsh/client-go.v3"
"gopkg.in/bblfsh/client-go.v3/tools"
"github.com/bblfsh/go-client"
"github.com/bblfsh/go-client/tools"

"gopkg.in/bblfsh/sdk.v2/uast/nodes"
"gopkg.in/bblfsh/sdk.v2/uast/yaml"
Expand Down
4 changes: 2 additions & 2 deletions cmd/bblfsh-cli/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import (

"github.com/jessevdk/go-flags"

"gopkg.in/bblfsh/client-go.v3"
"gopkg.in/bblfsh/client-go.v3/tools"
"github.com/bblfsh/go-client"
"github.com/bblfsh/go-client/tools"
"gopkg.in/bblfsh/sdk.v2/uast/nodes"
"gopkg.in/bblfsh/sdk.v2/uast/nodes/nodesproto"
"gopkg.in/bblfsh/sdk.v2/uast/yaml"
Expand Down
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Babelfish (https://doc.bblf.sh) Go client library provides functionality to
// both connect to the bblfsh daemon to parse code (obtaining an UAST as a
// result) and to analyse UASTs with the functionality provided by libuast.
package bblfsh // import "gopkg.in/bblfsh/client-go.v3"
package bblfsh // import "github.com/bblfsh/go-client"

0 comments on commit 119c90d

Please sign in to comment.