+
Skip to content
View titosunu's full-sized avatar
💭
🛠️ Crafting
💭
🛠️ Crafting
  • Semarang, Central Java
  • 19:06 (UTC +07:00)

Block or report titosunu

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
titosunu/README.md

Hi there 👋

package main

import (
	"fmt"
)

func devAdvice(project string, mood string) string {
	funEmojis := map[string]string{
		"enthusiastic": "🚀",
		"neutral":      "🛠️",
		"stuck":        "😓",
	}

	professionalAdvice := map[string]string{
		"enthusiastic": "Keep pushing forward and experimenting!",
		"neutral":      "Maintain focus and work steadily towards your goals.",
		"stuck":        "Take a break, review your approach, and seek help if needed.",
	}

	if _, moods := funEmojis[mood]; !moods {
		return "Invalid mood! Please choose between 'enthusiastic', 'neutral', or 'stuck'."
	}

	return fmt.Sprintf("Current project: %s %s. Advice: %s", project, funEmojis[mood], professionalAdvice[mood])
}

func main() {
	message := devAdvice("Build a new feature", "stuck")
	fmt.Println(message)
}

Pinned Loading

  1. atlas-shop atlas-shop Public

    Atlas Thrift Shop is a Laravel-based e-commerce application designed for selling thrift items. It offers user authentication, product management, category organization, shopping cart functionality,…

    JavaScript 2

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载