All checks were successful
		
		
	
	Test / Create distribution (push) Successful in 33s
				
			Test / Sandbox (push) Successful in 2m9s
				
			Test / Hakurei (push) Successful in 3m5s
				
			Test / Hpkg (push) Successful in 4m4s
				
			Test / Sandbox (race detector) (push) Successful in 4m9s
				
			Test / Hakurei (race detector) (push) Successful in 4m46s
				
			Test / Flake checks (push) Successful in 1m30s
				
			These names are less ambiguous and should be understandable without reading the source code. Signed-off-by: Ophestra <cat@gensokyo.uk>
		
			
				
	
	
		
			20 lines
		
	
	
		
			522 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			522 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package internal
 | |
| 
 | |
| // FallbackVersion is returned when a version string was not set by the linker.
 | |
| const FallbackVersion = "dirty"
 | |
| 
 | |
| // buildVersion is the Hakurei tree's version string at build time.
 | |
| //
 | |
| // This is set by the linker.
 | |
| var buildVersion string
 | |
| 
 | |
| // Version returns the Hakurei tree's version string.
 | |
| // It is either the value of the constant [FallbackVersion] or,
 | |
| // when possible, a release tag like "v1.0.0".
 | |
| func Version() string {
 | |
| 	if buildVersion != "" {
 | |
| 		return buildVersion
 | |
| 	}
 | |
| 	return FallbackVersion
 | |
| }
 |