Skip to content

Instantly share code, notes, and snippets.

@ribrdb
ribrdb / sql.go
Last active September 14, 2017 16:35 — forked from anonymous/sql.go
package main
import (
"encoding/json"
"database/sql"
)
// JSONScanner scans a column into a map.
type JSONScanner struct {
Key string
import java.io.IOException;
import javax.servlet.http.HttpServlet
import com.google.apphosting.api.ApiProxy;
import com.google.apphosting.api.ApiProxy.Environment;
class Plain < HttpServlet
def doGet(req, resp); throws IOException
env = ApiProxy.getCurrentEnvironment
raw_ver = env.getVersionId
version = raw_ver.substring 0, raw_ver.lastIndexOf(".")