Skip to content

WangYanfeng/GolangSampleCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

GolangSampleCode

This project contains some Golang sample codes.

߅ sample package: grammer and basic package.

߅ senior package:


sample package

߅ bytes pkg

  • bytes 字符串处理
  • bytes.Buffer
  • bytes.Reader

߅ channel

  • 通道创建与使用
  • 超时处理

߅ class

  • 类创建
  • 继承

߅ container pkg

  • list 双向链表
  • heap 堆
  • ring 环形链表

߅ file

  • os pkg handle file
  • ioutil pkg handle file
  • zip pkg

߅ http pkg

  • http Client
  • http Server
  • http router(Multiplexer)

߅ io

  • bufio pkg
  • io pkg
  • io/util pkg

߅ json pkg

  • 序列化
  • 反序列化

߅ mysql

  • CRUD

߅ reflect pkg

  • 获取字段
  • 获取方法
  • 强制类型转换

߅ rpc pkg

  • Server
  • Client
  • 自定义解码器

߅ slice

  • 创建/增加

߅ socket net pkg

  • Server
  • Client
  • 设置 Deadline

߅ strconv pkg

  • 类型转换

߅ strings pkg

  • 字符串处理
  • string.Replaer
  • string.Reader

߅ sync pkg

  • sync.WaigGroup
  • sync.Mutex
  • sync.RWMutex
  • sync.Pool
  • sync.Once
  • sync.Cond
  • sync/atomic pkg

߅ testing pkg

  • Golang UT

߅ time pkg

  • 时间
  • 定时器

senior miniproj

߅

About

This is some sample code using Golang.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages