Skip to content
This repository has been archived by the owner on Feb 8, 2021. It is now read-only.

edmontongo/darksky

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

darksky

Dark Sky API workshop

package main

import (
	"fmt"

	"github.com/edmontongo/darksky"
)

func main() {
	const secretKey = "0123456789abcdef9876543210fedcba"
	ds := darksky.New(secretKey)

	edmonton := darksky.Location{Lat: 53.5458874, Long: -113.5034304}
	w, err := ds.Forecast(edmonton)
	if err != nil {
		fmt.Println(err)
		return
	}
	fmt.Printf("%+v\n", w)
}

Releases

No releases published

Packages

No packages published

Languages