RE: [go-nuts] Re: Slice conversion function not working on big endian platform
tc on big-endian machine but working on little endian . From: 'Pokala Srinivas' via golang-nuts Sent: 08 May 2024 15:39 To: golang-nuts ; Brian Candler Subject: [EXTERNAL] Re: [go-nuts] Re: Slice conversion function not working on big endian platform
Re: [go-nuts] Re: Slice conversion function not working on big endian platform
There is typo mistake while entering, below is the code snippest: package main import ( "fmt" "unsafe" ) type slice struct { ptr unsafe.Pointer len int cap int } func Slice[To, From any](data []From) []To { var zf From var zt To var s = (*slice)(un