mirror of
				https://github.com/KevinMidboe/planetposen-images.git
				synced 2025-10-29 13:20:11 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
		
			398 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			398 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| package util
 | |
| 
 | |
| import (
 | |
| 	"fmt"
 | |
| )
 | |
| 
 | |
| // ImageURL creates imageURL from hostname and image name
 | |
| func ImageURL(hostname, name string) string {
 | |
| 	return fmt.Sprintf("https://%s/api/v1/images/%s", hostname, name)
 | |
| }
 | |
| 
 | |
| // ImageRemoteURL creates imageURL to bucket file
 | |
| func ImageRemoteURL(bucketname string, path string) string {
 | |
| 	return fmt.Sprintf("https://storage.googleapis.com/%s/%s", bucketname, path)
 | |
| }
 |