Solved it by comparing the resulting instance with empty one.
if structAA == (A{}) { fmt.Println("is empty therefore unmarshal failed") }
Playground