This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"io" | |
"log" | |
"net/http" | |
"os" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package weather | |
import ( | |
"encoding/json" | |
"fmt" | |
"html/template" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
"html/template" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"net/url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Part of my golang web app code is: | |
type DataPoint struct { | |
Time float64 | |
Summary string | |
Icon string | |
SunriseTime float64 | |
SunsetTime float64 | |
PrecipIntensity float64 | |
PrecipIntensityMax float64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p>Links to RubyConfIndia 2014 photos.</p> | |
<ul> | |
<li><a href="https://plus.google.com/photos/+SatishTalim/albums/5994591149500219697?authkey=CJPHgOuk3c_pVA">Satish Talim</a></li> | |
<li><a href="https://plus.google.com/u/0/photos/+PriteshJain/albums/5995351019639225041">Pritesh</a></li> | |
<li><a href="https://www.flickr.com/photos/santoshwadghule/sets/72157643060208803/">Santosh Wadghule</a></li> | |
<li><a href="http://www.flickr.com/photos/anildigital/sets/72157642906676895/">Anil Wadghule</a></li> | |
<li><a href="https://www.flickr.com/photos/121535114@N05/">Aruz Parajuli</a></li> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package goview | |
import ( | |
"encoding/json" | |
"fmt" | |
"html/template" | |
"io/ioutil" | |
"net/http" | |
"net/url" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
background-color: #C2A7F2; | |
font-family: sans-serif; | |
} | |
h1 { | |
color: #2A1959; | |
border-bottom: 2px solid #2A1959; | |
} | |
h2 { | |
color: #474B94; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Dosa Diner</title> | |
<meta charset="utf-8"> | |
<link rel="stylesheet" href="stylesheets/dosasite.css"> | |
</head> | |
<body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"os" | |
) | |
func main() { | |
fs := http.FileServer(http.Dir("public")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"html/template" | |
"labix.org/v2/mgo" | |
"labix.org/v2/mgo/bson" | |
"net/http" | |
"os" | |
) |