go-weather-checker

command module
v0.0.0-...-79f6c4f Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 8 Imported by: 0

README

The Go Weather Checker

This entire application is written in Go! 🥳 The JS code was generated with GopherJS.

Prerequisites

  1. Go 1.21
  2. GopherJS
$ go install github.com/gopherjs/gopherjs@v1.18.0-beta3

Environment variables

Sign up to OpenWeatherMap to get your own API key.

export WEATHER_API_KEY=XXX
export PORT=XXX

Run it

After setting our variables, we run the server like any old server:

$ go run server.go

Once the server starts up, you can navigate to it in the browser at localhost:8080 or whatever port you have configured.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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