Giter Site home page Giter Site logo

go_study's Introduction

go_study

golang的内建变量类型

内建变量类型

golang切片

golang 切片的结构

切片的实现

golang 包和封装

命名规范

  • 名字一般使用CamelCase
  • 首字母大写:public
  • 首字母小写:private

  • 每个目录一个包,目录名可以跟包名不一样 示例
  • main包包含可执行入口 示例
  • 为结构定义的方法必须放在同一个包内 示例
  • 可以是不同文件 示例

如何扩充系统类型或者别人的类型

GOPATH下目录结构

  • go build来编译
  • go get 获取第三方库(设置国内代理)
  • go install产生pkg文件和可执行文件
  • go run直接编译运行

golang接口duck typing 组合

示例

go_study's People

Contributors

wangzy0327 avatar

Watchers

James Cloos avatar  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.