I read the Go docs *once*, but I'm pretty sure you're right.

I think to make a slice out of an array, you'd do something like the_array[:].

All to say why I don't like Go. :)

On May 23, 2015 1:14:55 PM CDT, C Cirello <[email protected]> wrote:
>Uhm I might be mistaken, but I guess [8192]byte is an array, and []byte
>are
>slices - therefore they are different types.
>
>        - CC
>
>2015-05-23 17:53 GMT+02:00 erik quanstrom <[email protected]>:
>
>> well, at least dennis wrote "why pascal is not my favorite
>programming
>> language".
>>
>> from go build
>>
>>         ./cat.go:36: cannot use data (type [8192]byte) as type []byte
>in
>> argument to cat
>>
>> what?  perhaps i'm missing something about the language, but it sure
>seems
>> ironic.
>>
>> - erik
>>
>>

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Reply via email to