---
title: "Go 保留字关键字，运算符"
author: "xxtianxiaxing"
date: "2013-05-10T16:32:03Z"
tags: []
categories: ["编程语言"]
slug: "go"
draft: false
lastmod: "2013-05-10T16:43:32Z"
id: 1866861
url: "https://xylonwang.iteye.com/blog/1866861"
---

**Go 保留字关键字**

 

[**break**](/admin/blogs/1866861/edit)

**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                            * / % &lt;&lt; &gt;&gt; & &^**

                                          **+ - | ^**

                                          **== != &lt; &lt;= &gt; &gt;=**

                                          **&lt;-**

                                          **&&**

**Lowest                             ||**