Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Tue, 11 Aug 2020 07:44:00 +0000 Upgrading CockroachDB from dep to Go Modules 1 points posted by kenny https://www.cockroachlabs.com/blog/dep-go-modules/ 4426 Tue, 11 Aug 2020 07:44:00 +0000 A theoretical performance guide 3 points posted by kenny http://sled.rs/perf 4425 Mon, 10 Aug 2020 17:01:00 +0000 blocks - Go-idiomatic View Engine 1 points posted by iris-go https://github.com/kataras/blocks 4424 Mon, 10 Aug 2020 02:34:00 +0000 twtxt v0.0.12 - a Self-Hosted, Twitter™-like Decentralised microBlogging platform 📣<b>ANN</b>&nbsp;twtxt v0.0.12 (<a href="https://github.com/prologic/twtxt/releases/tag/0.0.12">https://github.com/prologic/twtxt/releases/tag/0.0.12</a>)&nbsp;now officially released! 🎉 <b>HIGHLIGHTS:</b> Feed avatars, Hashtag searching, Formatting toolbar, macOS Brew Formulae, Command-line client and much much more! 🤗<br><br><p class="f4 mt-3"><g-emoji class="g-emoji" alias="closed_book" fallback-src="https://github.githubassets.com/images/icons/emoji/unicode/1f4d5.png" style="box-sizing: border-box; font-family: &quot;Apple Color Emoji&quot;, &quot;Segoe UI&quot;, &quot;Segoe UI Emoji&quot;, &quot;Segoe UI Symbol&quot;; font-size: 1.25em; line-height: 1; vertical-align: -0.075em;">📕</g-emoji>&nbsp;twtxt is a Self-Hosted, Twitter™-like Decentralised microBlogging platform. No ads, no tracking, your content, your data.</p><div class="mt-3 d-flex flex-items-center"><svg mr="2" classes="flex-shrink-0" height="16" class="octicon octicon-link flex-shrink-0 mr-2" viewBox="0 0 16 16" version="1.1" width="16" aria-hidden="true" style="color: rgb(36, 41, 46); font-family: -apple-system, system-ui, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 14px; background-color: rgb(255, 255, 255);"><path fill-rule="evenodd" d="M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"></path></svg></div> 0 points posted by James Mills https://github.com/prologic/twtxt/releases/tag/0.0.12 4423 Sun, 09 Aug 2020 23:23:00 +0000 Excelize 2.3.0 Released - Go library for reading and writing spreadsheets (Excel) files 3 points posted by xuri https://github.com/xuri/excelize/releases 4422 Sun, 09 Aug 2020 18:01:00 +0000 GitBook to GitHub Wiki Convert any (local, or fetched) GitBook 2020 to GitHub Wiki 2 points posted by iris-go https://github.com/kataras/gitbook-to-wiki 4421 Sun, 09 Aug 2020 10:49:00 +0000 twtxt v0.0.11 decentralised self-hosted micro-blogging Twitter™like 🎉 **ANN:** [twtxt v0.0.11](https://github.com/prologic/twtxt/releases/tag/0.0.11) is now out and published. Great new set of features including Password, Reset, Avatars, Media Uploads and a brand new APIv1. 🤗 0 points posted by James Mills https://github.com/prologic/twtxt/releases/tag/0.0.11 4420 Sun, 02 Aug 2020 14:03:00 +0000 Go Generics basic syntax 3 points posted by kenny https://www.ardanlabs.com/blog/2020/07/generics-01-basic-syntax.html 4419 Sat, 01 Aug 2020 09:55:00 +0000 Different approaches to HTTP routing in Go 4 points posted by kenny https://benhoyt.com/writings/go-routing 4418 Fri, 31 Jul 2020 20:30:00 +0000 Gotchas in Golang 5 points posted by Amit arora https://www.golangprograms.com/go-programming-language.html 4417 Fri, 31 Jul 2020 08:04:00 +0000 4 practical principles of high-quality database integration tests in Go 3 points posted by roblaszczak https://threedots.tech/post/database-integration-testing 4416 Thu, 30 Jul 2020 10:10:00 +0000 Go Design Draft: First Class Fuzzing #fuzzing 3 points posted by kenny https://go.googlesource.com/proposal/+/master/design/draft-fuzzing.md 4415 Tue, 28 Jul 2020 15:47:00 +0000 twtxt v0.10.0 (bug fix) Self-hosted, decentralised Twitter™-like micro-Blogging platform! Join us! 0 points posted by James Mills https://github.com/prologic/twtxt/releases/tag/0.0.10 4414 Mon, 27 Jul 2020 15:15:00 +0000 twtxt v0.0.8 -- Self-Hosted, Decentralised Twitter™ like micro-Blogging. Now with subFeeds! 1 points posted by James Mills https://github.com/prologic/twtxt/releases/tag/0.0.8 4413 Sun, 26 Jul 2020 00:00:00 +0000 twtxt v0.0.7 Your self-hosted decentralised Twitter™-like. Come join the <a href="https://twtxt.net/">https://twtxt.net/</a>&nbsp;community! Help me develop twtxt (<i>the software</i>) by contributing! Help spread the word about twtxt, spin up your own instance and join in with your own! 1 points posted by James Mills https://github.com/prologic/twtxt/releases/tag/0.0.7 4412 Fri, 24 Jul 2020 22:53:00 +0000 Video: Go embed draft design 6 points posted by kenny https://www.youtube.com/embed/rmS-oWcBZaI 4411 Thu, 23 Jul 2020 13:47:00 +0000 Video: io/fs draft design by Russ Cox 4 points posted by kenny https://www.youtube.com/watch?v=yx7lmuwUNv8 4410 Thu, 23 Jul 2020 07:50:00 +0000 twtxt v0.0.6 is out and now available on https://twtxt.net/ <a href="https://github.com/prologic/twtxt">https://github.com/prologic/twtxt</a>&nbsp;(<a href="https://twtxt.net">https://twtxt.net</a>) For Hackers: twtxt is a decentralised micro-blogging platform based on plain-text files with a simple format For everyone else: twtxt is like Twitter but decentralised where you own your own content and you can run your own server!<br> 1 points posted by James Mills https://github.com/prologic/twtxt/releases/tag/0.0.6 4409 Thu, 23 Jul 2020 03:38:00 +0000 statping - Status Page for monitoring your websites and applications 4 points posted by Everton Marques https://github.com/statping/statping 4408 Thu, 23 Jul 2020 00:43:00 +0000 Bloaty puffs and the go compiler 3 points posted by kenny https://paper.dropbox.com/doc/Bloaty-Puffs-and-the-Go-Compiler--A4OkwhhEeIDfusOEt5ZYie6jAg-YiblPOe6AD2tKfEj5RzFT 4407 Wed, 22 Jul 2020 12:45:00 +0000 Optimizing a code intelligence backend @srcgraph 6 points posted by kenny https://about.sourcegraph.com/blog/optimizing-a-code-intel-backend 4406 Tue, 21 Jul 2020 06:24:00 +0000 twtxt v0.0.4 now with Markdown support! Sick of Twitter? 2 points posted by James Mills https://github.com/prologic/twtxt/releases/tag/0.0.4 4405 Mon, 20 Jul 2020 14:14:00 +0000 Best Golang packages which are quite useful for gophers <p>The Go standard library have several packages available for gophers to address the various programming-related issues which they encounter frequently.&nbsp;Besides, the core packages, there are also some third-party packages, which are quite useful for gophers. Moreover, most of these packages are open-source and free for usage. So, let us check out some important third-party Go packages which are useful for gopher working on various projects. The list contains popular Go packages for validations, JSON/XML/HTML parsing, Statistical calculation and more. Simple examples are also provided for some of them.</p> 1 points posted by Amit arora https://www.golangprograms.com/go-programming-language-packages.html 4404 Mon, 20 Jul 2020 06:24:00 +0000 NoiseTorch - Real-time microphone noise suppression on Linux. 7 points posted by kenny https://github.com/lawl/NoiseTorch 4403 Sat, 18 Jul 2020 21:25:00 +0000 Twtxt -- a twtxt web app and free public instance written inGo <p>twtxt is a <a href="https://twtxt.readthedocs.io/en/latest/" rel="nofollow" style="box-sizing: border-box; color: rgb(3, 102, 214);">twtxt</a>&nbsp;client in the form of a web application. <del style="box-sizing: border-box;">and command-line client. It supports multiple users and also hosts user feeds directly. It also has a builtin registry and search.</del></p> <p>There is also a publically (<em style="box-sizing: border-box;">free</em>) service online available at:</p><ul style="box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: rgb(36, 41, 46); font-family: -apple-system, system-ui, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: rgb(255, 255, 255);"><li style="box-sizing: border-box;"><a href="https://twtxt.net/" rel="nofollow" style="box-sizing: border-box; color: rgb(3, 102, 214);">https://twtxt.net/</a></li> </ul> 3 points posted by James Mills https://twtxt.net 4402 Sat, 18 Jul 2020 13:05:00 +0000 The Repository pattern: a painless way to simplify your Go service logic 3 points posted by roblaszczak https://threedots.tech/post/repository-pattern-in-go 4401 Thu, 16 Jul 2020 10:14:00 +0000 rss2twtxt - An RSS/Atom to twtxt feed aggregator written in Go. rss2twtxt (Source: <a href="https://github.com/prologic/rss2twtxt">https://github.com/prologic/rss2twtxt</a>) is an RSS/Atom to twtxt feed aggregator. It is both a command-line tool and a publically available free web service at https://feeds.twtxt.net/ 3 points posted by James Mills https://feeds.twtxt.net 4400 Thu, 09 Jul 2020 02:39:00 +0000 apikit - Generates Golang client and server based on OpenAPI2 (swagger) definitions 5 points posted by Marcel Franke https://github.com/ExperienceOne/apikit 4399 Wed, 08 Jul 2020 07:50:00 +0000 Using go analysis to fix your source code 5 points posted by gopher https://arslan.io/2020/07/07/using-go-analysis-to-fix-your-source-code 4398 Tue, 07 Jul 2020 18:46:00 +0000 Clean Architecture, 2 years later 4 points posted by Elton Minetto https://eltonminetto.dev/en/post/2020-07-06-clean-architecture-2years-later 4397 Mon, 06 Jul 2020 17:09:00 +0000 See Go in programming language trends 3 points posted by Everton Marques https://tjpalmer.github.io/languish 4396 Sat, 04 Jul 2020 15:53:00 +0000 Go is Boring...And That’s Fantastic! 6 points posted by kenny https://www.capitalone.com/tech/software-engineering/go-is-boring 4395 Thu, 02 Jul 2020 13:17:00 +0000 Hiring: Are you looking for golang roles across the world (tech job search engine 2.0.0-alpha) ? Post for&nbsp;tech job search engine 2.0.0-alpha -&gt; <a href="https://medium.com/@donutlloop/goopensource-dev-published-tech-job-search-engine-v2-0-0-alpha-f757098c85ae">https://medium.com/@donutlloop/goopensource-dev-published-tech-job-search-engine-v2-0-0-alpha-f757098c85ae</a> 0 points posted by Marcel Franke https://www.goopensource.dev/companies/go 4394 Thu, 02 Jul 2020 05:43:00 +0000 When microservices in Go are not enough: introduction to DDD Lite 4 points posted by roblaszczak https://threedots.tech/post/ddd-lite-in-go-introduction 4393 Wed, 01 Jul 2020 12:53:00 +0000 Golang how to unmarshal a subset of nested JSON data 3 points posted by m7shapan https://dev.to/m7shapan/golang-how-to-unmarshal-a-subset-of-nested-json-data-d84 4392 Wed, 01 Jul 2020 08:31:00 +0000 sql2slack - send sql results periodically to slack 5 points posted by Mohammed Al Ashaal https://github.com/alash3al/sql2slack 4391 Sun, 28 Jun 2020 20:43:00 +0000 Building a high performance JSON parser #json 7 points posted by kenny https://dave.cheney.net/high-performance-json.html 4390 Sat, 27 Jun 2020 15:47:00 +0000 How to benchmark: dbq vs sqlx vs GORM 4 points posted by pj https://medium.com/@rocketlaunchr.cloud/how-to-benchmark-dbq-vs-sqlx-vs-gorm-e814caacecb5 4389 Thu, 25 Jun 2020 05:11:00 +0000 🚀 fgprof is a sampling Go profiler for On-CPU as well as Off-CPU (e.g. I/O) time fgprof - 🚀 fgprof is a sampling Go profiler that allows you to analyze On-CPU as well as Off-CPU (e.g. I/O) time together. 7 points posted by kenny https://github.com/felixge/fgprof 4388 Wed, 24 Jun 2020 17:54:00 +0000 Accessing the browser's DOM from Go using WebAssembly <br> 4 points posted by geekme https://golangbot.com/go-webassembly-dom-access 4387 Wed, 24 Jun 2020 17:19:00 +0000 Introduction to WebAssembly - Run Go programs in the browser using WebAssembly <div>Learn how to run Go code in the browser using WebAssembly by developing a simple application to format JSON. <br></div><div>Go's cross compiler can be used to compile the Go code to WebAssembly Architecture. This compiled binary can be loaded from JavaScript and run in the browser.</div>This tutorial provides an introduction to WebAssembly and shows how to create a hello world web assembly program.<br> 6 points posted by geekme https://golangbot.com/webassembly-using-go 4386 Wed, 24 Jun 2020 14:53:00 +0000 Business Applications in Go: Things to know about DRY 3 points posted by m110 https://threedots.tech/post/things-to-know-about-dry 4385 Thu, 18 Jun 2020 10:46:00 +0000 NJson Package Unmarshal/Decode nested JSON by JSON Path 3 points posted by m7shapan https://github.com/m7shapan/njson 4384 Wed, 17 Jun 2020 00:17:00 +0000 The revised Go generics draft 5 points posted by kenny https://go.googlesource.com/proposal/+/refs/heads/master/design/go2draft-type-parameters.md 4383 Tue, 16 Jun 2020 22:24:00 +0000 The Next Step for Generics in Go 5 points posted by gopher https://blog.golang.org/generics-next-step 4382 Tue, 16 Jun 2020 20:03:00 +0000 Hiring: Senior Backend Software Engineer at Fast #sf <div>Our mission is to make buying online faster, safer and easier for everyone. Fast Login and Fast Checkout enable a one-click sign-in and purchasing experience that makes it easier for people to buy and merchants to sell. The company’s products work on any browser, device or platform to deliver a consistent, stress-free purchasing experience. Fast is entirely consumer-focused and invests heavily in its users’ privacy and data security. Headquartered in San Francisco, Fast is a privately held company funded by Stripe, Index Ventures, Susa Ventures, Kleiner Perkins and other renowned investors.<br style="box-sizing: border-box; color: rgb(81, 83, 87); font-family: Lato; font-size: 16px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(249, 249, 249); text-decoration-style: initial; text-decoration-color: initial;"><br></div> 3 points posted by gopher https://jobs.lever.co/fast/f741551c-b2cb-4e94-a717-f9f084be8b6d 4381 Tue, 16 Jun 2020 18:48:00 +0000 Pkg.go.dev is open source! <p>The Go team are excited to announce that the codebase for <a href="https://pkg.go.dev/" target="_blank" rel="noopener" style="color: rgb(0, 125, 156); text-decoration-line: underline;">pkg.go.dev</a>&nbsp;is now open source.&nbsp;The repository lives at <a href="https://go.googlesource.com/pkgsite" target="_blank" rel="noopener" style="font-size: 1.2rem; color: rgb(0, 125, 156); text-decoration-line: underline;">go.googlesource.com/pkgsite</a>&nbsp;and is mirrored to <a href="https://github.com/golang/pkgsite" target="_blank" rel="noopener" style="font-size: 1.2rem; color: rgb(0, 125, 156); text-decoration-line: underline;">github.com/golang/pkgsite</a>. We will continue using the Go issue tracker to track <a href="https://github.com/golang/go/labels/go.dev" target="_blank" rel="noopener" style="font-size: 1.2rem; color: rgb(0, 125, 156); text-decoration-line: underline;">feedback</a>&nbsp;related to pkg.go.dev.</p> 4 points posted by kenny https://blog.golang.org/pkgsite 4380 Mon, 15 Jun 2020 15:57:00 +0000 Hiring: Senior software engineer at Cantabular #remote <a href="http://sensiblecode.io/" class="bw fd gj gk gl gm" target="_blank" rel="noopener nofollow" style="-webkit-text-size-adjust: auto; box-sizing: inherit; color: inherit; -webkit-tap-highlight-color: transparent; background-image: url(&quot;data:image/svg+xml;utf8,<svg preserveAspectRatio=\&quot;none\&quot; viewBox=\&quot;0 0 1 1\&quot; xmlns=\&quot;http://www.w3.org/2000/svg\&quot;><line x1=\&quot;0\&quot; y1=\&quot;0\&quot; x2=\&quot;1\&quot; y2=\&quot;1\&quot; stroke=\&quot;rgba(41, 41, 41, 1)\&quot; /></svg>&quot;); background-size: 1px 1px; caret-color: rgb(41, 41, 41); font-family: medium-content-serif-font, Georgia, Cambria, &quot;Times New Roman&quot;, Times, serif; font-size: 21px; letter-spacing: -0.06300000101327896px; background-position: 0px calc(1em + 1px); background-repeat: repeat no-repeat;">Sensible Code</a>&nbsp;is looking for a senior software engineer to work on <a href="https://cantabular.com/" class="bw fd gj gk gl gm" target="_blank" rel="noopener nofollow" style="-webkit-text-size-adjust: auto; box-sizing: inherit; color: inherit; -webkit-tap-highlight-color: transparent; background-image: url(&quot;data:image/svg+xml;utf8,<svg preserveAspectRatio=\&quot;none\&quot; viewBox=\&quot;0 0 1 1\&quot; xmlns=\&quot;http://www.w3.org/2000/svg\&quot;><line x1=\&quot;0\&quot; y1=\&quot;0\&quot; x2=\&quot;1\&quot; y2=\&quot;1\&quot; stroke=\&quot;rgba(41, 41, 41, 1)\&quot; /></svg>&quot;); background-size: 1px 1px; caret-color: rgb(41, 41, 41); font-family: medium-content-serif-font, Georgia, Cambria, &quot;Times New Roman&quot;, Times, serif; font-size: 21px; letter-spacing: -0.06300000101327896px; background-position: 0px calc(1em + 1px); background-repeat: repeat no-repeat;">Cantabular</a>&nbsp;which is being used by the Office for National Statistics for dissemination process improvement for the 2021 Census 3 points posted by gopher https://medium.com/@SensibleCode/job-senior-software-engineer-golang-or-c-c-desirable-191aad29bf47 4379 Sat, 13 Jun 2020 16:36:00 +0000 ldapauthn - Webhook OpenLdap server for k8s written in go #authn #k8s #kubernetes #webhook <pre style="overflow-wrap: break-word; white-space: pre-wrap;"> <h2>LdapAuthn</h2> <h3>Description</h3> LdapAuthn is a simple go web server that integrates with your OpenLDAP instance to handle k8s webook `TokenReview` requests <h2>Specifications</h2>LdapAuthn can run as binary or in a docker container and exposes on the port `8082` the following endpoints (more details on <a href="https://github.com/almartino/ldapauthn">https://github.com/almartino/ldapauthn</a>): </pre><pre style="overflow-wrap: break-word; white-space: pre-wrap;"> <ul><li>/ (webhook endpoint)</li> <li>/health (health endpoint)</li> </ul></pre><pre style="overflow-wrap: break-word; white-space: pre-wrap;"> <h4>Details for Webhook endpoint</h4> When a `TokenReview` hits the webhook endpoint by default the following error responses can occurs (details of status codes on <a href="https://github.com/almartino/ldapauthn">https://github.com/almartino/ldapauthn</a>): <br></pre><pre><ul style=""><li style="white-space: pre-wrap;">400 | BadRequest </li><li style="white-space: pre-wrap;">401 | Unauthorized </li><li style="">403 | Forbidden</li><li style="">405 | MethodNotAllowed</li><li style="">406 | NotAcceptable</li><li style="">500 | InternalServerError</li> </ul><h5>Env</h5>LdapAuthn is docker ready. I choosed to configure the application via env variables.</pre><pre><i>See <a href="https://github.com/almartino/ldapauthn" style="font-size: 15.6px;">https://github.com/almartino/ldapauthn</a> for the complete list of env variables.</i></pre><pre> <h4>Init</h4> <h5><i>Direct</i></h5>```bash LDAP_URL='ldap://LDAP_HOST:389' \ LDAP_ADMIN_DN='cn=admin,dc=example,dc=org' \ LDAP_ADMIN_PASSWORD='PASSWORD' LDAP_BASE_DN='dc=example,dc=org' \ LDAP_USER_PREFIX='ou=people,ou=users' \ LDAP_UID_ATTR='uid' authn ```</pre><pre><br> <h5><i>Docker</i></h5> ```bash docker run -e LDAP_URL='ldap://LDAP_HOST:389' \ -e LDAP_ADMIN_DN='cn=admin,dc=example,dc=org' \ -e LDAP_ADMIN_PASSWORD='PASSWORD' LDAP_BASE_DN='dc=example,dc=org' \ -e LDAP_USER_PREFIX='ou=people,ou=users' \ -e LDAP_UID_ATTR='uid' almartino/ldapauthn:latest ```</pre><pre> <h5><i>Helm</i></h5><br></pre><pre>Coming soon ...</pre> 3 points posted by hankmartinez https://github.com/almartino/ldapauthn 4378 Sat, 13 Jun 2020 15:28:00 +0000 Vscode go moves to the go team 6 points posted by kenny https://blog.golang.org/vscode-go 4377 Wed, 10 Jun 2020 06:20:00 +0000