example-go-app

command module
v1.0.0-beta2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 4 Imported by: 0

README

Discord GitHub GitHub Sponsors

Example Go Program

This is an example program written in Go. This only opens a simple dialog box with a message in it.

Getting Started

To get started you need the Go programming language. You can get it here. After installing it you can simply follow the next steps.

Build

This is how you build the app.

Windows

This is an example build command which uses custom flags to hide the console on Windows.

go build -ldflags -H=windowsgui -o example-go-app.exe main.go
Linux

This is an example build command for Linux.

go build -o example-go-app main.go
Docker

This is an example build command for Docker.

docker build -t ghcr.io/jqshuv/example-go-app .

Run

This is how you run the app.

Windows

Simply run the made executable called: example-go-app.exe.

Linux

Simply run the made executable called: example-go-app.

Docker

Run the app in a Docker container.

docker run ghcr.io/jqshuv/example-go-app

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL