Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created March 24, 2020 05:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/57ffb3dd9506f78a03c3f0d43b450fe7 to your computer and use it in GitHub Desktop.
Save parzibyte/57ffb3dd9506f78a03c3f0d43b450fe7 to your computer and use it in GitHub Desktop.
package main
import "fmt"
import "encoding/json"
type Usuario struct {
Nombre string
}
func main() {
var usuarios []Usuario
usuariosCodificados, _ := json.Marshal(usuarios)
fmt.Printf("El arreglo es: %s", string(usuariosCodificados))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment