From 351da169cf2fffe4cf1ee885ef1ebfc7e9de563e Mon Sep 17 00:00:00 2001
From: Ashwin <ashwin2007ray@gmail.com>
Date: Mon, 15 Feb 2016 16:53:35 +1100
Subject: [PATCH] Formatting to limit line length to 100

---
 loader/loader.go | 9 +++++----
 rdf/parse.go     | 9 ++++++---
 2 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/loader/loader.go b/loader/loader.go
index f8af5781..48b0776a 100644
--- a/loader/loader.go
+++ b/loader/loader.go
@@ -52,9 +52,9 @@ type state struct {
 	numInstances uint64
 }
 
-func Init(rs, rws *store.Store) {
-	uidStore = rs
-	dataStore = rws
+func Init(uidstore, datastore *store.Store) {
+	uidStore = uidstore
+	dataStore = datastore
 }
 
 func (s *state) printCounters(ticker *time.Ticker) {
@@ -239,7 +239,8 @@ func HandleRdfReader(reader io.Reader, instanceIdx uint64, numInstances uint64)
 }
 
 // Blocking function.
-func HandleRdfReaderWhileAssign(reader io.Reader, instanceIdx uint64, numInstances uint64) (uint64, error) {
+func HandleRdfReaderWhileAssign(reader io.Reader, instanceIdx uint64,
+	numInstances uint64) (uint64, error) {
 	s := new(state)
 	s.ctr = new(counters)
 	ticker := time.NewTicker(time.Second)
diff --git a/rdf/parse.go b/rdf/parse.go
index 1b678564..8d59bb34 100644
--- a/rdf/parse.go
+++ b/rdf/parse.go
@@ -37,14 +37,16 @@ type NQuad struct {
 	Language    string
 }
 
-func GetUid(s string, instanceIdx uint64, numInstances uint64, rStore *store.Store) (uint64, error) {
+func GetUid(s string, instanceIdx uint64, numInstances uint64,
+	rStore *store.Store) (uint64, error) {
 	if strings.HasPrefix(s, "_uid_:") {
 		return strconv.ParseUint(s[6:], 0, 64)
 	}
 	return uid.GetOrAssign(s, instanceIdx, numInstances)
 }
 
-func (nq NQuad) ToEdge(instanceIdx, numInstances uint64, rStore *store.Store) (result x.DirectedEdge, rerr error) {
+func (nq NQuad) ToEdge(instanceIdx, numInstances uint64,
+	rStore *store.Store) (result x.DirectedEdge, rerr error) {
 	sid, err := GetUid(nq.Subject, instanceIdx, numInstances, rStore)
 	if err != nil {
 		return result, err
@@ -104,7 +106,8 @@ func Parse(line string) (rnq NQuad, rerr error) {
 			// TODO: Strictly parse common types like integers, floats etc.
 			if len(oval) == 0 {
 				glog.Fatalf(
-					"itemObject should be emitted before itemObjectType. Input: %q", line)
+					"itemObject should be emitted before itemObjectType. Input: %q",
+					line)
 			}
 			oval += "@@" + stripBracketsIfPresent(item.Val)
 		}
-- 
GitLab