abobla@lemm.ee to Linux@lemmy.ml · edit-21 day agoMalicious Go Modules Deliver Disk-Wiping Linux Malware in Advanced Supply Chain Attackthehackernews.comexternal-linkmessage-square27fedilinkarrow-up1203arrow-down13file-text
arrow-up1200arrow-down1external-linkMalicious Go Modules Deliver Disk-Wiping Linux Malware in Advanced Supply Chain Attackthehackernews.comabobla@lemm.ee to Linux@lemmy.ml · edit-21 day agomessage-square27fedilinkfile-text
Packages: github.com/truthfulpharm/prototransform github.com/blankloggia/go-mcp github.com/steelpoor/tlsproxy
minus-squareabobla@lemm.eeOPlinkfedilinkarrow-up27·1 day agoI’m already writing my own dependency to check if a number is even: if (number == 0) return true if (number == 1) return false if (number == 2) return true if (number == 3) return false I’m almost there!
minus-squareCptKrkIsClmbngThMntn [any]@hexbear.netlinkfedilinkEnglisharrow-up19arrow-down1·1 day agoYou’ve probably covered 90% of use cases there so you’re doing well! I’m trying to port your code to Rust but the compiler keeps giving me an error about non-exhaustive match arms
minus-squareKazumara@discuss.tchncs.delinkfedilinkarrow-up9·1 day agoIt’s quite cruel of that compiler not being happy until you’re exhausted.
minus-squareabobla@lemm.eeOPlinkfedilinkarrow-up7·1 day agothis is so sad, I’m gonna pray for you in rust
minus-squareCptKrkIsClmbngThMntn [any]@hexbear.netlinkfedilinkEnglisharrow-up8·1 day agoAssuming you’re monotheistic, I believe you can use an mpsc channel to send those asynchronously.
I’m already writing my own dependency to check if a number is even:
if (number == 0) return true if (number == 1) return false if (number == 2) return true if (number == 3) return false
I’m almost there!
You’ve probably covered 90% of use cases there so you’re doing well!
I’m trying to port your code to Rust but the compiler keeps giving me an error about non-exhaustive match arms
It’s quite cruel of that compiler not being happy until you’re exhausted.
this is so sad, I’m gonna pray for you in rust
Assuming you’re monotheistic, I believe you can use an mpsc channel to send those asynchronously.