Git Product home page Git Product logo

wgf's Introduction

wgf, a wonderful framework in golang.

文档(Documentation)

wgf

是什么?

Hello,wgf是基于Golang的的编程框架。目标为提供一个尽可能统一的编程环境,提高工作效率。

目前,wgf已完成对http、cli、socket、websocket的支持。 wgf基于扩展机制,对httpServer内嵌了httpparam、双向路由、动态模版等扩展,将在文档中一一介绍。

强烈建议大家先浏览一下app目录源码(一个index+login事例),即可对wgf有个大体的了解。

扩展机制

灵活的扩展机制是Wgf的一大特点,借鉴了php的设计理念,简化新功能的增添,保持核心结构与整体理念的稳定。

Package的依赖关系

Package dependencies(自上至下):

  • app
    • action
    • model
  • wgf
    • plugin
    • sapi
    • lib

上层依赖下层,下层不依赖上层。

支持的功能

  • mvc
    • 可以查看源码中的app目录,查看基本的mvc使用。
  • plugin
    • httpServer的Plugin
      • httpparam, 获取http请求中的参数,GET、POST、文件上传等。
      • session (完善中), 处理Session问题。
      • cookie, 获取、设置Cookie。
      • header, 获取、设置Header信息、重定向请求等。
      • router, 根据路由规则分发请求、生成URL等。
      • view, 管理模版文件,无重启更新模版。

wgf's People

Contributors

walu avatar hermanschaaf avatar zxcvdavid avatar

Watchers

whsheng avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.