6 Commits

Author SHA1 Message Date
Raum0x2A
e078afbbe5 Merge branch 'develop' of gitlab.com:Raum0x2A/nmslib into develop 2021-05-30 08:03:19 -06:00
Raum0x2A
511331008e Minor changes 2021-05-30 08:02:55 -06:00
Raum0x2A
6fbbe0b23c Update .gitlab-ci.yml file 2021-05-26 23:31:53 +00:00
Raum0x2A
b24a16edad Update .gitlab-ci.yml 2021-05-26 23:22:26 +00:00
Raum0x2A
3588826556 minor fix 2021-05-26 15:57:04 -06:00
Raum0x2A
98d812c904 Minor changes 2021-05-26 15:49:17 -06:00
3 changed files with 34 additions and 15 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@ assets/
notes.txt
Test.png
test.png
coverage.txt

View File

@@ -1,11 +1,30 @@
# This file is a template, and might need editing before it works on your project.
image: golang:latest
include:
- template: Security/License-Scanning.gitlab-ci.yml
variables:
# Please edit to your GitLab project
REPO_NAME: gitlab.com/Raum0x2A/nmslib
# The problem is that to be able to use go get, one needs to put
# the repository in the $GOPATH. So for example if your gitlab domain
# is gitlab.com, and that your repository is namespace/project, and
# the default GOPATH being /go, then you'd need to have your
# repository in /go/src/gitlab.com/namespace/project
# Thus, making a symbolic link corrects this.
before_script:
- mkdir -p $GOPATH/src/$(dirname $REPO_NAME)
- ln -svf $CI_PROJECT_DIR $GOPATH/src/$REPO_NAME
- cd $GOPATH/src/$REPO_NAME
stages:
- test
test:
format:
stage: test
image: golang:1.16.3
script:
- go fmt $(go list ./...)
- go vet $(go list ./...)
- go test
only:
- master
- develop

View File

@@ -4,7 +4,8 @@
[![GoDoc](https://godoc.org/gitlab.com/Raum0x2A/nmslib?status.svg)](https://godoc.org/gitlab.com/Raum0x2A/nmslib)
[![](https://img.shields.io/gitlab/pipeline/Raum0x2A/nmslib/master?label=Master&logo=go)](https://gitlab.com/Raum0x2A/nmslib)
[![](https://img.shields.io/gitlab/pipeline/Raum0x2A/nmslib/develop?label=Develop&logo=go)](https://gitlab.com/Raum0x2A/nmslib/-/tree/develop)
[![](https://img.shields.io/badge/Release-v1.0.0-blue?style=flat&logo=go)](https://gitlab.com/Raum0x2A/nmslib/-/releases/v1.0.0)
[![](https://img.shields.io/badge/Release-v1.0.1-blue?style=flat&logo=go)](https://gitlab.com/Raum0x2A/nmslib/-/releases/v1.0.1)
[![Go Report Card](https://goreportcard.com/badge/gitlab.com/Raum0x2A/nmslib)](https://goreportcard.com/report/gitlab.com/Raum0x2A/nmslib)
NMSlib is a GoLang package for dealing with converting Galactic coordinates to Portal codes and vice versa.
@@ -57,7 +58,7 @@ func main() {
```
## Creating a Glyph banner with CreateBanner()
## Creating a Glyph banner
This function takes 3 parameters and reurns an error
@@ -99,7 +100,7 @@ _Note: Image shown in readme.md's vertical example have been scaled down in gimp
_Original ranportal.png: 256x3072px_
### Converting Portal code to Galactic address with P2gc()
### Converting Portal code to Galactic address
This function only takes 1 parameter and returns a string and error
@@ -116,7 +117,7 @@ Output:
``014C:0077:06DA:01F2``
### Converting Galactic coordinates to Portal codes with Gc2p()
### Converting Galactic coordinates to Portal codes
This function only takes 2 parameters and returns a string and error
@@ -143,7 +144,7 @@ Supported languages
- Vy'keen
- Atlas
### Translate Atlas to English with Atl2Eng()
### Translate Atlas to English
This function takes only 1 parameter and returns a string
@@ -161,7 +162,7 @@ Output:
``awake``
### Translate English to Korvax with Eng2Korvax()
### Translate English to Korvax
This function takes only 1 parameter and returns a string
@@ -228,7 +229,5 @@ fmt.Println(nmslib.RndBH())
<hr>
## A Proud member of NMH Hub
### [![Official Page](https://static.wikia.nocookie.net/nomanssky_gamepedia/images/5/5a/NMH_Banner_Hub.png/revision/latest/scale-to-width-down/85?cb=20201210044657)](https://nomanssky.fandom.com/wiki/No_Man%27s_High_Hub) [![Discord Server](https://img.shields.io/badge/Discord-Invite-blue?&logo=discord&logoColor=white)](https://discord.gg/mhRxf29hns)
### [![NMH Official Page](https://static.wikia.nocookie.net/nomanssky_gamepedia/images/5/5a/NMH_Banner_Hub.png/revision/latest/scale-to-width-down/85?cb=20201210044657)](https://nomanssky.fandom.com/wiki/No_Man%27s_High_Hub) [![Discord Server](https://img.shields.io/badge/Discord-Invite-blue?&logo=discord&logoColor=white)](https://discord.gg/mhRxf29hns)