Golang – Fetching Data from Sqlite Database
Before you can use this example, you need to install go-sqlite3. Here is how to select rows from a Sqlite database with Go, the programming language of google. package main import ( “fmt” “database/sql” _…
Before you can use this example, you need to install go-sqlite3. Here is how to select rows from a Sqlite database with Go, the programming language of google. package main import ( “fmt” “database/sql” _…
At dotmaui.com we use Go (Golang), the programming language of Google, more and more often. The dashboard is in fact based on Revel, a high-productivity web framework for the Go language, and other automation scripts we…
Copy and paste sample for concatenate multiple MySQL rows into one field. SELECT GROUP_CONCAT(name SEPARATOR ‘, ‘) AS names FROM peoples
Small script to generate a random integer, between 1 and 100, in Golang, the Google programming language. package main import ( “fmt” “math/rand” “time” ) func random(min, max int) int { rand.Seed(time.Now().UTC().UnixNano()) return rand.Intn(max-min) +…
At great demand, APIs have been released for our Pastebin service. This is a beta version, available only for premium users. Using them is damn easy, here’s a ready, copy and paste example in PHP….
Here’s what we did for you, free and without advertising, in the early days of November: JS Beautify 1.2, CSS Beautify 1.2, HTML Beautify 1.2 and XML Beautify 1.3 released. Some minor bugs fixed Increased…
How to create a Switch (Select Case) in VB.Net: Select Case value Case 1 Console.WriteLine(“One”) Case 2 Console.WriteLine(“Two”) Case 3, 4 Console.WriteLine(“Three or four”) Case 5 To 10 Console.WriteLine(“From five to Ten”) Case Else Console.WriteLine(“Everything…
With dotmaui.com’s Pastebin service, you can save and share small or large pieces of text. .Maui Pastebin supports many programming languages to color the text syntax, but you can also use plain text. Pastebin is…
function IsJson(myString) { try { JSON.parse(myString); } catch (err) { return false; } return true; }
package controllers import ( “github.com/revel/revel” “fmt” ) type App struct { *revel.Controller } func MyController(c App ) *Utente { cookies := c.Request.Cookies() for _, cookie := range cookies { if cookie.Name == “mycookie” { cookieValue…