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 | |
type Car struct { | |
ID string `json:"id"` | |
Title string `json:"title"` | |
Color string `json:"color"` | |
} | |
var Cars []Car |
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 | |
type Car struct { | |
ID string `json:"id"` | |
Title string `json:"title"` | |
Color string `json:"color"` | |
} | |
var Cars []Car |
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 | |
type Car struct { | |
ID string `json:"id"` | |
Title string `json:"title"` | |
Color string `json:"color"` | |
} | |
var Cars []Car |
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 ( | |
"github.com/gin-gonic/gin" | |
"net/http" | |
) | |
type Car struct { | |
ID string `json:"id"` | |
Title string `json:"title"` |
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 ( | |
"github.com/gin-gonic/gin" // Import the packages | |
"net/http" // needed for your code. | |
) | |
type Car struct { // Declaring Car struct. | |
ID string `json:"id"` // "json" tag specifies what a field’s | |
Title string `json:"title"` // name should be when the struct’s |
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 ( | |
"github.com/gin-gonic/gin" // Import the packages | |
"net/http" // needed for your code. | |
) | |
type Car struct { // Declaring Car struct. | |
ID string `json:"id"` // "json" tag specifies what a field’s | |
Title string `json:"title"` // name should be when the struct’s |
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 ( | |
"github.com/gin-gonic/gin" // Import the packages | |
"net/http" // needed for your code. | |
) | |
type Car struct { // Declaring Car struct. | |
ID string `json:"id"` // "json" tag specifies what a field’s | |
Title string `json:"title"` // name should be when the struct’s |
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 ( | |
"github.com/gin-gonic/gin" // Import the packages | |
"net/http" // needed for your code. | |
) | |
type Car struct { // Declaring Car struct. | |
ID string `json:"id"` // "json" tag specifies what a field’s | |
Title string `json:"title"` // name should be when the struct’s |
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 ( | |
"github.com/gin-gonic/gin" // Import the packages | |
"net/http" // needed for your code. | |
) | |
type Car struct { // Declaring Car struct. | |
ID string `json:"id"` // "json" tag specifies what a field’s | |
Title string `json:"title"` // name should be when the struct’s |
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 ( | |
"github.com/gin-gonic/gin" // Import the packages | |
"net/http" // needed for your code. | |
) | |
type Car struct { // Declaring Car struct. | |
ID string `json:"id"` // "json" tag specifies what a field’s | |
Title string `json:"title"` // name should be when the struct’s |
OlderNewer