ITeye博客

Go 保留字关键字,运算符

xxtianxiaxing · 2013-05-10 16:32 · Go · 编程语言 · Markdown

Go 保留字关键字

 

break

default

func

interface

select

case

defer

go

map

struct

chan

else

goto

package

switch

const

fallthrough

if

range

type

continue

for

import

return

var

 

 

Go 支持普通的数字运算符,列出了当前支持的运算符,以及其优先级。它们全部是从左到右结合的。

 

Precedence                      Operator(s)

-------------------------------------------------------

Highest                            * / % << >> & &^

                                          + - | ^

                                          == != < <= > >=

                                          <-

                                          &&

Lowest                             ||

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。