Re: [go-nuts] Clarification on unsafe conversion between string <-> []byte

2019-09-21 Thread Dan Kortschak
func bytesToString(b []byte) string { return *(*string)(unsafe.Pointer()) } https://play.golang.org/p/azJPbl946zj On Fri, 2019-09-20 at 13:30 -0700, Francis wrote: > Thanks Ian, that's a very interesting solution. > > Is there a solution for going in the other direction? Although I >

[go-nuts] Implementation of the Hungarian Algorithm for the assignment problem

2019-09-21 Thread Charles Haynes
I've put up a package that implements the Munkres's Hungarian Algorithm for solving the assignment problem. It's a transliteration of Kevin Stern's O(n^3) Java version found at https://github.com/KevinStern/software-and-algorithms It works on non-square matrices, and allows negative costs Enjoy

[go-nuts] Re: Implementation of the Hungarian Algorithm for the assignment problem

2019-09-21 Thread Jason E. Aten
You might want to include a link to your project. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this

[go-nuts] Re: CreateFile hello.go: The system cannot find the file specified

2019-09-21 Thread Rick
Please share hello.go Seems likely it's a Windows vs. *nix file file path issue. On Saturday, 21 September 2019 17:08:54 UTC-7, Kapil Dev wrote: > > Hello Folks > > I am novice in Golang. I just installed Golang on my window based machine > and following are env details > > > > [image:

[go-nuts] Re: CreateFile hello.go: The system cannot find the file specified

2019-09-21 Thread Shani kumar
Navigate to the location of file hello.go and then try to run it. like this---E:\Projects\Go\src>go run hello.go On Sunday, September 22, 2019 at 5:38:54 AM UTC+5:30, Kapil Dev wrote: > > Hello Folks > > I am novice in Golang. I just installed Golang on my window based machine > and following

[go-nuts] CreateFile hello.go: The system cannot find the file specified

2019-09-21 Thread Kapil Dev
Hello Folks I am novice in Golang. I just installed Golang on my window based machine and following are env details [image: env_Capture.JPG] But i am getting error "*CreateFile hello.go: The system cannot find the file specified.*"; while ring to execute with following command [image: