File tree Expand file tree Collapse file tree 1 file changed +25
-3
lines changed
Expand file tree Collapse file tree 1 file changed +25
-3
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ escribir("numero encontrado en el indice ", index);
186186// output: numero encontrado en el indice 0
187187```
188188
189- ## Usage
189+ ## Installation
190190for using it you need to have Go install check https://golang.org/ for install Go
191191
192192first copy the repository and change to the directory created:
@@ -206,16 +206,38 @@ compile the package:
206206$ go build -o aura
207207```
208208
209+ You can discover the install path by running the go list command, as in the following example
210+ ``` shell
211+ $ go list -f ' {{.Target}}'
212+ ```
213+ example output: /home/user/Go/bin/aura <br >
214+
215+ Add the Go install directory to your system's shell path
216+ * on linux:
217+ ``` shell
218+ $ export PATH=$PATH :/path/to/your/install/directory
219+ ```
220+
221+ * on windows:
222+ ``` powershell
223+ $ set PATH=%PATH%;C:\path\to\your\install\directory
224+ ```
225+
226+ Once you've updated the shell path, run the go install command to compile and install the package.
227+ ``` shell
228+ $ go install
229+ ```
230+
209231then you can create a file or play with the repl.
210232to play with the repl just run:
211233``` shell
212- $ ./ aura
234+ $ aura
213235```
214236
215237to use a file you can create a file with the .aura extension and run: \
216238** Is important to have the .aura extension otherwise the lenguage wont read the file**
217239``` shell
218- $ ./ aura some/file.aura
240+ $ aura some/file.aura
219241```
220242
221243
You can’t perform that action at this time.
0 commit comments