Coder Social home page Coder Social logo

goserver's Introduction

ReflectMap

基于放射写的一个包,功能是,传入类名,即可生成一个对象(但比起 Java 等语言来说,它还需要提前主动注册好)

RESTControl

遵守 REST 规则的一个接口

HttpRouter

基于 ReflectMap 功能写了一个 Http 路由分发器,其路由规则暂时非常简陋,后续支持(: 符号,其他隐式规则,比如说调用函数),该路由器只接受实现 RESTControl 接口的对象

yo + App/yo_server

一个山寨 yo app 应用的服务端,采用 MVC 结构,其 C 中对每一个对象都必须实现 RESTControl 接口


编译流程

** Step 1 **:输入指令,包含有两个子项目代码:

git clone https://github.com/izerocrazy/GoServer.git
git submodule update --init --recursive

** Step 2 ** :cd 至文件夹 src/App/yo_server/ 下,执行指令:

go build yo_server.go

** Step 3 **:运行当前目录下生成的程序 yo_server,默认地址为,http://localhost:8080

goserver's People

Contributors

izerocrazy avatar

Stargazers

 avatar

Watchers

 avatar  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.