package main
import (
"play.ground/profile"
)
func main() {
me := profile.NewBio("Cezar G.B")
stack := profile.NewStack(
[]string{"Go", "Elixir", "Java", "C", "Javascript"},
[]string{"Postgres", "Mysql", "SQLite", "MongoDB", "DynamoDB", "Cassandra"},
[]string{"RabbitMQ", "AWS", "Vue.js"},
[]string{"Docker", "Kubernetes", "Elm", "Haskell"},
)
_ = me
_ = stack
}
-- go.mod --
module play.ground
-- profile/profile.go --
package profile
type Bio struct {
Name string
}
type Stack struct {
languages []string
databases []string
misc []string
ongoing []string
}
func NewBio(name string) *Bio {
return &Bio{name}
}
func NewStack(languages, databases, misc, ongoing []string) *Stack {
return &Stack{languages, databases, misc, ongoing}
}
cezargarrido Goto Github PK
Name: Cezar Garrido
Type: User
Location: Dourados/MS