Skip to content

Commit 6699d08

Browse files
committed
format code (go fmt)
1 parent f0674db commit 6699d08

File tree

6 files changed

+17
-16
lines changed

6 files changed

+17
-16
lines changed

dialer.go

+3-2
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,9 @@ type (
8080
// DialRaw establishes a connection to Qlik Associative Engine using the settings set in the Dialer.
8181
// The returned remote object points to the Global object of the session with handle -1.
8282
// DialRaw can be used with custom specifications by wrapping the returned RemoteObject in a generated schema type like so:
83-
// remoteObject, err := enigma.Dialer{}.DialRaw(ctx, "ws://...", nil)
84-
// mySpecialGlobal := &specialSchemaPackage.SpecialGlobal{RemoteObject: remoteObject}
83+
//
84+
// remoteObject, err := enigma.Dialer{}.DialRaw(ctx, "ws://...", nil)
85+
// mySpecialGlobal := &specialSchemaPackage.SpecialGlobal{RemoteObject: remoteObject}
8586
func (dialer Dialer) DialRaw(ctx context.Context, url string, httpHeader http.Header) (*RemoteObject, error) {
8687
// Set empty http header if omitted
8788
if httpHeader == nil {

dialer_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/stretchr/testify/assert"
1515
)
1616

17-
//This example shows how to connect to a locally running Qlik Associative Engine, print the version number and disconnect again.
17+
// This example shows how to connect to a locally running Qlik Associative Engine, print the version number and disconnect again.
1818
func Example() {
1919
ctx := context.Background()
2020
global, err := enigma.Dialer{}.Dial(ctx, "ws://localhost:9076", nil)

doc.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// Package enigma is a library that helps you communicate with Qlik Associative Engine.
22
// Examples of use may be building your own analytics tools, back-end services, or other tools communicating with Qlik Associative Engine.
33
//
4-
// Schemas
4+
// # Schemas
55
//
66
// enigma-go includes generated API code that is based on the latest available Qlik Associative Engine schema.
77
// When a new schema is available a new version of enigma-go will be made available
88
//
9-
// Getting started
9+
// # Getting started
1010
//
1111
// Connecting to Qlik Associative Engine and intreract with a document/app involves at least the following steps:
1212
//

float.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"strconv"
66
)
77

8-
//Float64 is an enigma-go equivalent of float64 which adds support for the Qlik Associative Engine specific way of marshalling and unmarshalling "Infinity", "-Infinity" and "NaN" as json strings.
9-
//It can always safely be typecasted to plain float64 including these special cases.
8+
// Float64 is an enigma-go equivalent of float64 which adds support for the Qlik Associative Engine specific way of marshalling and unmarshalling "Infinity", "-Infinity" and "NaN" as json strings.
9+
// It can always safely be typecasted to plain float64 including these special cases.
1010
type Float64 float64
1111

1212
// UnmarshalJSON implements the Unmarshaler interface for custom unmarshalling.

qix_base.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func ensureEncodable(val interface{}) interface{} {
1313
}
1414
}
1515

16-
//Translates byte arrays into json.RawMessage
16+
// Translates byte arrays into json.RawMessage
1717
func ensureAllEncodable(params []interface{}) []interface{} {
1818
result := make([]interface{}, len(params), len(params))
1919
for i := range params {

spec/mockapi/mockapi.go

+8-8
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ type privateEmbedded struct {
2121
// Comment for FuncInPrivateEmbedded
2222
func (*privateEmbedded) FuncInPrivateEmbedded() {}
2323

24-
//Comment for signature
24+
// Comment for signature
2525
type Signature func(param1 string, param2 int, param3 *int, param4 *SubObj, param5 SubObj, paramVar6 Interface1) string
2626

27-
//Comment for Obj
27+
// Comment for Obj
2828
type Obj struct {
2929
*PublicEmbedded
3030
*privateEmbedded
@@ -84,7 +84,7 @@ type Obj struct {
8484
DepObj *DepObj
8585
}
8686

87-
//Comment for NamedSlice
87+
// Comment for NamedSlice
8888
type NamedSlice []*SubObj
8989

9090
func (obj Obj) MemberNonPointerReceiver() {
@@ -94,7 +94,7 @@ func (obj Obj) MemberNonPointerReceiver() {
9494
type SubObj struct {
9595
}
9696

97-
//Deprecated: This will be removed in a future version
97+
// Deprecated: This will be removed in a future version
9898
type DepObj struct{}
9999

100100
// Stability: Experimental
@@ -110,13 +110,13 @@ func (ExperimentalObject1) ExpMember1() {
110110

111111
}
112112

113-
//Deprecated: This will be removed in a future version
113+
// Deprecated: This will be removed in a future version
114114
func (*DepObj) DepMember1() {
115115

116116
}
117117

118-
//Comment preceding deprecation
119-
//Deprecated: This will be removed in a future version
118+
// Comment preceding deprecation
119+
// Deprecated: This will be removed in a future version
120120
func (*DepObj) DepMember2() {
121121

122122
}
@@ -155,5 +155,5 @@ func (obj *Obj) Member(
155155
// Alias for float32 so we can add some methods
156156
type Float32 float32
157157

158-
//Method on Float32
158+
// Method on Float32
159159
func (float32 *Float32) AdditionalMethodOnFloat() {}

0 commit comments

Comments
 (0)