MaximGGoose

Untitled

Feb 22nd, 2024
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.31 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5.     "strings"
  6. )
  7.  
  8. type Cock func(string) string
  9.  
  10. func (c Cock) Dick(s string) {
  11.     a := c(s)
  12.    
  13.     fmt.Println(a)
  14. }
  15.  
  16. func main() {
  17.     b := "booba"
  18.    
  19.     var cock Cock = func(s string) string {
  20.         return strings.Repeat(s, 10)
  21.     }
  22.    
  23.     cock.Dick(b)
  24. }
Add Comment
Please, Sign In to add comment