Skip to content

udbmnm/girl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

girl

girl is a sinatra style web framework

Overview

Installation

Make sure you have the a working Go environment. See the install instructions.

To install girl, simply run:

go get github.com/cgyy/girl

Example

package main

import (
    "github.com/cgyy/girl"
)

func Index(c *girl.Context) girl.View {
	return c.RenderText("hello world")
}

func main() {
    app := girl.New()

    app.Get("/", Index)
    app.Run(":9999")
}

To run the application, put the code in a file called hello.go and run:

go run hello.go

About

a micro web framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published