Skip to content

Commit

Permalink
Merge pull request #11 from DavidBelicza/go-mod
Browse files Browse the repository at this point in the history
Added Go mod as a new dependency management
  • Loading branch information
DavidBelicza authored Apr 13, 2021
2 parents 7df4378 + d3879d8 commit ed47233
Show file tree
Hide file tree
Showing 31 changed files with 25 additions and 5,550 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
/pkg
/bin
/install.sh
/vendor
15 changes: 2 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,10 @@
language: go
sudo: false

os:
- linux
- osx

matrix:
include:
- go: "1.8"
- go: "1.9"
- go: "1.10"
- go: "1.11"

before_install:
- go get github.com/mattn/goveralls
- go: "1.15"

script:
- go get -t -v ./...
- go mod vendor
- go test ./...
- $GOPATH/bin/goveralls -service=travis-ci
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
FROM golang:1.8
FROM golang:1.15
MAINTAINER David Belicza

ADD ./ /go/src/github.com/DavidBelicza/TextRank

WORKDIR /go/src/github.com/DavidBelicza/TextRank

CMD go get github.com/golang/dep/cmd/dep
CMD dep ensure
CMD /bin/bash
CMD go mod vendor
CMD /bin/bash
27 changes: 0 additions & 27 deletions Gopkg.lock

This file was deleted.

34 changes: 0 additions & 34 deletions Gopkg.toml

This file was deleted.

8 changes: 2 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,6 @@ This source code is an implementation of textrank algorithm, under MIT licence.

If there was a program what could rank book size text's words, phrases and sentences continuously on multiple threads and it would be opened to modifing by objects, written in a simple, secure, static language and if it would be very well documented... Now, here it is.

## DEMO

The following link *Recona* is a simple, pre-programmed a.i. what uses this library to ranking raw texts. It visualizes how ranking works and it represents how it could be used for different purposes: **[Recona.app](https://recona.app)**

## FEATURES

* Find the most important phrases.
Expand All @@ -59,9 +55,9 @@ You can install TextRank by Go's get:

```go get github.com/DavidBelicza/TextRank```

TextRank uses the DEP as vendoring tool, so the required dependencies are versioned under the **vendor** folder. The exact version number defined in the Gopkg.toml. If you want to reinstall the dependencies, use the DEP functions: flush the vendor folder and run:
TextRank uses the default Go *mod* as vendoring tool, so you can install the dependencies with this command:

```dep ensure```
```go mod vendor```

## DOCKER

Expand Down
9 changes: 9 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module github.com/DavidBelicza/TextRank

go 1.15

require (
github.com/davecgh/go-spew v1.1.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/stretchr/testify v1.2.1
)
6 changes: 6 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/testify v1.2.1 h1:52QO5WkIUcHGIR7EnGagH88x1bUzqGXTC5/1bDTUQ7U=
github.com/stretchr/testify v1.2.1/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
5 changes: 2 additions & 3 deletions install.example.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash

export GOPATH=/home/user/GolandProjects/idea-project-root

~/go/bin/dep ensure
go mod vendor
go test ./...
15 changes: 0 additions & 15 deletions vendor/github.com/davecgh/go-spew/LICENSE

This file was deleted.

152 changes: 0 additions & 152 deletions vendor/github.com/davecgh/go-spew/spew/bypass.go

This file was deleted.

38 changes: 0 additions & 38 deletions vendor/github.com/davecgh/go-spew/spew/bypasssafe.go

This file was deleted.

Loading

0 comments on commit ed47233

Please sign in to comment.