This is a tool library designed for quickly building business code, its ease of use and practicality may make it unsuitable for infrastructure and low-level code.
Other languages: 简体中文, (Currently unable to translate more)
You can use the methods in api.go or load a specific utility from the util folder individually(Note that some platform-specific methods are not included in api.go).
Example code reference: api_test.go
package | brief |
---|---|
github.com/skys-mission/gout/util/iplocation | Obtain IP-related information through the public service of iplocation.net. You should not call the public API very frequently |
package | cgo | brief | windows api |
---|---|---|---|
github.com/skys-mission/gout/util/win/mbw | no | Use the Windows API to pop up a message box. There are four methods: simple message, simple error/warning message, and custom message box. Only supports Windows. | user32.dll |
github.com/skys-mission/gout/util/win/displayw | no | Utilize the Windows API to query the display resolution and refresh rate. There are two methods: for all monitors and for the primary monitor. Only supports Windows | user32.dll&gdi32.dll |
github.com/skys-mission/gout/util/win/systemlw | no | Utilize the Windows API to query the current system's default language. There are two methods: returning the name and the code. Only supports Windows | kernel32.dll |
github.com/skys-mission/gout/util/win/processw | no | Provides a series of process-related methods through the Windows API, used for querying PID, setting process priority and relevance. Only supports Windows | kernel32.dll/(advapi32.dll) |
- Minimum Golang version: 1.18
- To use generics
There is no definitive roadmap; we will proceed step by step as we go along.