pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/fsutil/fs_user.go (about) 1 //go:build !unit 2 // +build !unit 3 4 // Package fsutil provides methods for working with files on POSIX compatible systems 5 package fsutil 6 7 // ////////////////////////////////////////////////////////////////////////////////// // 8 // // 9 // Copyright (c) 2022 ESSENTIAL KAOS // 10 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 11 // // 12 // ////////////////////////////////////////////////////////////////////////////////// // 13 14 import ( 15 "pkg.re/essentialkaos/ek.v12/system" 16 ) 17 18 // ////////////////////////////////////////////////////////////////////////////////// // 19 20 func getCurrentUser() (*system.User, error) { 21 return system.CurrentUser() 22 }