Skip to content

Instantly share code, notes, and snippets.

View luizvnasc's full-sized avatar

Luiz Augusto Volpi Nascimento luizvnasc

  • Capgemini Engineering
  • Porto, Portugal
View GitHub Profile
@luizvnasc
luizvnasc / main.go
Created May 14, 2020 13:03
Unmarshal de interface{}
package main
import (
"encoding/xml"
"fmt"
)
type Person struct {
XMLName xml.Name `xml:"person"`
FirstName string `xml:"firstname"`
@luizvnasc
luizvnasc / error.go
Created March 6, 2020 15:47
Exemplo de error handling com go 1.13
package main
import (
"errors"
"fmt"
)
type DBError struct {
message string
err error
@luizvnasc
luizvnasc / gist:9494006
Created March 11, 2014 20:12
Xorg.8.log
[ 941.608]
X.Org X Server 1.14.3
Release Date: 2013-09-12
[ 941.608] X Protocol Version 11, Revision 0
[ 941.608] Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
[ 941.608] Current Operating System: Linux Bass-PC 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64
[ 941.608] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.11.0-12-generic root=UUID=5ac14fc7-e137-4b37-9030-253636664843 ro quiet splash
[ 941.608] Build Date: 15 October 2013 09:23:37AM
[ 941.608] xorg-server 2:1.14.3-3ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 941.608] Current version of pixman: 0.30.2
@luizvnasc
luizvnasc / gist:9493964
Created March 11, 2014 20:10
Xorg.0.log
[ 37.050]
X.Org X Server 1.14.3
Release Date: 2013-09-12
[ 37.050] X Protocol Version 11, Revision 0
[ 37.050] Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
[ 37.050] Current Operating System: Linux Bass-PC 3.11.0-12-generic #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013 x86_64
[ 37.050] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.11.0-12-generic root=UUID=5ac14fc7-e137-4b37-9030-253636664843 ro quiet splash
[ 37.050] Build Date: 15 October 2013 09:23:37AM
[ 37.050] xorg-server 2:1.14.3-3ubuntu2 (For technical support please see http://www.ubuntu.com/support)
[ 37.050] Current version of pixman: 0.30.2