Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e078afbbe5 | ||
|
|
511331008e | ||
|
|
6fbbe0b23c | ||
|
|
b24a16edad | ||
|
|
3588826556 | ||
|
|
98d812c904 |
3
.gitignore
vendored
3
.gitignore
vendored
@@ -2,4 +2,5 @@ assets/
|
|||||||
.vscode/
|
.vscode/
|
||||||
notes.txt
|
notes.txt
|
||||||
Test.png
|
Test.png
|
||||||
test.png
|
test.png
|
||||||
|
coverage.txt
|
||||||
@@ -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:
|
stages:
|
||||||
- test
|
- test
|
||||||
|
|
||||||
test:
|
format:
|
||||||
stage: test
|
stage: test
|
||||||
image: golang:1.16.3
|
|
||||||
script:
|
script:
|
||||||
|
- go fmt $(go list ./...)
|
||||||
|
- go vet $(go list ./...)
|
||||||
- go test
|
- go test
|
||||||
only:
|
|
||||||
- master
|
|
||||||
- develop
|
|
||||||
|
|||||||
17
README.md
17
README.md
@@ -4,7 +4,8 @@
|
|||||||
[](https://godoc.org/gitlab.com/Raum0x2A/nmslib)
|
[](https://godoc.org/gitlab.com/Raum0x2A/nmslib)
|
||||||
[](https://gitlab.com/Raum0x2A/nmslib)
|
[](https://gitlab.com/Raum0x2A/nmslib)
|
||||||
[](https://gitlab.com/Raum0x2A/nmslib/-/tree/develop)
|
[](https://gitlab.com/Raum0x2A/nmslib/-/tree/develop)
|
||||||
[](https://gitlab.com/Raum0x2A/nmslib/-/releases/v1.0.0)
|
[](https://gitlab.com/Raum0x2A/nmslib/-/releases/v1.0.1)
|
||||||
|
[](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.
|
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
|
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_
|
_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
|
This function only takes 1 parameter and returns a string and error
|
||||||
|
|
||||||
@@ -116,7 +117,7 @@ Output:
|
|||||||
|
|
||||||
``014C:0077:06DA:01F2``
|
``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
|
This function only takes 2 parameters and returns a string and error
|
||||||
|
|
||||||
@@ -143,7 +144,7 @@ Supported languages
|
|||||||
- Vy'keen
|
- Vy'keen
|
||||||
- Atlas
|
- Atlas
|
||||||
|
|
||||||
### Translate Atlas to English with Atl2Eng()
|
### Translate Atlas to English
|
||||||
|
|
||||||
This function takes only 1 parameter and returns a string
|
This function takes only 1 parameter and returns a string
|
||||||
|
|
||||||
@@ -161,7 +162,7 @@ Output:
|
|||||||
|
|
||||||
``awake``
|
``awake``
|
||||||
|
|
||||||
### Translate English to Korvax with Eng2Korvax()
|
### Translate English to Korvax
|
||||||
|
|
||||||
This function takes only 1 parameter and returns a string
|
This function takes only 1 parameter and returns a string
|
||||||
|
|
||||||
@@ -228,7 +229,5 @@ fmt.Println(nmslib.RndBH())
|
|||||||
<hr>
|
<hr>
|
||||||
|
|
||||||
## A Proud member of NMH Hub
|
## A Proud member of NMH Hub
|
||||||
### [](https://nomanssky.fandom.com/wiki/No_Man%27s_High_Hub) [](https://discord.gg/mhRxf29hns)
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
### [](https://nomanssky.fandom.com/wiki/No_Man%27s_High_Hub) [](https://discord.gg/mhRxf29hns)
|
||||||
|
|||||||
Reference in New Issue
Block a user