Empty output while trying to convert a yaml data into a struct : <p>Im trying to convert a yaml data into a struct and print it. The output I get for this program is empty. </p>

<pre><code>package main

import (
"fmt"

"gopkg.in/yaml.v2"
)

type example struct {
    variable1 string
    variable2 string
}

func main() {
    var a example
    yaml.Unmarshal([]byte("variable1: asd\nvariable2: sdcs"), &amp;a)
    fmt.Println(a.variable1)
}
</code></pre>
