Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTable ¶
func OpenDatabase ¶
OpenDatabase opens a connection to the PostgreSQL database and returns the connection object.
Types ¶
type ContentfulResponse ¶
type ContentfulResponse struct { Sys struct { ID string `json:"id"` CreatedAt string `json:"createdAt"` } `json:"sys"` Fields struct { Name string `json:"name"` } `json:"fields"` }
ContentfulResponse represents the JSON response from the Contentful API.
func FetchContentfulData ¶
func FetchContentfulData(url string) (*ContentfulResponse, error)
FetchContentfulData fetches data from the Contentful API and returns the response as a ContentfulResponse struct.
Click to show internal directories.
Click to hide internal directories.