about

Some about me and my projects.

View the Project on GitHub

some about me

package main

import (
	"fmt"
	"strings"
	"time"
)

// Person person
type Person struct {
	name    string
	age     int
	city    string
	email   string
	blog    string
	twitter string
}

func (p Person) hi() string {
	return fmt.Sprintf("Hi, my name is %s, and i live in %s.", p.name, p.city)
}

func main() {
	kevin := Person{
		name:    "Kevin",
		age:     time.Now().Year() - 1992,
		city:    "Shenzhen",
		email:   strings.Replace("mlongbo#gmail.com", "#", "@", 1),
		blog:    "http://mlongbo.com",
		twitter: "https://twitter.com/lenbo_",
	}

	fmt.Println(kevin.hi())
}