From 8401b54bdb6f7a3e333c1bd62b5dc69e42b7d8f0 Mon Sep 17 00:00:00 2001 From: Yakiyo Date: Tue, 22 Aug 2023 13:38:01 +0000 Subject: [PATCH] feat: initial setup --- .gitignore | 3 +++ .gitpod.yml | 11 +++++++++++ go.mod | 3 +++ go.sum | 0 justfile | 15 +++++++++++++++ main.go | 7 +++++++ 6 files changed, 39 insertions(+) create mode 100644 .gitpod.yml create mode 100644 go.mod create mode 100644 go.sum create mode 100644 justfile create mode 100644 main.go diff --git a/.gitignore b/.gitignore index 3b735ec..2af96c8 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,6 @@ # Go workspace file go.work + +# Builds +tilde* diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..4de4af0 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,11 @@ + +tasks: + - name: Script Task + before: brew install just + init: go get + command: just build + + +vscode: + extensions: + - golang.Go diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b2fd78e --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/Yakiyo/tilde + +go 1.20 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..e69de29 diff --git a/justfile b/justfile new file mode 100644 index 0000000..82bb6f3 --- /dev/null +++ b/justfile @@ -0,0 +1,15 @@ +default: + echo 'Hello, world!' + +update: + go mod tidy + go get + +build: + go build -o tilde main.go + +@run *arg: + go run main.go $@ + +fmt: + go fmt ./... \ No newline at end of file diff --git a/main.go b/main.go new file mode 100644 index 0000000..30ed049 --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main + +import "fmt" + +func main() { + fmt.Println("Hello World") +} \ No newline at end of file