We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
get os username from os/user
package main import ( "fmt" "log" "os/user" ) func main() { user, err := user.Current() if err != nil { log.Fatalf(err.Error()) } username := user.Username fmt.Printf("Username: %s\n", username) }
// // __SCENE_NAME__Router.swift // __TARGET_PROJECT_NAME__ // // Created by clean-swift-scaffold on __DATE__. // Copyright © __YEAR__ __COPYRIGHT__. All rights reserved. //
// // __SCENE_NAME__Router.swift // __TARGET_PROJECT_NAME__ // // Created by __WHO__ on __DATE__. // Copyright © __YEAR__ __COPYRIGHT__. All rights reserved. //
The text was updated successfully, but these errors were encountered:
GeekTree0101
No branches or pull requests
Solutions
get os username from os/user
Before
After
The text was updated successfully, but these errors were encountered: