Golang - 型別宣告


Sep 05, 2021

string

var test1 string = "123"

int

var test1 int = 1

float64

var test1 float64 = 1.1

bool

var test1 bool = true

短變數宣告

test1 := 100
test2, test3 := 1.1, "123"
#golang #GO







你可能感興趣的文章

關於 React 小書:ComponentWillMount, ComponentDidMount, ComponentWillUnmount

關於 React 小書:ComponentWillMount, ComponentDidMount, ComponentWillUnmount

React-[路由篇]-SPAs與React Router (上)

React-[路由篇]-SPAs與React Router (上)

用React框架重構PHP網頁心得

用React框架重構PHP網頁心得






留言討論





2
2
2