Skip to content

Instantly share code, notes, and snippets.

@morjuax
Created June 7, 2026 19:58
Show Gist options
  • Select an option

  • Save morjuax/90c433fd756808832b1182e0a3b82639 to your computer and use it in GitHub Desktop.

Select an option

Save morjuax/90c433fd756808832b1182e0a3b82639 to your computer and use it in GitHub Desktop.
// Welcome to GoLab
// Edit the 'days' variable to see instant results.
func toHours(days int) int {
return days * 24
}
days := 7
hours := toHours(days)
fmt.Printf("📅 Period: %d days\n", days)
fmt.Printf("⏰ Total: %d hours\n", hours)
fmt.Printf("🚀 Execution: %v", time.Now().Format("03:04:05 PM"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment