add build style
This commit is contained in:
8
Makefile
Normal file
8
Makefile
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
windows:
|
||||||
|
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build -o gormt.exe main.go
|
||||||
|
mac:
|
||||||
|
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o gormt main.go
|
||||||
|
linux:
|
||||||
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o gormt main.go
|
||||||
|
|
||||||
|
|
||||||
5
gogenerate.go
Normal file
5
gogenerate.go
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
package main
|
||||||
|
|
||||||
|
//go:generate make mac
|
||||||
|
//go:generate make windows
|
||||||
|
//go:generate make linux
|
||||||
Reference in New Issue
Block a user