From 6d5eb4bba5ab2696bd875690c6f6d71304907296 Mon Sep 17 00:00:00 2001 From: zeaslity Date: Thu, 13 Mar 2025 10:07:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20cmii-uav-watchdog-common?= =?UTF-8?q?=20=E6=A8=A1=E5=9D=97=E5=8F=8A=E7=9B=B8=E5=85=B3=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmii-uav-watchdog-common.iml | 9 +++++++++ cmii-uav-watchdog-common/go.mod | 3 +++ cmii-uav-watchdog-common/main.go | 21 +++++++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 cmii-uav-watchdog-common.iml create mode 100644 cmii-uav-watchdog-common/go.mod create mode 100644 cmii-uav-watchdog-common/main.go diff --git a/cmii-uav-watchdog-common.iml b/cmii-uav-watchdog-common.iml new file mode 100644 index 0000000..9359aee --- /dev/null +++ b/cmii-uav-watchdog-common.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/cmii-uav-watchdog-common/go.mod b/cmii-uav-watchdog-common/go.mod new file mode 100644 index 0000000..503e87c --- /dev/null +++ b/cmii-uav-watchdog-common/go.mod @@ -0,0 +1,3 @@ +module cmii-uav-watchdog-common + +go 1.24 diff --git a/cmii-uav-watchdog-common/main.go b/cmii-uav-watchdog-common/main.go new file mode 100644 index 0000000..71ae5c9 --- /dev/null +++ b/cmii-uav-watchdog-common/main.go @@ -0,0 +1,21 @@ +package main + +import ( + "fmt" +) + +//TIP

To run your code, right-click the code and select Run.

Alternatively, click +// the icon in the gutter and select the Run menu item from here.

+ +func main() { + //TIP

Press when your caret is at the underlined text + // to see how GoLand suggests fixing the warning.

Alternatively, if available, click the lightbulb to view possible fixes.

+ s := "gopher" + fmt.Println("Hello and welcome, %s!", s) + + for i := 1; i <= 5; i++ { + //TIP

To start your debugging session, right-click your code in the editor and select the Debug option.

We have set one breakpoint + // for you, but you can always add more by pressing .

+ fmt.Println("i =", 100/i) + } +} \ No newline at end of file