Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
crufter committed Feb 17, 2015
1 parent 68cb3ac commit 9cd1fd7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions gocql_backend.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package gocassa
package gocassa

import(
import (
"errors"
"github.com/gocql/gocql"
)
Expand Down
10 changes: 5 additions & 5 deletions op.go
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
package gocassa

import(
import (
"encoding/json"
"fmt"
)

const(
const (
write = iota
read
singleRead
)

type op struct {
qe QueryExecutor
qe QueryExecutor
ops []singleOp
}

type singleOp struct {
opType int
result interface{}
stmt string
stmt string
params []interface{}
}

Expand All @@ -29,7 +29,7 @@ func newWriteOp(qe QueryExecutor, stmt string, params []interface{}) *op {
ops: []singleOp{
{
opType: write,
stmt: stmt,
stmt: stmt,
params: params,
},
},
Expand Down
6 changes: 3 additions & 3 deletions query.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ func (q *query) Read(pointerToASlice interface{}) Op {
ops: []singleOp{
{
opType: read,
result: pointerToASlice,
stmt: stmt,
result: pointerToASlice,
stmt: stmt,
params: vals,
},
},
Expand All @@ -37,7 +37,7 @@ func (q *query) ReadOne(pointer interface{}) Op {
{
opType: singleRead,
result: pointer,
stmt: stmt,
stmt: stmt,
params: vals,
},
},
Expand Down

0 comments on commit 9cd1fd7

Please sign in to comment.