go-study

module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2023 License: MIT

README

go-study

go语言的个人学习项目,除了介绍go基础语法和基本数据类型,还包括但不限于:go程(goroutine)、定时任务(cron job)、类型转换(type conversion)、redis、etcd、kafka、elastic、unit-test、godoc、release package(发包)等示例。
  • 几乎每个章节都有详细的README.md单元测试用例,请仔细阅读。
所有go代码均经过实测,后续也会保持更新,欢迎star或参与共建。
All go codes have been measured and will be updated in the future. Star or co construction is welcome.

在正式写go代码前,强烈建议阅读下列文章:

Getting Started with Go Programming
https://www.programiz.com/golang/getting-started

How to Write Go Code
https://go.dev/doc/code

Documentation
https://pkg.go.dev/cmd/go

Go Doc Comments
https://tip.golang.org/doc/comment

Effective Go
https://go.dev/doc/effective_go

Go by Example
https://gobyexample.com/

The Go Memory Model
https://go.dev/ref/mem

Uber Go Style Guide
https://github.com/uber-go/guide
  • 本项目主要学习的是go的语言特性,力求按照真实的go开发项目结构组织每个章节的代码,项目结构是组织代码的重要形式,每一种编程语言,都有其特定的组织方式,也是编程进阶的重点内容,遗憾的是:国内很多都是速成的编程教程,对项目结构并没有过多涉及。
  • go是强类型语言,强类型语言的类型转换也是重点内容,我会在专门的章节进行介绍。
  • 单元测试外,go不推荐使用下划线的方式命名,因此,我的所有go项目,将遵守这一规范。
  • hello-go是我对go项目工程化实践的样板项目,项目地址:https://github.com/fastbpmn/hello-go

Directories

Path Synopsis
date-time module
Package godoc godoc示例
Package godoc godoc示例
routine module

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL