Skip to content

Instantly share code, notes, and snippets.

View alvaradopcesar's full-sized avatar
🏠
Working from home

Cesar Alvarado P. alvaradopcesar

🏠
Working from home
View GitHub Profile
package main
import (
"bufio"
"encoding/csv"
"encoding/json"
"fmt"
"io"
"os"
"path/filepath"
package main
import (
"database/sql"
"encoding/json"
"net/http"
"os"
"strconv"
"time"
)
// The dumb way to deal with SOAP requests
func userRequest(userId string) string {
template := soapify(userTemplate)
return fmt.Sprintf(template, userId)
}
func soapify(template string) string {
return fmt.Sprintf(soapTemplate, template)
}