Commit 4afe7130 authored by LUXEY Adrien's avatar LUXEY Adrien
Browse files

added marshaling of views

parent ca230f21
......@@ -192,8 +192,9 @@ func (cy *Cyclon) active() {
if str, err := cy.v.MarshalText(); err != nil {
fmt.Println(err)
} else {
fmt.Printf(str)
fmt.Println(str)
}
fmt.Println()
// 2 - Select neighbor Q with the highest age among all neighbors ...
var q Describer
......
......@@ -184,7 +184,7 @@ func (v *View) MarshalText() (text []byte, err error) {
if str, err := item.MarshalText(); err != nil {
return nil, err
} else {
ret += str + "\n"
ret += string(str) + "\n"
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment