mirror of
				https://gitea.com/Lydanne/buildx.git
				synced 2025-11-04 18:13:42 +08:00 
			
		
		
		
	full diff: - https://github.com/google/certificate-transparency-go/compare/v1.0.21...v1.1.4 - https://github.com/kubernetes/klog/compare/v2.30.0...v2.80.1 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
		
			
				
	
	
		
			20 lines
		
	
	
		
			241 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			241 B
		
	
	
	
		
			Go
		
	
	
	
	
	
//go:build !windows
 | 
						|
// +build !windows
 | 
						|
 | 
						|
package klog
 | 
						|
 | 
						|
import (
 | 
						|
	"os/user"
 | 
						|
)
 | 
						|
 | 
						|
func getUserName() string {
 | 
						|
	userNameOnce.Do(func() {
 | 
						|
		current, err := user.Current()
 | 
						|
		if err == nil {
 | 
						|
			userName = current.Username
 | 
						|
		}
 | 
						|
	})
 | 
						|
 | 
						|
	return userName
 | 
						|
}
 |