Golang 获取当前系统架构和操作系统

    xiaoxiao2021-04-11  39

    

    需要一个额外的包:runtime

    import runtime

    runtime.GOARCH 返回当前的系统架构;runtime.GOOS 返回当前的操作系统。

    转载请注明原文地址: https://ju.6miu.com/read-666615.html

    最新回复(0)