Created
June 1, 2020 16:07
-
-
Save floren/70c8f5c9c12c4b6a2e4b73416604e34d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module test | |
go 1.13 | |
require golang.org/x/sys v0.0.0-20200523222454-059865788121 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"golang.org/x/sys/unix" | |
) | |
func main() { | |
fmt.Println(unix.Getuid()) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment