This commit is contained in:
Torsten 2024-01-22 11:18:44 +01:00
parent 02d3c2123c
commit a51d54f05b
2 changed files with 58 additions and 77 deletions

View file

@ -1,23 +1,19 @@
{ {
"main": { "main": {
"id": "fbf4a718f13ee17d", "id": "50c2fba946caf735",
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "9cff64791455f584", "id": "dae9af517526e8ac",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "1fc1ac9fc01290be", "id": "ead58bf623196751",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "markdown", "type": "markdown",
"state": { "state": {
<<<<<<< HEAD "file": "AWA/02_Running the binaries/Auto updater in Go.md",
"file": "AWA/Blender/AutoRigPro/01 Smart Rig Creation.md",
=======
"file": "AWA/01_AWS Access/Autostart AWA Servers on instance startup.md",
>>>>>>> fb07057 (...)
"mode": "source", "mode": "source",
"source": false "source": false
} }
@ -29,15 +25,15 @@
"direction": "vertical" "direction": "vertical"
}, },
"left": { "left": {
"id": "a7b36e6781d160a5", "id": "89e81ce4c22ed5e5",
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "daa4eebd8ab2ce0e", "id": "f6c704b5001e0625",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "0fa2ff500a2e0a35", "id": "a236695ac8f73ffd",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "file-explorer", "type": "file-explorer",
@ -47,7 +43,7 @@
} }
}, },
{ {
"id": "96923d57d0ae6217", "id": "b8eee2048962cc47",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "search", "type": "search",
@ -62,7 +58,7 @@
} }
}, },
{ {
"id": "1947a3109ed6ab82", "id": "123ccadfa6165a9c",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "bookmarks", "type": "bookmarks",
@ -73,27 +69,23 @@
} }
], ],
"direction": "horizontal", "direction": "horizontal",
"width": 354.5 "width": 300
}, },
"right": { "right": {
"id": "90b2114f7117b8d1", "id": "1cc7b16bdc8ff3d5",
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "c2252474d866816b", "id": "898028b46c85c825",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "6b23949b3014fa54", "id": "88e875295c6e8e57",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
<<<<<<< HEAD "file": "AWA/02_Running the binaries/Auto updater in Go.md",
"file": "AWA/Blender/AutoRigPro/01 Smart Rig Creation.md",
=======
"file": "AWA/01_AWS Access/Autostart AWA Servers on instance startup.md",
>>>>>>> fb07057 (...)
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@ -105,23 +97,19 @@
} }
}, },
{ {
"id": "16021e7aa15825b5", "id": "5cbdf8cd9df7d127",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
<<<<<<< HEAD "file": "AWA/02_Running the binaries/Auto updater in Go.md",
"file": "AWA/Blender/AutoRigPro/01 Smart Rig Creation.md",
=======
"file": "AWA/01_AWS Access/Autostart AWA Servers on instance startup.md",
>>>>>>> fb07057 (...)
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
} }
} }
}, },
{ {
"id": "5ab0dbb4d43cd129", "id": "944be67e58072832",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "tag", "type": "tag",
@ -132,16 +120,12 @@
} }
}, },
{ {
"id": "618fface621d3eb5", "id": "8f501cd9d271b189",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
<<<<<<< HEAD "file": "AWA/02_Running the binaries/Auto updater in Go.md"
"file": "AWA/Blender/AutoRigPro/01 Smart Rig Creation.md"
=======
"file": "AWA/01_AWS Access/Autostart AWA Servers on instance startup.md"
>>>>>>> fb07057 (...)
} }
} }
} }
@ -163,48 +147,8 @@
"obsidian-excalidraw-plugin:Create new drawing": false "obsidian-excalidraw-plugin:Create new drawing": false
} }
}, },
"active": "1fc1ac9fc01290be", "active": "ead58bf623196751",
"lastOpenFiles": [ "lastOpenFiles": [
<<<<<<< HEAD "AWA/02_Running the binaries/Auto updater in Go.md"
"AWA/Blender/_Workbench/Naming conventions avatar blendfile versions.md",
=======
"Pasted image 20240121135842.png",
"AWA/01_AWS Access/Install crontab.md",
"AWA/01_AWS Access/Autostart AWA Servers on instance startup.md",
>>>>>>> fb07057 (...)
"AWA/Godot/Godot World Environment Node (2D).md",
"AWA/Godot/Advanced Getters and Setters, useage of @tool.md",
"TestFolder/Drawing 2023-08-01 15.05.05.excalidraw.md",
"AWA/Godot",
"TestFolder/Drawing 2023-08-01 15.08.23.excalidraw.md",
"AWA/zz_useful_Youtube_tutorials.md",
"AWA/01_AWS Access/AWS Server Setup + Access.md",
"AWA/01_AWS Access/Lambda functions.md",
"AWA/01_AWS Access/Setup role for lambda function.md",
"AWA/Blender/AutoRigPro/02 Transfer animations.md",
"AWA/Blender/_Workbench",
"AWA/Blender/AutoRigPro/01 Smart Rig Creation.md",
"AWA/02_Running the binaries/Runtime Parameters.md",
"AWA/Struktur.md",
"AWA/02_Running the binaries",
"AWA/Blender/Cut mesh.md",
"AWA/Blender/AutoRigPro/02 Transfer animations",
"AWA/Blender/Courses/Node School on YT.md",
"AWA/Blender/AutoRigPro",
"AWA/Blender/Separate Selection into distinct object.md",
"AWA/Blender/Courses",
"AWA/Blender/Extend current selection.md",
"AWA/Blender/Dissolve Edges.md",
"AWA/Blender/Move Selection to new Collection.md",
"AWA/01_AWS Access",
"Setup",
"AWA/00_Concepts/AWA Tools.md",
"TestFolder/fun.md",
"AWA/00_Concepts/AWA C4 System Context.md",
"AWA/00_Concepts/AWA High Level Concept.md",
"Pasted Image 20231220120453_683.jpg",
"AWA/00_Concepts",
"AWA/Blender",
"Untitled.canvas"
] ]
} }

View file

@ -0,0 +1,37 @@
````go
package main
import (
"fmt"
"io/ioutil"
"net/http"
)
func main() {
url := "https://www.zauberturm.de/Downloads/demo.txt"
// Make a GET request to the URL
response, err := http.Get(url)
if err != nil {
fmt.Println("Error making GET request:", err)
return
}
defer response.Body.Close()
// Check if the response status code is OK (200)
if response.StatusCode != http.StatusOK {
fmt.Println("Error: Unexpected status code", response.StatusCode)
return
}
// Read the content of the response body
body, err := ioutil.ReadAll(response.Body)
if err != nil {
fmt.Println("Error reading response body:", err)
return
}
// Display the content of the downloaded file
fmt.Println(string(body))
}
```