From 06db3eae1ffee0aa6e96b21262452d379aeb5ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=96=83=E5=96=83=E6=B1=A1?= Date: Thu, 6 Nov 2025 22:03:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E9=87=8F=E6=B5=8B=E8=AF=951?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.go | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/main.go b/main.go index 8918222..2a17224 100644 --- a/main.go +++ b/main.go @@ -1,21 +1,10 @@ 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.

+import "fmt" 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.Printf("Hello and welcome, %s!\n", 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) - } + var a = 100 + var b int + b = 100 + fmt.Print("a=", a, "b=", b) }