github.com/qioalice/ekago/v3@v3.3.2-0.20221202205325-5c262d586ee4/ekasys/me.go (about)

     1  // Copyright © 2020. All rights reserved.
     2  // Author: Ilya Yuryevich.
     3  // Contacts: iyuryevich@pm.me, https://github.com/qioalice
     4  // License: https://opensource.org/licenses/MIT
     5  
     6  package ekasys
     7  
     8  import (
     9  	"os"
    10  )
    11  
    12  var (
    13  	posixCachedUid = uint32(os.Getuid())
    14  	posixCachedGid = uint32(os.Getgid())
    15  )
    16  
    17  func PosixCachedUid() uint32 { return posixCachedUid }
    18  func PosixCachedGid() uint32 { return posixCachedGid }