Code Monkey home page Code Monkey logo

devying.github.io's People

Watchers

 avatar  avatar

devying.github.io's Issues

golang 接口总结 | 熠熙轻雷

https://devying.github.io/2018/05/28/golang%E6%8E%A5%E5%8F%A3/

定义接口代表一种调用契约,是多个方法声明的集合从内部看接口本身也是一种结构类型,只是编译器会对其作出很多限制。 不能有字段 不能定义自己的方法 只能声明方法不能实现 可嵌入其他接口类型接口通常以er作为名称后缀,方法名是声明组成部分,但是参数可不同或者省略。123456789101112131415161718192021222324type tester interface { te

golang变量和常量总结 | 熠熙轻雷

https://devying.github.io/2018/01/01/golang%E5%8F%98%E9%87%8F%E5%92%8C%E5%B8%B8%E9%87%8F/

变量Go变量总是有固定的数据类型,类型决定了变量内存的长度和存储格式。我们只能修改变量值,无法改变类型。 通过类型转换或者指针操作,我们可以用不同方式修改变量值,但是这并不意味着改变了变量类型。 关键字var可以用于定义变量,运行时内存分配操作会确保变量自动初始化为二进制零值,避免出现不可预测行为。如果显式提供初始化值,可以省略变量类型,由编译器推断。 123var x int //自动初始化

golang map总结 | 熠熙轻雷

https://devying.github.io/2018/03/25/golangmap/

字典作为无序键值对集合,字典要求val必须是支持相等运算符(==,!=)的数据类型,比如数字、字符串、指针、数组、结构体,以及对应接口类型。访问不存在的键值,默认返回零值,不会引发错误。但是推荐使用ok-idiom模式对字典进行迭代的时候每次返回的键值顺序都是不一样的。字段不支持cap。因内存访问安全和哈希算法等缘故,字段被设计成”not addressable”,故不能直接修改value成员(结

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.