Hi All,
Go is new to me… This code supposes to log non-empty value representing the bytes of the string. Why does it log an empty string?
var b bytes.Buffer
bufioW := bufio.NewWriter(&b)
flateW, err := flate.NewWriter(bufioW, flate.NoCompression)
flateW.Write([]byte("This is a test"))
flateW.Close()
log.Println("SAML Request after compression: ", b.Bytes())
Thanks,
Yossi