Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
See also: https://github.com/golang/go/blob/3b2a578166bdedd94110698c971ba8990771eb89/src/cmd/link/doc.go#L28
(1) Set up Go environment by setup-go action. (2) Checks-out my repository by checkout action. (3) Run tests.
When embed data to Go binary, need to prepare syso file. There is a tool called rsrc that will generate syso file for embedding in the rsrc section, so let's use that.
(1) systray.Run initializes GUI and starts the event loop. Also, you can pass two functions that run when applications starting and exiting. (2) systray.SetIcon accept to array bytes of icon data. This means you need to prepare array bytes of an icon. 2goarray can use in this case. 2goarray can encode files into array bytes.
Of course, already exists that library for using Notification Area. getlantern/systray
If you want to run golangci-lint in CI, you can use golangci-lint-action same as other actions.
Recently, I created a CLI for windows. I learned about some TIPS. Let's describe that in this article. Sample code exists in https://github.com/y-yagi/cli-for-windows