Table of Contents
适用场景
当前版本
当前版本功能特性
框架构成
部分界面
项目目录组织
贡献者名单
开源协议
Home Web Front-end HTML Tutorial Lessgo 最佳实战 web 框架 0.5.0 版本首发_html/css_WEB-ITnose

Lessgo 最佳实战 web 框架 0.5.0 版本首发_html/css_WEB-ITnose

Jun 24, 2016 am 11:19 AM

Lessgo是一款Go语言开发的简单、稳定、高效、灵活的 web开发框架。它的项目组织形式经过精心设计,实现前后端分离、系统与业务分离,完美兼容MVC与MVVC等多种开发模式,非常利于企业级应用与API接口的开发。当然,最值得关注的是它突破性地支持了运行时路由重建,开发者可在Admin后台轻松实现启用/禁用模块与操作,添加/移除中间件等功能!同时,它推荐以HandlerFunc与MiddlewareFunc为基础的函数式编程,也令开发变得更加灵活富有趣味性。

此外它也博采众长,核心架构基于echo2并增强优化,数据库引擎内置为xorm,模板引擎内置为pongo2,其他某些功能模块改写自beego以及其他优秀开源项目。(在此感谢这些优秀的开源项目).

适用场景

- 网站

- web应用

- Restful API服务应用

- 企业应用

当前版本

- V0.5.0

- 发布日期:2016.04.28

当前版本功能特性

- 使用简单、运行稳定高效

- 兼容流行系统模式如:MVC、MVVC、Restful...

- 强大的运行时动态路由(动态路由保存在Common/DB/lessgo.db中)

- 多异构数据库支持

- 优化的项目目录组织最佳实践,满足复杂企业应用需要

- 集成统一的系统日志(system、database独立完整的日志)

- 提供Session管理

- 多种Token生成方式

-  swagger集成智能API文档

框架构成

- 核心框架: lessgo

- 框架扩展: lessgoext

- 项目Demo: demo

部分界面

- 系统运行:

- 应用前端:

- 自动化文档:

项目目录组织

─Project 项目开发目录

├─Config 配置文件目录

│  ├─app.config 系统应用配置文件

│  └─db.config 数据库配置文件

├─Common 后端公共目录

│  ├─Middleware 中间件目录

│  └─Model 数据模型

│  └─... 其他

├─Static 前端公共目录 (url: /static)

│  ├─Tpl 公共tpl模板目录

│  ├─Js 公共js目录 (url: /static/js)

│  ├─Css 公共css目录 (url: /static/css)

│  ├─Img 公共img目录 (url: /static/img)

│  └─Plugin 公共js插件 (url: /static/plugin)

├─SystemAPI 系统模块后端目录

│  ├─SysRouter.go 系统模块路由文件

│  ├─SysCommon 后端公共目录

│  │  ├─Middleware 中间件目录

│  │  └─Model 数据模型

│  │  └─... 其他

│  ├─Xxx Xxx子模块目录

│  │  ├─ExampleHandle.go Example操作

│  │  ├─ExampleModel.go Example数据模型及模板函数

│  │  └─... Xxx的子模块目录

│  └─... 其他子模块目录

├─SystemView 系统模块前端目录 (url: /sys)

│  ├─Xxx Xxx子模块目录 (url: /sys/xxx)

│  │  ├─example.tpl ExampleHandle对应的模板文件

│  │  ├─example2.html 无需绑定操作的静态html文件

│  │  ├─xxx.css css文件(可有多个)

│  │  ├─xxx.js js文件(可有多个)

│  │  └─... Xxx的子模块目录

├─BusinessAPI 业务模块后端目录

│  ├─BusRouter.go 业务模块路由文件

│  ├─BusCommon Business公共目录

│  │  ├─Middleware 中间件目录

│  │  └─Model 数据模型

│  │  └─... 其他

│  ├─Xxx Xxx子模块目录

│  │  ├─ExampleHandle.go Example操作

│  │  ├─ExampleModel.go Example数据模型及模板函数

│  │  └─... Xxx的子模块目录

│  └─... 其他子模块目录

├─BusinessView 业务模块前端目录 (url: /bus)

│  ├─Xxx Xxx子模块目录 (url: /bus/xxx)

│  │  ├─example.tpl ExampleHandle对应的模板文件

│  │  ├─example2.html 无需绑定操作的静态html文件

│  │  ├─xxx.css css文件(可有多个)

│  │  ├─xxx.js js文件(可有多个)

│  │  └─... Xxx的子模块目录

├─Uploads 默认上传下载目录

├─Logger 运行日志输出目录

└─Main.go 应用入口文件

贡献者名单

贡献者 贡献概要
henrylee2cn 第一作者 (主要代码实现者)
changyu72 第二作者 (主要架构设计者)

开源协议

Lessgo 项目采用商业应用友好的 MIT 协议发布。

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
1 months ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the purpose of the <progress> element? What is the purpose of the <progress> element? Mar 21, 2025 pm 12:34 PM

The article discusses the HTML &lt;progress&gt; element, its purpose, styling, and differences from the &lt;meter&gt; element. The main focus is on using &lt;progress&gt; for task completion and &lt;meter&gt; for stati

What is the purpose of the <datalist> element? What is the purpose of the <datalist> element? Mar 21, 2025 pm 12:33 PM

The article discusses the HTML &lt;datalist&gt; element, which enhances forms by providing autocomplete suggestions, improving user experience and reducing errors.Character count: 159

What are the best practices for cross-browser compatibility in HTML5? What are the best practices for cross-browser compatibility in HTML5? Mar 17, 2025 pm 12:20 PM

Article discusses best practices for ensuring HTML5 cross-browser compatibility, focusing on feature detection, progressive enhancement, and testing methods.

What is the purpose of the <meter> element? What is the purpose of the <meter> element? Mar 21, 2025 pm 12:35 PM

The article discusses the HTML &lt;meter&gt; element, used for displaying scalar or fractional values within a range, and its common applications in web development. It differentiates &lt;meter&gt; from &lt;progress&gt; and ex

How do I use HTML5 form validation attributes to validate user input? How do I use HTML5 form validation attributes to validate user input? Mar 17, 2025 pm 12:27 PM

The article discusses using HTML5 form validation attributes like required, pattern, min, max, and length limits to validate user input directly in the browser.

What is the viewport meta tag? Why is it important for responsive design? What is the viewport meta tag? Why is it important for responsive design? Mar 20, 2025 pm 05:56 PM

The article discusses the viewport meta tag, essential for responsive web design on mobile devices. It explains how proper use ensures optimal content scaling and user interaction, while misuse can lead to design and accessibility issues.

What is the purpose of the <iframe> tag? What are the security considerations when using it? What is the purpose of the <iframe> tag? What are the security considerations when using it? Mar 20, 2025 pm 06:05 PM

The article discusses the &lt;iframe&gt; tag's purpose in embedding external content into webpages, its common uses, security risks, and alternatives like object tags and APIs.

Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Gitee Pages static website deployment failed: How to troubleshoot and resolve single file 404 errors? Apr 04, 2025 pm 11:54 PM

GiteePages static website deployment failed: 404 error troubleshooting and resolution when using Gitee...

See all articles