package main
import "fmt"
type Bio struct {
Name string
Dev string
Handle string
}
func (b *Bio) ToText() string {
return fmt.Sprintf("I'm %v, an %v,\nFollow me on Twitter => %v", b.Name, b.Dev, b.Handle)
}
func main() {
me := Bio{
Name: "Benjamin",
Dev: "Software Engineer 👨💻",
Handle: "@dotsehyde",
}
fmt.Println(me.ToText())
// I'm Benjamin a Software Developer 👨💻,
// Follow me on Twitter => @dotsehyde
}