article

package
v0.0.0-...-74589df Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Article

type Article struct {
	ID          int      `json:"id"`
	Date        string   `json:"created_at"`
	Type        string   `json:"type"`
	Title       string   `json:"title"`
	Skills      []string `json:"skills"`
	Description string   `json:"description"`
	Article     string   `json:"article"`
	Creator     int      `json:"creator"`
}

func GetAll

func GetAll() ([]Article, error)

func GetPost

func GetPost(id string) (Article, error)

type Creator

type Creator struct {
	ID       int    `json:"id"`
	Name     string `json:"full_name"`
	GitHub   string `json:"github"`
	Email    string `json:"email"`
	LinkedIn string `json:"linkedin"`
}

func GetCreatorDetails

func GetCreatorDetails(id int) (Creator, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL