!golang@programming.dev
This is a community dedicated to the go programming language.
Useful Links:
Rules:
!golang
@programming.devI made some Go scripts that require user input fmt.Scanln(&fileName)
during the execution. When I use the Go debugger built into VSCode which is the launch type, it works but there is no way to enter any prompts when your exeuctable asks for a input. With other programming languages like NodeJS and PHP, there is way to run the scripts in "debugging mode" where it will run the code but before it executes the code, it will wait to attach to a debugger on your system and then execute the code. This has always allowed me to use the terminal for inputs in the executable.
For example to do this in NodeJS, you will use node --inspect-brk=0.0.0.0 main.js
instead of node main.js
and then run the debugger in VSCode to attach it to the executing script. Is there a way to do this with Go? Do I need to set something up to achieve this?
I am on Linux Mint and cannot find any commands to run go run .
but to wait for a debugger to attach to the executable before executing.
https://utcc.utoronto.ca/%7Ecks/space/blog/programming/Go123LinknameComingProblem
https://brandur.org/fragments/sqlc-2024
https://blog.meain.io/2024/golang-context/
https://github.com/deepmap/oapi-codegen/releases/tag/v2.2.0
Big announcements In case you've missed it, we've got a few big announcements as maintainers of oapi-codegen which we'd recommend you read in more depth. oapi-codegen is moving to its own org Th...
cross-posted from: https://discuss.online/post/8349829
Hello,
We're looking for GoLang contributors to help with the federation service. We're happy to have people that contribute code or help with code reviews.
If you know anyone or if you're interested please reach out!
Email: hello@sublinks.org Mastodon: https://utter.online/@sublinks Online form: https://sublinks.org/join_organization.html
Thanks, jgrim
https://github.com/adhd42/oxigen
Social media image generator. Contribute to adhd42/oxigen development by creating an account on GitHub.
After asking for a first programming language here, I've decided learning Go. After some searching I've found that the beginner learning resources are some years old. Can anyone suggest some beginner resources for someone that likes to learn by doing stuff? Thank you.
https://www.jvt.me/posts/2024/05/09/oapi-codegen-sustainable/
Announcing a request for sponsorship to continue to allow allocating more time to `oapi-codegen` as well as to make more ambitious changes to the project.