diff options
Diffstat (limited to 'exercises/structs/structs3')
-rw-r--r-- | exercises/structs/structs3/main.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/exercises/structs/structs3/main.go b/exercises/structs/structs3/main.go new file mode 100644 index 0000000..ce0d0f7 --- /dev/null +++ b/exercises/structs/structs3/main.go @@ -0,0 +1,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 +} |