blob: ce0d0f719c378bca48ca975078603075b931b223 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// structs3
// Make me compile!
//
// I AM NOT DONE
package main
import "fmt"
type Person struct {
firstName string
lastName string
}
func main() {
person := Person{firstName: "Maurício", lastName: "Antunes"}
fmt.Printf("Person full name is: %s\n", person.FullName()) // here it must output Person full name is: Maurício Antunes
}
|