Initial commit with methods module

This commit is contained in:
Fabio Scotto di Santolo
2024-11-19 12:22:09 +01:00
parent cbe2ed118f
commit ecb4ea20a8
8 changed files with 65 additions and 2 deletions

22
methods/main.go Normal file
View File

@@ -0,0 +1,22 @@
package main
import (
"fmt"
dto "nutshell/methods/models"
)
func main() {
student := dto.Student{
Person: dto.Person{
Name: "Joe",
LastName: "Doe",
Age: 33,
},
Class: "5A",
}
showUp(student)
}
func showUp(p dto.Presenter) {
fmt.Println(p.Presentation())
}