Git Product home page Git Product logo

goframe's Introduction

goframe

1 简介

goframe中的sono项目是一个轻量级的go-web框架。开发者可以直接clone该仓库,将项目名sono替换为自己的模块名称,并将不同go文件中的sono替换掉即可。

2 主要功能列表

1. 静态路由
2. toml格式配置文件读取
3. 单元测试goCheck封装
4. log文件配置封装
5. mysql读取公共类封装
6. redis公共类封装
7. cron定时任务封装

3 使用说明

3.1 sono配置

toml文件进行mysql的链接信息、日志路径等相关的配置:

[log]
dir = "./logs"

[Mysql]
UserName = "sonofelice"
Password = "123456"
IpHost = "127.0.0.1:8902"
DbName = "sono_mysql"

3.1 sono工程启动

./sono ../conf/conf.toml

3.3 单测

为方便开发者使用,框架集成了goCheck测试框架,完善了go单测的功能。

goframe's People

Contributors

sonofelice avatar brookwang avatar

Stargazers

Roman avatar

Watchers

 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.