Golang News http://golangnews.com Jobs, Code, Videos and News for Go hackers - everything about the go programming language Mon, 25 Sep 2023 14:09:00 +0000 Watermill 1.3 released, an open-source event-driven library 1 points posted by roblaszczak https://threedots.tech/post/watermill-1-3 4820 Mon, 25 Sep 2023 14:09:00 +0000 Creating Kubernetes Operators with operator-sdk 1 points posted by Elton Minetto https://eltonminetto.dev/en/post/2023-09-08-k8s-operator-sdk 4819 Sat, 09 Sep 2023 14:22:00 +0000 Excelize 2.8.0 Released - Open-source library for spreadsheet (Excel) #OpenSource #Excel #excelize 1 points posted by xuri https://github.com/xuri/excelize/releases/tag/v2.8.0 4818 Sun, 27 Aug 2023 16:23:00 +0000 Go 1.121 Released 1 points posted by John Doak https://go.dev/blog/go1.21 4817 Fri, 11 Aug 2023 15:27:00 +0000 #golang <p>A handy and powerful library to deal with unstructured data</p><div><div>The below piece of code shows an example of usage</div><br><br><pre>type Person struct {<br> Firstname string `structs:"firstname"`<br> Age int `structs:"age"`<br> Siblings []Person `structs:"siblings,omitempty"`<br>}</pre><br><div><div><div>func main(){</div><div> k := knoa.Map().Set("firstname", "John", "age", 20)</div><div> </div><div> k.Set("siblings", []Person{</div><div> {</div><div> Firstname: "Tim",</div><div> Age: 29,</div><div> },</div><div> {</div><div> Firstname: "Bob",</div><div> Age: 40,</div><div> },</div><div> })</div><br><div> k.Set("age", 23, "siblings[1].age", 39)</div><br><div> var person Person</div><div> k.To(&amp;person)</div><div>}</div></div></div><br><div>I am working hard to provide a ready-for-production release, but any feedback or suggestion will be appreciated in the meantime!</div></div> 1 points posted by IVAN CORRALES SOLERA https://github.com/ivancorrales/knoa 4816 Mon, 07 Aug 2023 21:27:00 +0000 Test smarter not harder: harnessing table tests in Go 1 points posted by madflojo https://madflojo.medium.com/test-smarter-not-harder-harnessing-table-tests-in-go-f752890c2676 4815 Mon, 31 Jul 2023 22:37:00 +0000 Coming Soon: Golang 1.21 1 points posted by Everton Marques https://www.dolthub.com/blog/2023-07-07-golang-1.21-release 4814 Tue, 11 Jul 2023 23:47:00 +0000 Rewrite: a simple and powerful URL rewriter for Go Rewrite is a Go package that lets you rewrite URL paths, subdomains or hosts based on regular expressions. It is inspired by Apache's mod_rewrite module and can be used as a middleware for net/http. 1 points posted by iris-go https://dev.to/kataras/rewrite-a-simple-and-powerful-url-rewriter-for-go-224h 4813 Sun, 09 Jul 2023 13:57:00 +0000 How to add basic authentication in Iris Iris is a fast, simple yet fully featured and very efficient web framework for Go. It provides a beautifully expressive and easy to use foundation for your next website or API. One of the features that Iris offers the middleware/basicauth sub-package, which allows you to implement basic authentication for your web applications. 1 points posted by iris-go https://dev.to/kataras/how-to-use-iris-and-basic-authentication-5hjm 4812 Sun, 09 Jul 2023 13:50:00 +0000 [Go] How to work with dates in tests 2 points posted by Elton Minetto https://eltonminetto.dev/en/post/2023-06-30-mock-time-golang 4811 Mon, 03 Jul 2023 12:43:00 +0000 How to Use Iris and PostgreSQL for Web Development #web #database <h5>A guide to using PG middleware, a package for Iris that provides easy and type-safe access to PostgreSQL database.<br></h5> 1 points posted by iris-go https://dev.to/kataras/how-to-use-iris-and-postgresql-for-web-development-3kka 4810 Sun, 02 Jul 2023 15:57:00 +0000 sqs-to-sns 1.5.4: utility written in Go to forward messages from AWS SQS Queues to AWS SNS Topics 1 points posted by Everton Marques https://github.com/udhos/sqs-to-sns/releases 4809 Sun, 18 Jun 2023 23:43:00 +0000 Building Crypto Predictions Tracker: architecture and challenges 1 points posted by Mariano https://marianogappa.github.io/software/2023/06/17/building-crypto-predictions 4808 Sun, 18 Jun 2023 10:55:00 +0000 phoo - a very simple high performance PHP application server and php-fpm supervisor 1 points posted by Mohammed Al Ashaal https://github.com/alash3al/phoo?v2.1 4807 Wed, 14 Jun 2023 06:36:00 +0000 Testing Grpc methods 1 points posted by John Doak https://medium.com/@johnsiilver/testing-grpc-methods-6a8edad4159d 4806 Mon, 12 Jun 2023 16:09:00 +0000 Writing an interface that only sub packages can implement 1 points posted by John Doak https://medium.com/@johnsiilver/writing-an-interface-that-only-sub-packages-can-implement-fe36e7511449 4805 Sat, 10 Jun 2023 00:06:00 +0000 gateboard provides autodiscovery for API IDs in AWS API Gateway private APIs. 1 points posted by Everton Marques https://github.com/udhos/gateboard 4804 Sun, 28 May 2023 03:39:00 +0000 Organizing projects and defining names in Go 2 points posted by Elton Minetto https://medium.com/inside-picpay/organizing-projects-and-defining-names-in-go-7f0eab45375d 4803 Fri, 26 May 2023 11:56:00 +0000 Golang Table Test Example 1 points posted by 0x13a https://golang.cafe/blog/golang-table-test-example 4802 Sun, 07 May 2023 18:01:00 +0000 Reduce Go Binary Size Always a hot-topic in Go circles is binary size of applications. In this post we will show you how you can reduce the binary size produced from go build for leaner, slimer builds. 2 points posted by Edd Turtle https://gophercoding.com/reduce-go-binary-size 4801 Thu, 04 May 2023 20:05:00 +0000 DI Container IziDIC v0.0.3 easier to test, better documented #releases #dependencyinjection <div>The <a href="https://github.com/fgm/izidic">fgm/izidic </a>dependency injection container (DIC) just got its firsts official release instead of just a tag: tag v0.0.3 contains a feature and documentation improvements.</div><div> <ul style="margin: 1rem 0px;"> <li>feature: the `Container`type is now an interface, to ease Service testing, instead of a concrete struct</li> <li>doc: a complete application is now available, demonstrating how to set up an application in practice for dependency injection using IziDIC</li> <li>doc: the README has been expanded and clarified.</li> <li>doc: a discussion issue is available on https://github.com/fgm/izidic/discussions/10</li> <li>qa: test coverage stable at 100%</li> </ul> 1 points posted by FGM https://github.com/fgm/izidic/releases/tag/v0.0.3 4800 Fri, 28 Apr 2023 12:12:00 +0000 sqs-to-sns: an utility to forward messages from AWS SQS Queues to AWS SNS Topics 1 points posted by Everton Marques https://github.com/udhos/sqs-to-sns 4799 Sat, 15 Apr 2023 03:54:00 +0000 Excelize 2.7.1 Released - Go language API for spreadsheets (Excel) files. #Golang #Excelize #Excel 2 points posted by xuri https://github.com/xuri/excelize/releases/tag/v2.7.1 4798 Sun, 09 Apr 2023 16:35:00 +0000 Show: testcerts - Go package with an easy-to-use suite of functions for generating test certificates 1 points posted by madflojo https://github.com/madflojo/testcerts 4797 Sat, 08 Apr 2023 11:12:00 +0000 Errors in golang 1 points posted by Ayeree https://www.golangprograms.com/errors-in-golang.html 4796 Wed, 05 Apr 2023 18:04:00 +0000 Socket Options and Go: multiple listeners, one port 2 points posted by madflojo https://madflojo.medium.com/socket-options-go-multiple-listeners-one-port-7e5257044bb1 4795 Wed, 05 Apr 2023 02:29:00 +0000 Golang Cafe has open bounties, earn by opening a Pull Request 2 points posted by 0x13a https://console.algora.io/org/golang-cafe 4794 Mon, 03 Apr 2023 18:49:00 +0000 How to use Go httptrace package 1 points posted by 0x13a https://golang.cafe/blog/golang-httptrace-example.html 4793 Wed, 29 Mar 2023 14:46:00 +0000 Hiring: Senior Golang Engineer at Volume Finance - Remote - $250,000 to $350,000 a year 1 points posted by 0x13a https://golang.cafe/job/senior-golang-engineer-volume-finance-1662165879 4792 Wed, 29 Mar 2023 14:46:00 +0000 Hiring: Remote Backend Engineer Tools at Policyfly - $120,000 to $160,000/year 1 points posted by 0x13a https://golang.cafe/job/backend-engineer-tools-and-integrations-policyfly-1673391020 4791 Mon, 20 Mar 2023 16:37:00 +0000 Golang HTTP Client Server Question Answer 1 points posted by Ayeree https://www.golangprograms.com/golang-http-client-server-examples.html 4790 Mon, 06 Mar 2023 05:54:00 +0000 Maximizing resilience with graceful shutdown in cloud native golang applications 1 points posted by madflojo https://madflojo.medium.com/maximizing-resilience-with-graceful-shutdown-in-cloud-native-golang-applications-7f0b2edef4a8 4789 Mon, 06 Feb 2023 10:14:00 +0000 Go 1.20 released 2 points posted by John Doak https://go.dev/blog/go1.20 4788 Fri, 03 Feb 2023 20:23:00 +0000 Golang context package tutorial 1 points posted by Ayeree https://www.golangprograms.com/golang-context-package-tutorial.html 4787 Mon, 23 Jan 2023 16:02:00 +0000 Golang Developer #remote 1 points posted by golangch https://golangjob.xyz/job/2KNnKS0jenauQReBrc87oWife5y 4786 Mon, 16 Jan 2023 08:58:00 +0000 Excelize 2.7.0 Released – Go API for spreadsheet (Excel) #golang #Excel #excelize #spreadsheet 1 points posted by xuri https://github.com/xuri/excelize/releases/tag/v2.7.0 4785 Sun, 08 Jan 2023 16:27:00 +0000 Hiring: Golang Developer #remote 1 points posted by golangch https://golangjob.xyz/job/2J6LzJaSO83i0r0bW5sgxqftkJC 4784 Mon, 19 Dec 2022 10:26:00 +0000 The Go libraries that never failed us: 22 libraries you need to know 1 points posted by roblaszczak https://threedots.tech/post/list-of-recommended-libraries 4783 Tue, 13 Dec 2022 13:43:00 +0000 How to use mocks in your table-driven tests in Go 1 points posted by cbrgm https://cbrgm.net/post/2022-12-05-go-table-driven-tests-testify 4782 Mon, 05 Dec 2022 01:07:00 +0000 Golang Developer (Exp: 2-5yrs) - #Remote 1 points posted by golangch https://golangjob.xyz/job/2HzdWJlKtcKoSrdxnVvpqGsztkO 4781 Thu, 24 Nov 2022 16:27:00 +0000 Hiring: Golang Developer #remote 1 points posted by golangch https://golangjob.xyz/job/2HGh5UzafUAFLYUk9bUzySXuMKd 4780 Mon, 14 Nov 2022 11:33:00 +0000 GoCoverStats v0.0.5 is a security release #test #testing #security The gocoverstats package just got a v0.0.5 security release on its golang.org dependencies and a minor change: <ul> <li>golang.org/x/tools upgraded from v0.1.10 to v0.2 (security release on tools/crypto)</li> <li>github.com/google/go-cmp upgraded from 0.5.8 to 0.5.9 (test dependency non-security release)</li> </ul><div>One clarification about the default build is that, since it requires at least Go 1.18, paths and symbols are trimmed in the compiled output.</div> 1 points posted by FGM https://gitlab.com/fgmarand/gocoverstats/-/tags/v0.0.5 4779 Mon, 14 Nov 2022 08:49:00 +0000 Slice length vs capacity in go 1 points posted by teivah https://teivah.medium.com/slice-length-vs-capacity-in-go-af71a754b7d8 4778 Wed, 09 Nov 2022 14:02:00 +0000 Creating an API using Go and sqlc 1 points posted by Elton Minetto https://eltonminetto.dev/en/post/2022-10-22-creating-api-using-go-sqlc 4777 Mon, 24 Oct 2022 19:06:00 +0000 IziDIC v0.0.2 : new features and QA #dependencyinjection #releases <div>The tiny <a href="https://github.com/fgm/izidic">fgm/izidic</a> dependency injection container just got a new release: v0.0.2 contains new features and QA improvements.</div><div> <ul><li>feature: new method Container.Names to list container keys</li> <li>feature: circular dependency detection, avoiding stack overflows</li> <li>qa: moved to new domain github.com/fgm/izidic to support Github actions</li> <li>qa: added linting checks: gofmt, go vet, staticcheck</li> <li>qa: added security scanning: CodeQL</li> <li>qa: expanded test coverage to 100% C0.</li> <li>qa: added test coverage reporting</li> </ul></div><div><br></div> 1 points posted by FGM https://github.com/fgm/izidic/releases/tag/v0.0.2 4776 Sat, 22 Oct 2022 15:42:00 +0000 Tip of the day: running Flagr Docker image on a M1 mac #docker #containers Flagr is a Go-based feature flags service, which is by default deployed as a Docker image. However, the image is not built for darwin/arm64/8. Here is how to run the server without going through a source build. 1 points posted by FGM https://blog.riff.org/2022_10_21_tip_of_the_day_running_flagr_docker_image_on_a_m1_mac 4775 Fri, 21 Oct 2022 15:53:00 +0000 Convert HEIC to JPG in Go The “High Efficiency Image File Format” or <strong>HEIF</strong> is an image format often used by Apple devices. Although called HEIF, the file types are often <strong>heic</strong> (<em>presumably the ‘c’ stands for container?</em>) They use a similar encoding method of video formats and are deemed better quality and lower file size than standard jpeg files. 1 points posted by Edd Turtle https://gophercoding.com/convert-heic-to-jpeg-go 4774 Tue, 04 Oct 2022 20:02:00 +0000 Hiring: Junior DevOps Engineer ( #golang #remote ) 1 points posted by golangch https://golangjob.xyz/job/2FZRaoSJFRektU047O3IvhYhncN 4773 Sun, 02 Oct 2022 09:57:00 +0000 Find quick solutions to common String problems Strings are a fundamental building block of programming. Go string is a sequence of variable-width characters where each character is represented by one or more bytes, normally using the UTF-8 encoding. You can find quick solutions to common string problems that arise during writing golang programs from this valuable resource. 1 points posted by Ayeree https://www.golangprograms.com/strings-in-golang.html 4772 Sat, 01 Oct 2022 07:31:00 +0000 Maps and Memory Leaks in Go 1 points posted by teivah https://teivah.medium.com/maps-and-memory-leaks-in-go-a85ebe6e7e69 4771 Wed, 28 Sep 2022 09:54:00 +0000