fix go client docs front matter (#3317)
diff --git a/streampipes-client-go/docs/content/en/docs/getting-started/first-steps.md b/streampipes-client-go/docs/content/en/docs/getting-started/first-steps.md
index 2d28e43..b4cf2ca 100644
--- a/streampipes-client-go/docs/content/en/docs/getting-started/first-steps.md
+++ b/streampipes-client-go/docs/content/en/docs/getting-started/first-steps.md
@@ -52,9 +52,9 @@
The StreamPipes Go library is meant to work with Go 1.21 and above. You can install the latest development version from GitHub, as so:
-```bash
+```shell
go get https://github.com/apache/streampipes
// if you want to have the current development state you can also execute
go get https://github.com/apache/streampipes/streampipes-client-go
// the corresponding documentation can be found here: https://streampipes.apache.org/docs/docs/python/dev/
-```
\ No newline at end of file
+```
diff --git a/streampipes-client-go/docs/content/en/docs/tutorials/ManageAdapter.md b/streampipes-client-go/docs/content/en/docs/tutorials/ManageAdapter.md
index 059700c..cc11a0a 100644
--- a/streampipes-client-go/docs/content/en/docs/tutorials/ManageAdapter.md
+++ b/streampipes-client-go/docs/content/en/docs/tutorials/ManageAdapter.md
@@ -1,3 +1,8 @@
+---
+title: Manage Adapter
+description: >
+ Manage Adapter.
+---
<!--
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
@@ -16,10 +21,10 @@
//
-->
-### Manage StreamPipes Adapter
+# Manage StreamPipes Adapter
---
## Initialize Go-Client
-```bash
+```go
import (
"log"
"github.com/apache/streampipes/streampipes-client-go/streampipes"
@@ -33,7 +38,7 @@
ApiKey: "<Your-API-Key>",
},
}
-
+
streamPipesClient, err := streampipes.NewStreamPipesClient(clientConfig)
if err != nil {
log.Fatal(err)
@@ -44,29 +49,29 @@
### Create a StreamPipes Adapter
-```bash
+```go
// Populating go-model as a data source is not supported at this time,This is because the inheritance of the model has not been resolved for the time being.
adapterData = `json`
- adapter = []byte(adapterData)
- err := streamPipesClient.Adapter().CreateAdapter(adapterData)
+ adapter = []byte(adapterData)
+ err := streamPipesClient.Adapter().CreateAdapter(adapterData)
```
### Get a StreamPipes Adapter
-```bash
+```go
streampipesAdapter, err := streamPipesClient.Adapter().GetSingleAdapter("adapterId")
```
### Start a StreamPipes Adapter
-```bash
+```go
err := streamPipesClient.Adapter().StartSingleAdapter("adapterId")
```
### Stop a StreamPipes Adapter
-```bash
+```go
err := streamPipesClient.Adapter().StopSingleAdapter("adapterId")
```
-### ...
\ No newline at end of file
+### ...
diff --git a/streampipes-client-go/docs/content/en/docs/tutorials/ManagePipeline.md b/streampipes-client-go/docs/content/en/docs/tutorials/ManagePipeline.md
index 39bf323..7807471 100644
--- a/streampipes-client-go/docs/content/en/docs/tutorials/ManagePipeline.md
+++ b/streampipes-client-go/docs/content/en/docs/tutorials/ManagePipeline.md
@@ -1,3 +1,8 @@
+---
+title: Manage Pipeline
+description: >
+ Manage Pipeline.
+---
<!--
// Licensed to the Apache Software Foundation (ASF) under one or more
// contributor license agreements. See the NOTICE file distributed with
@@ -16,10 +21,10 @@
//
-->
-### Manage StreamPipes Pipeline
+# Manage StreamPipes Pipeline
---
## Initialize Go-Client
-```bash
+```go
import (
"log"
"github.com/apache/streampipes/streampipes-client-go/streampipes"
@@ -33,7 +38,7 @@
ApiKey: "<Your-API-Key>",
},
}
-
+
streamPipesClient, err := streampipes.NewStreamPipesClient(clientConfig)
if err != nil {
log.Fatal(err)
@@ -44,29 +49,29 @@
### Create a StreamPipes Pipeline
-```bash
+```go
// Populating go-model as a data source is not supported at this time,This is because the inheritance of the model has not been resolved for the time being.
pipelineData = `json`
- pipeline = []byte(pipelineData)
+ pipeline = []byte(pipelineData)
responseMsg,err := streamPipesClient.Pipeline().CreatePipeline(pipelineData)
```
### Get a StreamPipes Pipeline
-```bash
+```go
streampipesPipeline, err := streamPipesClient.Pipeline().GetSinglePipelineStatus("pipelineId")
```
### Start a StreamPipes Pipeline
-```bash
+```go
operationStatus, err := streamPipesClient.Pipeline().StartSinglePipeline("pipelineId")
```
### Stop a StreamPipes Pipeline
-```bash
+```go
operationStatus, err := streamPipesClient.Pipeline().StopSinglePipeline("pipelineId")
```
-### ...
\ No newline at end of file
+### ...