這一章我們主要介紹了Go語言的一些語法,通過語法我們可以發(fā)現(xiàn)Go是多么的簡單,只有二十五個(gè)關(guān)鍵字。讓我們再來回顧一下這些關(guān)鍵字都是用來干什么的。
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
上面這二十五個(gè)關(guān)鍵字記住了,那么Go你也已經(jīng)差不多學(xué)會(huì)了。