This commit is contained in:
a.pivkin
2025-12-30 21:55:12 +03:00
parent 00b9ce122d
commit 23931220bb
8 changed files with 268 additions and 7 deletions
+3
View File
@@ -0,0 +1,3 @@
module main
go 1.25.5
+31
View File
@@ -0,0 +1,31 @@
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()
}