aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsina <sina@snix.ir>2022-10-28 03:00:24 +0330
committersina <sina@snix.ir>2022-10-28 03:00:24 +0330
commit872afd97e87f3e23a7b73e75f55bb8641f15463b (patch)
tree9ab968b2cb91f13181d0ab2e55706f172e4d2cb4
parentb52c165fce4562767098f11af103e65ce4d77b15 (diff)
rename repo
-rw-r--r--Readme.md14
-rw-r--r--erros.txt2
-rw-r--r--go.mod2
-rw-r--r--main.go2
4 files changed, 10 insertions, 10 deletions
diff --git a/Readme.md b/Readme.md
index 7ebce9e..7e73bdb 100644
--- a/Readme.md
+++ b/Readme.md
@@ -7,19 +7,19 @@ in order to compile and run this project you need to install [go compiler](https
after that run `go build` in project directory to compile brline binary
```
-# git clone https://git.snix.ir/brline
-# cd brline && go build
-# ./brline
+# git clone https://git.snix.ir/brlines
+# cd brlines && go build
+# ./brlines
```
### how to use
-use `./brline --help` to print help banner, you need to provide 2 points as start and end of the line
+use `./brlines --help` to print help banner, you need to provide 2 points as start and end of the line
each point has x and y coordinate, so for starting point you should use -xa and -ya flags and for ending point -xb and -yb
```
-# ./brline --help
+# ./brlines --help
usage of bresenham line simulator:
-./brline options...
+./brlines options...
options:
--pt <file> named png file to save bresenham output
@@ -32,7 +32,7 @@ options:
--yb <uint> y coordinate of ending point
example:
- ./brline --pt mytest.png --xa 8 --ya 3 --xb 2 --yb 10
+ ./brlines --pt mytest.png --xa 8 --ya 3 --xb 2 --yb 10
Copyright (c) 2022 snix.ir, All rights reserved.
diff --git a/erros.txt b/erros.txt
index f495d6d..38c4954 100644
--- a/erros.txt
+++ b/erros.txt
@@ -1 +1 @@
-./brline --xb 10 --yb 1 --xa 2 --ya 15
+./brlines --xb 10 --yb 1 --xa 2 --ya 15
diff --git a/go.mod b/go.mod
index cc444d2..089150b 100644
--- a/go.mod
+++ b/go.mod
@@ -1,4 +1,4 @@
-module brline
+module brlines
go 1.19
diff --git a/main.go b/main.go
index c631d00..7e0e129 100644
--- a/main.go
+++ b/main.go
@@ -1,7 +1,7 @@
package main
import (
- "brline/lines"
+ "brlines/lines"
"flag"
"fmt"
"log"

Snix LLC Git Repository Holder Copyright(C) 2022 All Rights Reserved Email To Snix.IR