initial import

This commit is contained in:
SourceFellows
2020-08-21 06:26:40 +02:00
commit e223458dd4
423 changed files with 9871 additions and 0 deletions

27
hello-interface/main.go Normal file
View File

@ -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)
}