mirror of
https://github.com/SourceFellows/gobuch.git
synced 2026-10-27 18:11:45 +01:00
initial import
This commit is contained in:
commit
e223458dd4
423 files changed
+9871
No files matched your search
@@ -0,0 +1,27 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
type QuasselStrippe interface {
|
||||
Quassel()
|
||||
}
|
||||
|
||||
type Person struct {
|
||||
name string
|
||||
}
|
||||
|
||||
func (p *Person) Quassel() {
|
||||
fmt.Printf("Hi. Meine Name ist %s\n", p.name)
|
||||
}
|
||||
|
||||
func VielQuasseln(qs QuasselStrippe) {
|
||||
for i := 0; i < 3; i++ {
|
||||
qs.Quassel()
|
||||
}
|
||||
}
|
||||
|
||||
func main() {
|
||||
s := &Person{name: "Quassel-Philip"}
|
||||
s.Quassel()
|
||||
VielQuasseln(s)
|
||||
}
|
||||
Reference in new issue
Block a user