This is my seventh day of learning go.
In this time ,i learn
(1)Type parameters,Generic types.i think these are abstract .The type parameters of a function appear between brackets, before the function's arguments.
(2)channel
The data flows in the direction of the arrow.
buffered channel,buffer length is the second argument to make
to initialize a buffered channel:
Only the sender should close a channel, never the receiver. Sending on a closed channel will cause a panic.
select statement,a select
blocks until one of its cases can run, then it executes that case. It chooses one at random if multiple are ready.
i complete the go reading,i first think it need me a week to read,but i don't insist,so it cost so many days,so this time i need to spend time to recall what i learned last time.it very cost.i need to look some vedios to deepen the learning of go ,i think my understanding of go is very easy.