First chapter setup

drew/sql-it
Drew Bednar 2 years ago
parent b374b26339
commit 87e57c1870

@ -0,0 +1,21 @@
.DEFAULT_GOAL := build
fmt:
go fmt ./...
.PHONY:fmt
lint: fmt
revive ./...
.PHONY:lint
vet: fmt
go vet ./...
.PHONY:vet
build: vet
go build -o hello_world hello.go
.PHONY:build
clean:
rm rf ./hello_world
.PHONY:clean

1
ch1/.gitignore vendored

@ -0,0 +1 @@
hello_world

@ -0,0 +1,21 @@
.DEFAULT_GOAL := build
fmt:
go fmt ./...
.PHONY:fmt
lint: fmt
revive ./...
.PHONY:lint
vet: fmt
go vet ./...
.PHONY:vet
build: vet
go build -o hello_world hello.go
.PHONY:build
clean:
rm rf ./hello_world
.PHONY:clean

@ -0,0 +1,3 @@
module ch1
go 1.20

@ -0,0 +1,10 @@
// Package hello
//
// This package provides a simple "hello, world" program.
package main
import "fmt"
func main() {
fmt.Println("Hello Golang!")
}
Loading…
Cancel
Save