package main

import "fmt"

func main() {
	fmt.Println("It’s a beautiful day to write Go.")
}

				
			
gopher-jafet-brito
				
					package main

import (
	"fmt"
	"os"
	"time"
)

func main() {
	fmt.Println("=== Go Universal Tool ===")
	showTime()
	showEnv()
	logMessage("Execution completed successfully πŸš€")
}

func showTime() {
	fmt.Println("⏰ Current time:", time.Now().Format(time.RFC1123))
}

func showEnv() {
	fmt.Println("🧭 Current directory:", getCwd())
	fmt.Println("πŸ’» User:", os.Getenv("USERNAME"))
}

func logMessage(msg string) {
	file, err := os.Create("log.txt")
	if err != nil {
		fmt.Println("Error:", err)
		return
	}
	defer file.Close()
	file.WriteString(time.Now().String() + " - " + msg + "\n")
	fmt.Println("πŸ“ Log saved to log.txt")
}

func getCwd() string {
	dir, _ := os.Getwd()
	return dir
}