[gnome-code-assistance] [backends/go] Run go fmt
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [backends/go] Run go fmt
- Date: Tue, 12 Nov 2013 23:26:27 +0000 (UTC)
commit 3024eb5331a4123c93c5ae5aad17d6192529551d
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Wed Nov 13 00:26:16 2013 +0100
[backends/go] Run go fmt
backends/go/dbus.go | 8 ++++----
backends/go/go.go | 1 +
backends/go/server_dbus.go | 12 ++++++------
3 files changed, 11 insertions(+), 10 deletions(-)
---
diff --git a/backends/go/dbus.go b/backends/go/dbus.go
index d8eb996..4bbcde9 100644
--- a/backends/go/dbus.go
+++ b/backends/go/dbus.go
@@ -27,7 +27,7 @@ func (s *ServiceDbus) Introspect() *introspect.Node {
n := &introspect.Node{
Interfaces: []introspect.Interface{
{
- Name: "org.gnome.CodeAssist.v1.Service",
+ Name: "org.gnome.CodeAssist.v1.Service",
Methods: []introspect.Method{
{
Name: "Parse",
@@ -49,7 +49,7 @@ func (s *ServiceDbus) Introspect() *introspect.Node {
},
introspect.Interface{
- Name: "org.gnome.CodeAssist.v1.Project",
+ Name: "org.gnome.CodeAssist.v1.Project",
Methods: []introspect.Method{
{
Name: "ParseAll",
@@ -73,11 +73,11 @@ func (d *DocumentDbus) Introspect() *introspect.Node {
return &introspect.Node{
Interfaces: []introspect.Interface{
introspect.Interface{
- Name: "org.gnome.CodeAssist.v1.Document",
+ Name: "org.gnome.CodeAssist.v1.Document",
},
introspect.Interface{
- Name: "org.gnome.CodeAssist.v1.Diagnostics",
+ Name: "org.gnome.CodeAssist.v1.Diagnostics",
Methods: []introspect.Method{
{
Name: "Diagnostics",
diff --git a/backends/go/go.go b/backends/go/go.go
index 4d11424..7542d07 100644
--- a/backends/go/go.go
+++ b/backends/go/go.go
@@ -9,6 +9,7 @@ import (
type TransportConstructor func() (Transport, error)
const defaultTransport = "dbus"
+
var transports = map[string]TransportConstructor{}
func RegisterTransport(name string, constructor TransportConstructor) {
diff --git a/backends/go/server_dbus.go b/backends/go/server_dbus.go
index 7f371ef..26627ef 100644
--- a/backends/go/server_dbus.go
+++ b/backends/go/server_dbus.go
@@ -12,7 +12,7 @@ type App struct {
id uint64
name string
- docs map[string]*DocumentDbus
+ docs map[string]*DocumentDbus
service *Service
@@ -85,9 +85,9 @@ func (s *ServerDbus) documentDbusPath(app *App, doc *DocumentDbus) dbus.ObjectPa
func (s *ServerDbus) makeApp(name string) *App {
app := &App{
- id: s.nextid,
- name: name,
- docs: make(map[string]*DocumentDbus),
+ id: s.nextid,
+ name: name,
+ docs: make(map[string]*DocumentDbus),
service: NewService(),
}
@@ -107,8 +107,8 @@ func (s *ServerDbus) ensureApp(name string) *App {
func (s *ServerDbus) makeDocument(app *App, path string, clientPath string) *DocumentDbus {
doc := &Document{
- Id: app.nextid,
- Path: path,
+ Id: app.nextid,
+ Path: path,
ClientPath: clientPath,
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]