[go-nuts] Partial Slice Swapping

2018-10-27 Thread Sayan Shankhari
Hello Masters, This is from a beginner in go. Please read the code for Swapping a 64 element array using two 32 element arrays. I have used two ways (OPTIONs), one is working, the other is not. Please tell me where I am wrong and what is the real concept in this language. Thank You. -- You rec

[go-nuts] help seek: creating and using go package

2018-09-04 Thread Sayan Shankhari
Hello Masters, Probably I am making some nonsense post here and disturbing you but as a beginner, I want to know how in Go I can implement the following. If I can not, please suggest me suitable solution: 1. Create a package "myNum" 2. containing data type like: type Num struct { n, d int // nume