Guest User

Untitled

a guest
Nov 24th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. package main
  2.  
  3. import "fmt"
  4.  
  5. type Fooymbol struct {
  6. name string
  7. fn func(int)
  8. options int
  9. }
  10.  
  11. var fooymbols = []Fooymbol{
  12. {"jon", x, 3},
  13. }
  14.  
  15. func main() {
  16. fooymbols[0].fn(1)
  17. fmt.Println("symbols: ", fooymbols)
  18. }
  19.  
  20. func fuu(arg int) {
  21. fmt.Println("x: arg = ", arg + 1)
  22. }
Add Comment
Please, Sign In to add comment