Hello @Anaisdg ,
I tried to see the golang API and relate it with your example and I think I can understand it.
I have not tried it yet as I need to reolve another question as posted in
(Read/Delete data with a specific time in golang)
Thanks for your help.