Did any #Go developers need code to get a zero value of a struct but without knowing the layout of the struct itself?
The only thing I could come up with was:
func zero[T any](v T) T {
 z := &v
 zz := reflect.ValueOf(z).Elem()
 zz.Set(reflect.Zero(reflect.TypeOf(v)))
 return *z
}
And see here an example of usage: https://go.dev/play/p/Aqzc_nRzOcP
I needed it in order to get zero copies of random structs so I could test that some marshal/unmarshal functionality is a bijection.
Is this a decent way to do it? Are there alternatives?
The US government shutdown has made my job a little less certain.
I work as a civilian contractor for the US Department of Defense. I'm employed by a company called Oteemo and they have the DOD contract that I'm on.
My contract was supposed to be until next May, but apparently, they can decide to just cancel the contract in the middle, and that's what they decided to do, because I'm a programmer and not a soldier.
I'm not out of a job. I'm still employed by Oteemo, and they'll put me on deck until they renew the contract. So I'm not currently in any financial trouble or anything.
But, if this drags on, Oteemo could decide they don't want me for a different contract and let me go. So, I'm looking for something new. I want to get ahead of this and not be out of work right now.
I'm a full-stack or back-end web developer with over twenty years of professional experience. I've mostly worked in go and PHP, but I'm also good in Python, and can learn anything else. I've also done some basic DevOps.
I've worked as a Team Lead and Senior Architect. In the last few years, my work has focused on microservices.
I'm looking for something based in the US, but remote. I'd be open to in office on the Southwest side of Houston, TX (Sugar Land would be better).
I might consider relocation to another country, but it would have to be a warm climate and a safe place for kids with access to an international school.
I have a résumé and a LinkedIn, and will update them both soon.
Please feel free to DM me, email, IM on Jabber, or just call/text if you have any leads. And I'd appreciate it if you'd boost this for visibility.
#FediHire #GetFediHired #LookingForWork #Programming #GovernmentShutdown #golang #PHP #WebDev
The US government shutdown has made my job a little less certain.
I work as a civilian contractor for the US Department of Defense. I'm employed by a company called Oteemo and they have the DOD contract that I'm on.
My contract was supposed to be until next May, but apparently, they can decide to just cancel the contract in the middle, and that's what they decided to do, because I'm a programmer and not a soldier.
I'm not out of a job. I'm still employed by Oteemo, and they'll put me on deck until they renew the contract. So I'm not currently in any financial trouble or anything.
But, if this drags on, Oteemo could decide they don't want me for a different contract and let me go. So, I'm looking for something new. I want to get ahead of this and not be out of work right now.
I'm a full-stack or back-end web developer with over twenty years of professional experience. I've mostly worked in go and PHP, but I'm also good in Python, and can learn anything else. I've also done some basic DevOps.
I've worked as a Team Lead and Senior Architect. In the last few years, my work has focused on microservices.
I'm looking for something based in the US, but remote. I'd be open to in office on the Southwest side of Houston, TX (Sugar Land would be better).
I might consider relocation to another country, but it would have to be a warm climate and a safe place for kids with access to an international school.
I have a résumé and a LinkedIn, and will update them both soon.
Please feel free to DM me, email, IM on Jabber, or just call/text if you have any leads. And I'd appreciate it if you'd boost this for visibility.
#FediHire #GetFediHired #LookingForWork #Programming #GovernmentShutdown #golang #PHP #WebDev
From The OpenBSD Guy:
"In this video, I walk through how to build LiteIDE on OpenBSD for Go ( #Golang) development.
Thanks to the absence of Electron, #LiteIDE uses Qt and is built with portability in mind, which makes compiling and running it on #OpenBSD surprisingly simple. Just a couple of small tweaks and you’re good to Go!
There’s also a quick rant about Electron and what "portability" really means 😅"
From The OpenBSD Guy:
"In this video, I walk through how to build LiteIDE on OpenBSD for Go ( #Golang) development.
Thanks to the absence of Electron, #LiteIDE uses Qt and is built with portability in mind, which makes compiling and running it on #OpenBSD surprisingly simple. Just a couple of small tweaks and you’re good to Go!
There’s also a quick rant about Electron and what "portability" really means 😅"
Found in one of my many unfinished projects:
ntdll, err := syscall.LoadLibrary("ntdll")
if err != nil {
 panic("Could not load ntdll (how are you even reading this?)")
}
On this topic, calling all #Go #developers interested in lending a hand.
I have two major goals for increasing the unit-test coverage in the individual packages that #GoActivityPub is comprised of.
These are tasks that are very accessible even for people new to the #ActivityPub spec and I would prefer to support new developers that want to give it a try than wait until I have time to do them myself.
The only requirement I have is that if you want to help, you already have some public Go projects that I can have a look at.
Point of contact is on this email (after you "deobfuscate" it): goap@federated·id
Well, after an initial failure, my #NLNet grant application for #GoActivityPub has been accepted under the NGI0 Commons Fund. 💪
This means that for the next months my main focus will be fully on making #ActivityPub in the #Go programming language easier for other developers.
If you're one of them, reach out, I want to know what you struggle with and how I can help with that.
On this topic, calling all #Go #developers interested in lending a hand.
I have two major goals for increasing the unit-test coverage in the individual packages that #GoActivityPub is comprised of.
These are tasks that are very accessible even for people new to the #ActivityPub spec and I would prefer to support new developers that want to give it a try than wait until I have time to do them myself.
The only requirement I have is that if you want to help, you already have some public Go projects that I can have a look at.
Point of contact is on this email (after you "deobfuscate" it): goap@federated·id
I think regular programming-languages need to incorporate GPU programming capabilities.
For example, I would like to be able to program a GPU using the Go programming-language.
I think regular programming-languages need to incorporate GPU programming capabilities.
For example, I would like to be able to program a GPU using the Go programming-language.
🌟 Go 1.25.3 and 1.24.9 are released!
📢 Announcement: https://groups.google.com/g/golang-announce/c/YEyj6FUNbik/m/_SDlIvxuCAAJ
📦 Download: https://go.dev/dl/#go1.25.3
🌟 Go 1.25.3 and 1.24.9 are released!
📢 Announcement: https://groups.google.com/g/golang-announce/c/YEyj6FUNbik/m/_SDlIvxuCAAJ
📦 Download: https://go.dev/dl/#go1.25.3
I am relatively certain that #golang is as good as imperative #programming can get. It's still never ever gonna be as 👌🏻as #rustlang tho 😋
I'm not sure, but the code might do something with UUIDs.
I'm not sure, but the code might do something with UUIDs.
hmmm. Putting a slog in http.Server's ErrorLog is easy, but the output is not what I want. 
I *just* want slog.Error to be used, but the TextHandler makes everything structured  #golang
 
      
  
             
      
  
             
      
  
               
      
  
              
           
      
  
             
      
  
             
      
  
             
      
  
             
      
  
                            
                        
                         
      
  
             
      
  
             
      
  
                            
                        
                         
      
  
             
      
  
                            
                        
                        