Giter Site home page Giter Site logo

go-clean-architecture's Introduction

Hello GitHub Fans 👋

GIF

I'm luozhiyun

✨ Quick Facts

  • 👨🏽‍💻 I’m currently working @Tencent (Golang & C++ Dev.)
  • 🌱 I’m currently learning Rust
  • 💬 Ask me about anything related to Golang, DB, Java
  • ⚡️ Fun-Fact: I working out at 8am 🙃
  • 🎿 Hobbies other than coding : Reading or about History and Philosophical , Playing Games, Thinking about writing blogs🤖..
  • 📫 How to reach me: [email protected]
  • 📖 My Blog:luozhiyun`s Blog - 我的技术分享

🛠 技术栈 | Tech Stack

Golang、Java、MySQL、Git、Linux、Kubernetes、Service Mesh

📄文章 | Articles

深入理解Go语言系列文章

深入TiDB源码

深入k8s

深入Istio源码

🪴More about me

关于我

2021年总结

2020年总结

I love to make friends. so if you want to say hi, I'll be happy to meet you more!😊

go-clean-architecture's People

Contributors

luozhiyun993 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

go-clean-architecture's Issues

main.go undefined: InitServer

嗨 Luo,最近在学习Golang,刚刚拜读了你的《Golang 简洁架构实战》,很有收获!感谢你的分享。
BTW,刚刚尝试运行了示例项目,不知道这个报错怎么解决呢?

go run cmd/main.go
# command-line-arguments
cmd/main.go:4:12: undefined: InitServer

新增 endpoint 层

Hello , 刚看了你的《Golang 简洁架构实战》,感觉和我们的做法非常契合。关于 api 层的设计有一点想讨论下。

我们从 go-micro 借用了 endpoint 这个名词,把 api 层拆分成 endpoint 和 usecase 两层。enpoint 是最外层入口,负责接卸 HTTP,CLI,GRPC 等不同形式的请求,统一包装后调用 usecase 层的业务逻辑 func(ctx, req) (resp, err),然后再将结果返回给 HTTP 或者 GRPC。

这样的做法更容易达到简洁架构的第三点要求:

独立于用户界面。UI可以很容易地改变,而不用改变系统的其他部分。例如,一个Web UI可以被替换成一个控制台UI,而不改变业务规则

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.