Initial commit with methods module
This commit is contained in:
13
methods/models/student.go
Normal file
13
methods/models/student.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package models
|
||||
|
||||
import "fmt"
|
||||
|
||||
type Student struct {
|
||||
Person
|
||||
Class string
|
||||
}
|
||||
|
||||
// Presentation - Greet the teacher and show up
|
||||
func (s Student) Presentation() string {
|
||||
return fmt.Sprintf("Good morning teacher, I'm %s %s.\n", s.Person.Name, s.Person.LastName)
|
||||
}
|
||||
Reference in New Issue
Block a user