package main
import (
"fmt"
)
type ProgrammingLanguage string
const (
Python ProgrammingLanguage = "python"
Golang ProgrammingLanguage = "golang"
)
type ParkBosung struct {
ResidesIn string
Company string
Speaks []string
ProgrammingLanguage ProgrammingLanguage
}
func NewParkBosung() *ParkBosung {
return &ParkBosung{
ResidesIn: "🇰🇷",
Company: "coxwave",
Speaks: []string{"ko", "en", "zh-cn"},
ProgrammingLanguage: Golang,
}
}
func (p *ParkBosung) SpeakMe(language string) {
switch language {
case "en":
fmt.Println("Hi, my name is Park Bosung!")
fmt.Println("My current interest is server development.")
default:
fmt.Println("Wait, I knew that... once upon a time.")
}
}
func main() {
bosungPark := NewParkBosung()
bosungPark.SpeakMe("en")
}
🦫
Pinned Loading
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.



