thinkport

package
v0.0.0-...-b5ffc21 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Copyright © 2023 André Lademann <alademann@thinkport.digital>

Copyright © 2023 André Lademann <alademann@thinkport.digital>

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetJSON

func GetJSON(url string, target interface{}) error

GetJSON gets a JSON from a REST API and unmarshals it into a struct

func GetLatestVersion

func GetLatestVersion() string

Get version number of latest release from GitHub API

Types

type Member

type Member struct {
	Name     string `json:"name"`
	Surname  string `json:"surname"`
	Position string `json:"position"`
	Email    string `json:"email"`
	Avatar   string `json:"avatar"`
	Linkedin string `json:"linkedin"`
}

type MemberWrapper

type MemberWrapper struct {
	Members []Member `json:"members"`
}

Get members from the thinkport team from a REST API apiURL + /members

type Members

type Members []Member

Jump to

Keyboard shortcuts

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