This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo -s -- << EOF | |
wget -O - https://content.runescape.com/downloads/ubuntu/runescape.gpg.key | apt-key add - | |
mkdir -p /etc/apt/sources.list.d | |
echo "deb https://content.runescape.com/downloads/ubuntu trusty non-free" > /etc/apt/sources.list.d/runescape.list | |
apt-get update | |
apt-get install -y runescape-launcher | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env bash | |
set -ex | |
sudo apt-get update | |
sudo apt-get install -y curl | |
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add - | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"valA":0,"valB":1} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type A struct { | |
ValA int `json:"valA"` | |
ValB int`json:"valB"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"valA":99,"valB":1} | |
================== | |
WARNING: DATA RACE | |
Write at 0x00000066b9d0 by goroutine 8: | |
reflect.Value.SetInt() | |
/usr/local/go/src/reflect/value.go:1642 +0xfd | |
encoding/json.(*decodeState).literalStore() | |
/usr/local/go/src/encoding/json/decode.go:1002 +0x266e | |
encoding/json.(*decodeState).value() | |
/usr/local/go/src/encoding/json/decode.go:384 +0x307 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
) | |
type A struct { | |
ValA int `json:"valA"` | |
ValB int `json:"valB"` | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"encoding/json" | |
"fmt" | |
) | |
type A struct { | |
ValA int `json:"valA"` | |
ValB int`json:"valB"` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0xc00018e000 | |
0xc00018e000 | |
[{1 0} {2 0}] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"database/sql" | |
"encoding/json" | |
"fmt" | |
"strings" | |
"github.com/jmoiron/sqlx" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{},{"valA":1,"valB":3}] |
NewerOlder