MCPcopy Index your code
hub / github.com/Melkeydev/go-blueprint / CheckOS

Method CheckOS

cmd/program/program.go:125–137  ·  view source on GitHub ↗

CheckOs checks Operation system and generates MakeFile and `go build` command Based on Project.Unixbase

()

Source from the content-addressed store, hash-verified

123// CheckOs checks Operation system and generates MakeFile and `go build` command
124// Based on Project.Unixbase
125func (p *Project) CheckOS() {
126 p.OSCheck = make(map[string]bool)
127
128 if runtime.GOOS != "windows" {
129 p.OSCheck["UnixBased"] = true
130 }
131 if runtime.GOOS == "linux" {
132 p.OSCheck["linux"] = true
133 }
134 if runtime.GOOS == "darwin" {
135 p.OSCheck["darwin"] = true
136 }
137}
138
139// ExitCLI checks if the Project has been exited, and closes
140// out of the CLI if it has

Callers 1

CreateMainFileMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected