proxytoworld
V2EX  ›  问与答

go 程序怎么判断这个程序的权限,我想在里面加入判断自身是否是管理员权限的代码,但是不知道怎么判断

  •  
  •   proxytoworld · May 22, 2021 · 1403 views
    This topic created in 1907 days ago, the information mentioned may be changed or developed.
    3 replies    2021-06-08 00:25:59 +08:00
    iceheart
        1
    iceheart  
       May 22, 2021 via Android
    getuid getgid
    0ZXYDDu796nVCFxq
        2
    0ZXYDDu796nVCFxq  
       May 22, 2021
    ZhaoHuiLiu
        3
    ZhaoHuiLiu  
       Jun 8, 2021 via Android
    简单给操作系统的 windows 下创建空文件,创建成功就是管理员
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5483 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 03:43 · PVG 11:43 · LAX 20:43 · JFK 23:43
    ♥ Do have faith in what you're doing.