Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Go language Business Framework Snow

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to use the Go language business framework Snow. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Snow

Snow is an easy-to-use Go language business framework with simple logic design and supports common business scenario patterns such as HTTP services, queue scheduling, task scheduling and scripting tasks.

Goals

We are committed to making PHPer more easily cut into the development of the go language, in the choice of business framework in line with the design ideas of the mainstream framework of PHP, quickly familiar with the framework with lower learning cost, and committed to the development of business logic.

Features

HTTP service: modular design based on gin, easy to use, lightweight enough to support smooth restart

Task scheduling: modular design based on cron, easy to use

Queue scheduling: based on self-developed high-performance queue scheduling service worker, general Queue interface, decoupling queue scheduling and underlying queue driver; support smooth shutdown

Cache: general cache interface design, core components implement plug-in redis driver support, scalable

Database: using mature ORM libraries with rich database driver support and features

Queue: general interface design. The framework implements redis and alimns as queue underlying drivers and supports extensibility.

Config: uses the configuration file format of Toml semantics, easy to use

Logger: encapsulation based on logrus, embedded context general data acquisition and trace_id tracking

Request and Response: defines the entity format of input and output data

Curl: an easy-to-use Curl request library

Scaffolding: convenient and quick to create new projects, can be upgraded with one click

Quick startRequirements

Go version > = 1.12

Global environment configure (Linux/Mac)

Export GO111MODULE=onexport GOPROXY= https://goproxy.ioInstallationgo get-u github.com/qit-team/snow/tool/snowcd $GOPATH/srcsnow new snow-demoBuild & Runcd snow-demosh build/shell/build.shbuild/bin/snowTest democurl "http://127.0.0.1:8000/hello" on how to use Go language business framework Snow to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report