Skip to content

Goahnary/goWeb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

goWeb

This is a repo containing my experiements in writing a webscraper and webserver using go and go Html Templates

Getting Started

To start the code you will want to update your GOPATH and PATH like so:

GOPATH="Path/to/goWeb"
PATH="Path/to/goWeb:$PATH"

also assure you have go installed correctly and you have your GOROOT set:

GOROOT="/usr/local/go"

Then build the packages:

cd Path/to/goWeb
go build src/getWkuTemp/getWkuTemp.go
go build src/tempAtWKU/tempAtWKU.go

To host the go webserver and serve the current temperature:

./src/tempAtWKU

Then navigate to:

http://localhost:8080/[YourName]

This should display a webpage that looks something like this:

A screenshot of the go webpage showing the temperature at WKU

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages