learning_go/book_with_bridge/flag/main.go
2025-12-30 21:55:12 +03:00

32 lines
334 B
Go

package main
import "fmt"
type Kek interface {
lol()
azaza()
}
type Test struct {
x,y string
}
func(t Test) lol() {
fmt.Printf("I am lol method - %s\n",t.x)
}
func(t Test) azaza() {
fmt.Printf("I am azaza method %s\n",t.y)
}
var _ Kek = (&Test{})
func main() {
t := Test{
x: "one",
y: "two",
}
t.lol()
t.azaza()
}