Skip to content

Instantly share code, notes, and snippets.

View IndianGuru's full-sized avatar

IndianGuru IndianGuru

View GitHub Profile
@IndianGuru
IndianGuru / dosasite.css
Created August 26, 2015 03:38
File dosasite.css
body {
background-color: #C2A7F2;
font-family: sans-serif;
}
h1 {
color: #2A1959;
border-bottom: 2px solid #2A1959;
}
h2 {
color: #474B94;
@IndianGuru
IndianGuru / dosasite.go
Created August 26, 2015 03:44
File dosasite.go
package main
import (
"fmt"
"log"
"net/http"
"os"
)
func main() {
@IndianGuru
IndianGuru / mytext.go
Created September 2, 2015 03:45
mytext.go
package mytext
import (
"fmt"
"net/http"
)
func init() {
http.HandleFunc("/", handler)
}
@IndianGuru
IndianGuru / app.yaml
Last active September 2, 2015 04:09
app.yaml
# This is a comment
# application is mandatory
application: helloworld
# version is mandatory
version: 1-0
# runtime is mandatory
runtime: go
@IndianGuru
IndianGuru / hello.go
Created September 3, 2015 03:41
hello.go
package main
import "fmt"
func main() {
fmt.Println("Hello, world.")
}
@IndianGuru
IndianGuru / app.yaml
Last active September 5, 2015 02:54
app.yaml for quotes
application: quote
version: 1
runtime: go
api_version: go1
handlers:
- url: /.*
script: _go_app
@IndianGuru
IndianGuru / quote.go
Last active September 5, 2015 02:53
quote.go for quotes
package quote
import (
"fmt"
"html/template"
"net/http"
)
func init() {
http.HandleFunc("/", root)
@IndianGuru
IndianGuru / struct.go
Created September 4, 2015 04:29
Struct example
type My_Struct_Name struct {
X int
Y string
}
@IndianGuru
IndianGuru / struct2.go
Created September 4, 2015 04:31
Another struct example
msn := My_Struct_Name{1, "talim"}
msn.X = 4
@IndianGuru
IndianGuru / struct3.go
Created September 4, 2015 04:47
Another struct example
type Student struct {
Name string
}