Surra Framework

Surra is a backend framework written in Go (Golang). It features a martini-like and Gin Framework, designed to easily develop TMF REST APIs


To install Surra package, you need to install Go and set your Go workspace first.

  1. You first need Go installed (version 1.16+ is required), then you can use the below Go command to install Surra.
$ go get -u
  1. Import it in your code:
import ""
  1. (Optional) Import net/http. This is required for example if using constants such as http.StatusOK.
import "net/http"

Quick start

# assume the following codes in example.go file
$ cat app.go

package main

import (

func main() {
	r := surra.Principal()
	r.GET("/hello", func(ctx *surra.Context) {
		ctx.JSON(http.StatusOK, surra.KeyVal{
			"message": "pong",


# run example.go and visit (for windows "localhost:8080/ping") on browser
$ go run example.go


View Github