Skip to content

Instantly share code, notes, and snippets.

@utopiaprince
utopiaprince / gist:4d739a2ec6ca1b29e0f237138c91b02f
Created August 6, 2017 01:39
go计算提供经纬度的两点距离
package compute
import (
"math"
)
// 地球半径,单位米
const R = 6367000
// lonA, latA分别为A点的纬度和经度
@YumaInaura
YumaInaura / 00_README.md
Last active June 9, 2024 17:39
Golang — Understanding channel, buffer, blocking, deadlock and happy groutines.

Golang — Understanding channel, buffer, blocking, deadlock and happy groutines.

I was so confused to understand behaviior of Golang channels, buffer, blocking, deadlocking and groutines.

I read Go by Example topics.