package main

import "fmt"

type TestStruct struct {
}

func (object *TestStruct) test(msg string) {
    fmt.Println(msg)
}

type CallBack func(msg string)

func callBackTest(pFunc CallBack) {
    pFunc("111111")
}

func main() {
    object := new(TestStruct)
    callBackTest(object.test)
}