魏长东

weichangdong

东邪

golang初始化结构体

type ttt struct {
		Score int
		Key   int
	}
	var idArrList = []ttt{{100, 1}, {200, 2}, {400, 4}}

	var idArrList2 = []struct {
		Score int
		Key   int
	}{{100, 1}, {200, 2}, {400, 4}}

letsgo.kim_.png