Rotate(0, 45, 0) but rotation.y = 0,382 Why?

void Update()
{
if (Input.GetMouseButtonDown(0))
{
GameObject go = new GameObject();

            Debug.Log("X: " + go.transform.rotation.x + " Y: " + go.transform.rotation.y + " Z: " + go.transform.rotation.z);
            go.transform.Rotate(0, 45, 0);
            Debug.Log("X: " + go.transform.rotation.x + " Y: " + go.transform.rotation.y + " Z: " + go.transform.rotation.z);


        }
    }

First output: X: 0 Y: 0 Z: 0
Second : X: 0 Y: 3,82 Z: 0

What I expected:
Second : X:0 Y:45 Z:0

This is a very simple question but I really don’t understand…

Solved it. Not transform. rotation. It should be transform.eulerAngles. Then I can see 45 degrees.