The hype about KI software is hitting amelio.de. Especially after hearing reports that using chatGPT via API may allow more than using it via openai.com Website, I wanted to check it out programmatically. Meaning, I have to get an API key first. You need You set up your personal payment plan at https://platform.openai.com/account/billing/overview. Billing is […]
Schlagwort: programming
Kategorien
go tcp, go goroutine
My cloud server (hetzner cloud) shall get a tcp message and respond. Here is the example in go. On the cloud server, run this go program: We can see, the server responds when sending something with nc or netcat, from the localhost: Besides allowing the port, we need to allow addresses other than localhost:
Kategorien
go get k8s nodes
Simple example to ask for the nodes of a k8s cluster – using the go language. You will find the downloaded modules under ~/go/pkg/mod/k8s.io, for example. Now go run again, it compiles and runs, but… Compare to this example: What’s the TODO ? It is a function name TODO ! In the main function, you […]