-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
448 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
permissions: | ||
contents: write | ||
packages: write | ||
|
||
jobs: | ||
releases-matrix: | ||
name: Release Go Binary | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
goos: [linux, windows, darwin] | ||
goarch: ["386", amd64, arm64] | ||
exclude: | ||
- goarch: "386" | ||
goos: darwin | ||
- goarch: arm64 | ||
goos: windows | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: wangyoucao577/go-release-action@v1 | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
goos: ${{ matrix.goos }} | ||
goarch: ${{ matrix.goarch }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,21 @@ | ||
// Declare a mutable variable using "ask" | ||
ask x = 10; | ||
|
||
// Declare a constant using "tell" | ||
tell y = 5; | ||
ask x = 10 | ||
ask y = 1 | ||
|
||
// A basic arithmetic operation | ||
ask z = x + y; | ||
ask z = x + y | ||
|
||
// Print the result | ||
console.log('The sum of x and y is:', z); | ||
|
||
// A range loop using "therefore" | ||
therefore (ask i = 0; i < x; i++) { | ||
// A conditional statement using "consider" | ||
consider(i === z) { | ||
console.log('i is equal to z:', i); | ||
// exit statement | ||
snap; | ||
} | ||
} | ||
log("The sum of x and y is:", z) | ||
|
||
// A Lord's loop using "during" | ||
ask j = 0; | ||
during (j < x) { | ||
console.log('Current value of j:', j); | ||
j++; | ||
} | ||
// A conditional statement using "consider" | ||
consider(5 == z) { log("5 is equal to z:", 5) } | ||
|
||
// A function declaration needs to be declared as a funk and call | ||
funk multiply(a, b) { | ||
giving a * b; | ||
} | ||
ask multiply = funk (a, b) { giving a * b } | ||
|
||
// boolean values | ||
cap; | ||
fact; | ||
cap | ||
fact | ||
|
||
console.log('Multiply 5 and 6:', multiply(5, 6)); | ||
log("Multiply 5 and 6:", multiply(5, 6)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.