Error Get annotations from endpoints

Hello everyone, I am starting in kubernetes and I have a couple of questions about the use of the api.

I have created a deployment and assigned a series of “annotations”. My idea is, thanks to the go client, to get the values ​​of the annotations. But when I make that call to the api this is what returns me:


My function:

func GetJSONnftlbFromEndpoints(endpoints *v1.Endpoints) types.Json {
// Get Annotations
Annotations := map[string]string{}
Annotations = endpoints.ObjectMeta.Annotations
fmt.Println("-- Annotations endpoint")


Can you explain to me what I’m doing wrong exactly, I attach links to the kubernetes api: