golang_news 

feeds.twtxt.net

Golang News - Jobs, Code, Videos and News for Go hackers - everything about the go programming language

Recent twts from golang_news

#golang
A handy and powerful library to deal with unstructured data

The below piece of code shows an example of usage

type Person struct {<br/>    Firstname string   `structs:"firstname"`<br/>    Age       int      `structs:"age"`<br/>    Siblings  []Person `structs:"siblings,omitempty"`<br/>}

func main(){

k := knoa.Map().Set(β€œfirstname”, β€œJohn”, β€œage”, 20)

k.Set(β€œsiblings”, []Person{

{

Firstname: β€œTim”,

Age: 29,

},

{

Firstname: β€œBob”,

Age: 40,

},

})

k.Set(β€œage”, 23, β€œsiblings[1].age”, 39)

var person Person … ⌘ Read more

​ Read More

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 ⌘ Read more

​ Read More

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 ⌘ Read more

​ Read More

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. 1 points posted by Edd Turtle ⌘ Read more

​ Read More

DI Container IziDIC v0.0.3 easier to test, better documented #releases href=”https://txt.sour.is/search?tag=dependencyinjection”>#dependencyinjection**
The fgm/izidic 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.

  • feature: the `Container`type is now an interface, to ease Service testing, instead of a concrete struct
  • doc: a complete application is now available, demonstrating how to set up an application in practice for dependen … ⌘ Read more

​ Read More