Created
March 24, 2020 05:39
-
-
Save parzibyte/57ffb3dd9506f78a03c3f0d43b450fe7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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