From cf9de30a238aa8ef356050c9d0ab669c29c194c9 Mon Sep 17 00:00:00 2001 From: Harvey Kandola Date: Mon, 17 Oct 2016 14:07:05 -0700 Subject: [PATCH] more gofmt --- core/api/convert/apidocumizecom/init.go | 4 ++-- core/api/convert/apidocumizecom/msword.go | 8 ++++---- core/api/convert/excerpt/excerpt.go | 4 ++-- core/api/convert/html/doc.go | 4 ++-- core/api/convert/html/html_test.go | 4 ++-- core/api/endpoint/models/models.go | 4 ++-- core/api/plugins/glick.go | 4 ++-- core/api/plugins/glick_test.go | 6 +++--- core/section/gemini/model.go | 2 +- core/section/papertrail/papertrail.go | 2 +- 10 files changed, 21 insertions(+), 21 deletions(-) diff --git a/core/api/convert/apidocumizecom/init.go b/core/api/convert/apidocumizecom/init.go index afd41a75..09dfbe13 100644 --- a/core/api/convert/apidocumizecom/init.go +++ b/core/api/convert/apidocumizecom/init.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com diff --git a/core/api/convert/apidocumizecom/msword.go b/core/api/convert/apidocumizecom/msword.go index e5fbad99..5645e299 100644 --- a/core/api/convert/apidocumizecom/msword.go +++ b/core/api/convert/apidocumizecom/msword.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com @@ -37,11 +37,11 @@ func (file *Msword) Convert(r api.DocumentConversionRequest, reply *api.Document client := &http.Client{Transport: transport} - tok,err:=token() + tok, err := token() if err != nil { return err } - + resp, err := client.Post(endPoint()+"/api/word?token="+tok, "application/json", bytes.NewReader(byts)) if err != nil { return err diff --git a/core/api/convert/excerpt/excerpt.go b/core/api/convert/excerpt/excerpt.go index b50126fb..f9f61f43 100644 --- a/core/api/convert/excerpt/excerpt.go +++ b/core/api/convert/excerpt/excerpt.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com diff --git a/core/api/convert/html/doc.go b/core/api/convert/html/doc.go index 2d8fd850..d5ac959f 100644 --- a/core/api/convert/html/doc.go +++ b/core/api/convert/html/doc.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com diff --git a/core/api/convert/html/html_test.go b/core/api/convert/html/html_test.go index 580c6628..ae641852 100644 --- a/core/api/convert/html/html_test.go +++ b/core/api/convert/html/html_test.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com diff --git a/core/api/endpoint/models/models.go b/core/api/endpoint/models/models.go index 2bf8ae0e..71c638ce 100644 --- a/core/api/endpoint/models/models.go +++ b/core/api/endpoint/models/models.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com diff --git a/core/api/plugins/glick.go b/core/api/plugins/glick.go index 62f26449..ccf4ca89 100644 --- a/core/api/plugins/glick.go +++ b/core/api/plugins/glick.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com diff --git a/core/api/plugins/glick_test.go b/core/api/plugins/glick_test.go index 65419216..6c0562b4 100644 --- a/core/api/plugins/glick_test.go +++ b/core/api/plugins/glick_test.go @@ -1,11 +1,11 @@ // Copyright 2016 Documize Inc. . All rights reserved. // -// This software (Documize Community Edition) is licensed under +// This software (Documize Community Edition) is licensed under // GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html // // You can operate outside the AGPL restrictions by purchasing // Documize Enterprise Edition and obtaining a commercial license -// by contacting . +// by contacting . // // https://documize.com @@ -26,7 +26,7 @@ func TestSetup(t *testing.T) { if err != nil { t.Error(err) } - + // TODO(Elliott) review for empty database //if len(ssc) > 3 { // t.Errorf("extra convert formats:%v", ssc) diff --git a/core/section/gemini/model.go b/core/section/gemini/model.go index 2dc35af5..9db08a93 100644 --- a/core/section/gemini/model.go +++ b/core/section/gemini/model.go @@ -14,8 +14,8 @@ package gemini import ( "strings" - "github.com/documize/community/core/section/provider" "github.com/documize/community/core/log" + "github.com/documize/community/core/section/provider" ) // the HTML that is rendered by this section. diff --git a/core/section/papertrail/papertrail.go b/core/section/papertrail/papertrail.go index 2d6b3212..1023e64d 100644 --- a/core/section/papertrail/papertrail.go +++ b/core/section/papertrail/papertrail.go @@ -21,8 +21,8 @@ import ( "net/http" "net/url" - "github.com/documize/community/core/section/provider" "github.com/documize/community/core/log" + "github.com/documize/community/core/section/provider" ) const me = "papertrail"