goalng的一些问答小知识

本文介绍了如何将Go语言从1.16版本升级到1.17版本,并探讨了如何利用Go的`syscall`和`unsafe`包来调用Windows的Win32 API,为需要高性能和直接访问系统硬件的应用提供解决方案。虽然主要针对C/C++开发者,但提供的接口经过适当调整也可供其他语言使用。
摘要由CSDN通过智能技术生成

golang如何升级? 例如从16->17

go version
go version go1.16.4 windows/amd64

golang如何利用win32api?

众所众知,python使用win32api的方式非常简单,不知道golang如何使用win32api。

golang好像是可以通过
“syscall”
“unsafe”
这两个包实现调用windows的一些api.

The Win32 API (also called the Windows API) is the original platform for native C/C++ Windows applications that require direct access to Windows and hardware. It provides a first-class development experience without depending on a managed runtime environment like .NET and WinRT (for UWP apps for Windows 10). This makes the Win32 API the platform of choice for applications that need the highest level of performance and direct access to system hardware.

https://docs.microsoft.com/en-us/windows/win32/desktop-programming 这个连接虽然是给c++开发者写的,但是接口其他语言稍微改改应该也能用。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值