From 8c68e291a256fdde92d860c8a5d10704151c03e3 Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 10 Jul 2023 08:06:48 -0700 Subject: [PATCH 1/7] add gofmt workflow --- .github/workflows/gofmt.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 .github/workflows/gofmt.yml diff --git a/.github/workflows/gofmt.yml b/.github/workflows/gofmt.yml new file mode 100644 index 0000000..c9f1286 --- /dev/null +++ b/.github/workflows/gofmt.yml @@ -0,0 +1,11 @@ +--- + +name: 'gofmt' + +on: + pull_request: + branches: [main] + +jobs: + gofmt: + uses: kernelsam/shared-workflows/.github/workflows/gofmt.yml@main \ No newline at end of file From aab237d4733de3288499f0baaea493667565f919 Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 10 Jul 2023 08:15:40 -0700 Subject: [PATCH 2/7] cleanup formatting --- constant.go | 4 +--- hello-world.go | 2 +- values.go | 4 ++-- variables.go | 3 +-- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/constant.go b/constant.go index 0db14a3..251d5ce 100644 --- a/constant.go +++ b/constant.go @@ -11,13 +11,11 @@ func main() { fmt.Println(s) const n = 500000000 - const d = 3e20 / n fmt.Println(d) fmt.Println(int64(d)) - fmt.Println(math.Sin(n)) -} \ No newline at end of file +} diff --git a/hello-world.go b/hello-world.go index adb5c54..c048119 100644 --- a/hello-world.go +++ b/hello-world.go @@ -4,4 +4,4 @@ import "fmt" func main() { fmt.Println("hello world") -} \ No newline at end of file +} diff --git a/values.go b/values.go index b6303bb..def0795 100644 --- a/values.go +++ b/values.go @@ -6,8 +6,8 @@ func main() { fmt.Println("1+1 =", 1+1) fmt.Println("7.0/3.0 =", 7.0/3.0) - + fmt.Println(true && false) fmt.Println(true || false) fmt.Println(!true) -} \ No newline at end of file +} diff --git a/variables.go b/variables.go index 9bdfe84..18d1535 100644 --- a/variables.go +++ b/variables.go @@ -16,7 +16,6 @@ func main() { var e int fmt.Println(e) - f := "apple" fmt.Println(f) -} \ No newline at end of file +} From 23f9e73c5d2b3f27c15bb5fffa807f7f360257a5 Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 10 Jul 2023 08:42:53 -0700 Subject: [PATCH 3/7] add errors for testing --- constant.go | 1 + variables.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/constant.go b/constant.go index 251d5ce..f65973e 100644 --- a/constant.go +++ b/constant.go @@ -17,5 +17,6 @@ func main() { fmt.Println(int64(d)) + fmt.Println(math.Sin(n)) } diff --git a/variables.go b/variables.go index 18d1535..1a16919 100644 --- a/variables.go +++ b/variables.go @@ -7,7 +7,7 @@ func main() { var a = "initial" fmt.Println(a) - var b, c int = 1, 2 + var b, c int = 1, 2 fmt.Println(b, c) var d = true @@ -16,6 +16,7 @@ func main() { var e int fmt.Println(e) + f := "apple" fmt.Println(f) } From a50e7f6c9bb3d0e29389a0e6f482169e95d1e553 Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 10 Jul 2023 08:45:55 -0700 Subject: [PATCH 4/7] Empty-Commit From 0c8f05761a0da116a72fa77168f9302daff5c374 Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 10 Jul 2023 08:48:27 -0700 Subject: [PATCH 5/7] fix formatting errors --- constant.go | 1 - variables.go | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/constant.go b/constant.go index f65973e..251d5ce 100644 --- a/constant.go +++ b/constant.go @@ -17,6 +17,5 @@ func main() { fmt.Println(int64(d)) - fmt.Println(math.Sin(n)) } diff --git a/variables.go b/variables.go index 1a16919..18d1535 100644 --- a/variables.go +++ b/variables.go @@ -7,7 +7,7 @@ func main() { var a = "initial" fmt.Println(a) - var b, c int = 1, 2 + var b, c int = 1, 2 fmt.Println(b, c) var d = true @@ -16,7 +16,6 @@ func main() { var e int fmt.Println(e) - f := "apple" fmt.Println(f) } From 9bb6b5a51f5b3da8b0d6a44081e84a1e0767828f Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 10 Jul 2023 12:19:30 -0700 Subject: [PATCH 6/7] Empty-Commit From 83aa23c273d13f8ddf1d2f303ef5cd84ab9c827a Mon Sep 17 00:00:00 2001 From: Sam <109683132+kernelsam@users.noreply.github.com> Date: Mon, 10 Jul 2023 12:22:09 -0700 Subject: [PATCH 7/7] Empty-Commit