All Projects → iwind → TeaGo

iwind / TeaGo

Licence: MIT license
Simple Go Web Framework

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to TeaGo

Javacollection
Java开源项目之「自学编程之路」:学习指南+面试指南+资源分享+技术文章
Stars: ✭ 2,957 (+16327.78%)
Mutual labels:  mvc
Leaf
🍁 The easiest way to create clean, simple but powerful web apps and APIs quickly
Stars: ✭ 248 (+1277.78%)
Mutual labels:  mvc
generic-for-core
🏗️ Generic Repository & UOW Pattern For ASP.NET Core
Stars: ✭ 55 (+205.56%)
Mutual labels:  mvc
Application
🏆 A full-stack component-based MVC kernel for PHP that helps you write powerful and modern web applications. Write less, have cleaner code and your work will bring you joy.
Stars: ✭ 205 (+1038.89%)
Mutual labels:  mvc
Respo
A virtual DOM library built with ClojureScript, inspired by React and Reagent.
Stars: ✭ 230 (+1177.78%)
Mutual labels:  mvc
leiphp
轻量级的 PHP MVC 框架 Lightweight MVC framework for simplistic PHP apps
Stars: ✭ 30 (+66.67%)
Mutual labels:  mvc
Acgn Community
A community app for news,animation,music and novels developed material design style.
Stars: ✭ 193 (+972.22%)
Mutual labels:  mvc
TwistPHP
A fresh, new PHP MVC framework built from the ground up
Stars: ✭ 27 (+50%)
Mutual labels:  mvc
Opentouryo
”Open棟梁”は、長年の.NETアプリケーション開発実績にて蓄積したノウハウに基づき開発した.NET用アプリケーション フレームワークです。 (”OpenTouryo” , is an application framework for .NET which was developed using the accumulated know-how with a long track record in .NET application development.)
Stars: ✭ 233 (+1194.44%)
Mutual labels:  mvc
Flutter-Wings
This is a structure for flutter developers developed by Invention Technology.
Stars: ✭ 20 (+11.11%)
Mutual labels:  mvc
Coldbox Platform
A modern, fluent and conventions based HMVC framework for ColdFusion (CFML)
Stars: ✭ 220 (+1122.22%)
Mutual labels:  mvc
Quiz App
A repository reflecting the progress made on the "How to Build iOS Apps with Swift, TDD & Clean Architecture" YouTube series, by Caio & Mike.
Stars: ✭ 230 (+1177.78%)
Mutual labels:  mvc
fir
Fir. A lightweight PHP MVC Framework.
Stars: ✭ 33 (+83.33%)
Mutual labels:  mvc
Circleoffriendsdisplay
朋友圈的做法
Stars: ✭ 205 (+1038.89%)
Mutual labels:  mvc
SdvCodeWebsite
Simeon Valev - Personal Blog - Developed on ASP.NET Core MVC - Server-Side Blazor - See README.md file for more information
Stars: ✭ 38 (+111.11%)
Mutual labels:  mvc
Mojo
✨ Mojolicious - Perl real-time web framework
Stars: ✭ 2,298 (+12666.67%)
Mutual labels:  mvc
Ssh
ssh员工管理系统
Stars: ✭ 252 (+1300%)
Mutual labels:  mvc
mvc.base
Базовый компонент Битрикс для простой реализации MVC
Stars: ✭ 14 (-22.22%)
Mutual labels:  mvc
mvc-todo
A haskell implementation of todoMVC
Stars: ✭ 26 (+44.44%)
Mutual labels:  mvc
es-mvc
ESMVC 旨在方便 ElasticSearch 的使用,就行访问数据库一样访问ES,提供了方便的 service, mapper 层。底层支持 TransportClient, RestHighLevelClient 。
Stars: ✭ 20 (+11.11%)
Mutual labels:  mvc

TeaGo - Go语言快速开发框架

|------------|       |---------|       |----------|
|  request   |   ->  | router  |   ->  | actions  |
|------------|       |---------|       |----------|
                                            json
                                         templates
                                         databases

定义不带参数的Action

actions/default/hello/index.go

package hello

import "github.com/iwind/TeaGo/actions"

type IndexAction actions.Action

func (this *IndexAction) Run()  {
	this.WriteString("Hello")
}

定义带参数的Action

actions/default/hello/index.go

package hello

import "github.com/iwind/TeaGo/actions"

type IndexAction actions.Action

func (this *IndexAction) Run(params struct {
	Name string
	Age  int
}) {
	this.WriteFormat("Name:%s, Age:%d",
		params.Name,
		params.Age)
}

注册Action

package MyProject

import (
	"github.com/iwind/TeaGo"
	"github.com/iwind/MyProject/actions/default/hello/index"
)

func Start() {
	var server = TeaGo.NewServer()
	
	// 注册路由
	server.Get("/hello", new(hello.IndexAction))
	
	// 启动服务
	server.Start("0.0.0.0:8000")
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].