Skip to content

Instantly share code, notes, and snippets.

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

Gaba E. gabelula

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gabelula on github.
  • I am gaba (https://keybase.io/gaba) on keybase.
  • I have a public key ASCIG06nwLj8VvgEW5iyNY80l5xYNFCKfhcVsN_JIN14cgo

To claim this, I am signing this object:

Type of session: 50 min tutorial

Title

Writing testable code in GO

Abstract

This tutorial will go through the basics on how to write tests in GO and how to write GO code that is testable. We will use an small app to give a clear example on how to test the code. We will cover the build-in test library and the tools to look at the test coverage for your code.

var tables map[string]string
tables = GetTables()
for collectionName, tableName := range tables {
go func(collectionName string, tableName string) {
log.Printf("Pushing data %s into collection %s.", tableName, collectionName)
retrieves(collectionName, tableName)
}(collectionName, tableName)
}
Gabrielas-MacBook-Pro:~ gaba$ ssh -vvv hydra0.analoganalytics.com
OpenSSH_5.9p1, OpenSSL 0.9.8r 8 Feb 2011
debug1: Reading configuration data /Users/gaba/.ssh/config
debug1: /Users/gaba/.ssh/config line 24: Applying options for hydra*.analoganalytics.com
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 53: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to hydra0.analoganalytics.com [108.166.97.19] port 22.
debug1: Connection established.
config = publishing_groups_config['entertainment']
ftp = Net::FTP.new
ftp.debug_mode = true
ftp.connect config[:host]
ftp.login config[:user], config[:pass]
ftp.ls <---- get stucks
ftp.putbinaryfile(file_path) <---- get stuck
ftp.close
var Analog = Analog || {};
function post_to(path, params, method) {
method = method || "post"; // Set method to post by default, if not specified.
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
for(var key in params) {
var Analog = Analog || {};
function post_to(path, params, method) {
method = method || "post"; // Set method to post by default, if not specified.
var form = document.createElement("form");
form.setAttribute("method", method);
form.setAttribute("action", path);
for(var key in params) {
para bajar el repositorio:
git clone git@github.com:gabelula/flpsed.git
para comitear:
git add .
git commit -m "Mensaje que queiras"
git push