Please note, this is a STATIC archive of website www.tutorialspoint.com from 11 May 2019, cach3.com does not collect or store any user information, there is no "phishing" involved.
Tutorialspoint

Golang struct example

package main

import "fmt"

type ID int32

type Photo struct {
	ID      ID
	AlbumID ID `json:"album_id"`
	OwberID ID
	UserID  ID
	Text    string
	Date    int64
	// ...
}

type Audio struct {
	ID      ID
	OwnerID ID
	Artist  string
	// ...
}

type Attachment struct {
	Type  string
	Photo Photo
	Audio Audio
}

type Attachments []Attachment

func main() {
	fmt.Printf("hello, world\n")
}

Advertisements
Loading...

We use cookies to provide and improve our services. By using our site, you consent to our Cookies Policy.