init: hello F

This commit is contained in:
Paulo 2023-07-19 10:31:01 -03:00
commit d7fa5e5bed
Signed by: pauloo27
GPG Key ID: 079BC1BF4562F663
4 changed files with 34 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/f

23
Makefile Normal file
View File

@ -0,0 +1,23 @@
BINARY_NAME = f
.PHONY: build
build:
CGO_ENABLED=0 go build -v -o $(BINARY_NAME) .
# (build but with a smaller binary)
.PHONY: dist
dist:
CGO_ENABLED=0 go build -gcflags=all=-l -v -ldflags="-w -s" -o $(BINARY_NAME) ./cmd/$(BINARY_NAME)
.PHONY: run
run: build
./$(BINARY_NAME)
.PHONY: tidy
tidy:
go mod tidy
# auto restart
.PHONY: dev
dev:
air

3
go.mod Normal file
View File

@ -0,0 +1,3 @@
module code.db.cafe/pauloo27/f
go 1.20

7
main.go Normal file
View File

@ -0,0 +1,7 @@
package main
import "fmt"
func main() {
fmt.Println("hello world")
}