Logo Image

go

  • Go1

    go的一些入门 Go Advantages Go advantages code run fast garbage collection simpler objects concurrency is efficient (并发性好) language machine language assembly language high-level language Compiled 编译型语言 类似C C++ JAVA Interpretation 解释型语言 类似 Python JAVA,当执行的时候回将源代码翻译为机器执行的代码 所以会消耗时间 Object 虽然在go语言中 没有意义上的对象.但是struck 充当了类似的角色 Concurrency并发 如果在没有高并发会遇到 Moore law 18个月的晶体管会翻倍 硬件性能增长收到限制 功耗会增加 parallelism并行 variables 命名规则 keyword避免掉 declarations 申明变量 var x int var 是keyword x 是变量的名称 int 是类型 可以多行命名变量 var x,y,z int 类型 Integer (only integer value ) Floating Point (Fractional decimal value, may use different with hardware) String (seqyebces characters) Init初始化变量
    Read Article