https://github.com/zenliucn/guic
golang gui console helper for windows(gui application with console mode)
https://github.com/zenliucn/guic
console gui windowsconsolegui
Last synced: about 2 months ago
JSON representation
golang gui console helper for windows(gui application with console mode)
- Host: GitHub
- URL: https://github.com/zenliucn/guic
- Owner: ZenLiuCN
- License: mit
- Created: 2023-02-05T10:07:19.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-02-05T10:18:32.000Z (over 3 years ago)
- Last Synced: 2025-01-05T22:42:18.966Z (over 1 year ago)
- Topics: console, gui, windowsconsolegui
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# guic
golang gui console helper for windows.
## use
```go
package main
import(
"os"
"github.com/ZenLiuCN/guic"
)
func main() {
if len(os.Args) > 1 && os.Args[1] == "-c" {
guic.AttachConsole() //make console enable
}else{
//do things with GUI
}
//DO things
}
```
build with `go build -ldflags "-H windowsgui"`, you made it: a GUI application with console support.