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
type ( | |
// BuoyCondition contains information for an individual station. | |
BuoyCondition struct { | |
WindSpeed float64 `bson:"wind_speed_milehour"` | |
WindDirection int `bson:"wind_direction_degnorth"` | |
WindGust float64 `bson:"gust_wind_speed_milehour"` | |
} | |
// BuoyLocation contains the buoy's location. | |
BuoyLocation struct { |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<style-scheme version="1.0" name="Carbon"> | |
<!-- | |
By William Kennedy | |
Improvements are welcome | |
Public Domain, Ardan Studios, 2014 | |
Navigate To: /Applications/LiteIDE.app/Contents/Resources/liteeditor | |
Create a new file with the content. | |
Restatr LiteIDE |
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
// Created by Bill Hathaway to see if line 16 would produce an | |
// allocation in Go v1.3 | |
package main | |
import ( | |
"testing" | |
) | |
var ( | |
m = make(map[string]struct{}) |
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 mongo provides support for accessing and executing commands against | |
// a mongoDB database | |
package mongo | |
import ( | |
"encoding/json" | |
"fmt" | |
"strings" | |
"time" |
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
type Query struct { | |
Raw string | |
Named *sqlx.NamedStmt | |
} | |
func (q *Query) Build(db *sqlx.DB) error { | |
var err error | |
q.Named, err = db.PrepareNamed(q.Raw) | |
return nil | |
} |