package babillard type ErrorResponse struct { Error string } type MessageResponse struct { Message string } type ContenuResponse struct { Data struct { Contenu []string } } func NewContenuResponse(fichiers []string) (response ContenuResponse) { response.Data.Contenu = fichiers return }