package modules import ( _ "errors" _ "fmt" ) type match_manager struct { } func (match_mng *match_manager) matching(queue *MsgQueue) error { msg := queue.pop(true) //Implement here ~~ subscription := msg.(*PublishMsg).subscription content := msg.(*PublishMsg).content println(subscription, content) return nil }