From 59e9d556fe35919421977de8c02ec6facf8daf1b Mon Sep 17 00:00:00 2001 From: Ian Andwati Date: Thu, 19 Dec 2024 16:41:55 +0300 Subject: [PATCH] initial commit --- .gitignore | Bin 0 -> 1066 bytes .idea/.gitignore | 8 ++++++++ .idea/dns-resolver.iml | 9 +++++++++ .idea/modules.xml | 8 ++++++++ README.md | 1 + go.mod | 3 +++ main.go | 21 +++++++++++++++++++++ 7 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 .idea/.gitignore create mode 100644 .idea/dns-resolver.iml create mode 100644 .idea/modules.xml create mode 100644 README.md create mode 100644 go.mod create mode 100644 main.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..2f01a54547d2b0f58192b354b31ccbd24598d482 GIT binary patch literal 1066 zcmZvb%SyyR5JhV(_zwX$Dw^!wDT)jTZu|hvV`hSR$Ru%e zm7nhui)>*_zMt0G!1`tzE3g!-k@dD_7ukzdJgsfnS5{hwN8Z9}GAjJqM|c|d6ovX}?9Q$%;aPdkn(Wl#U9Guw zJe9;YVCkL-(Yja4u7?4Bsyvmra2V!Or?RCyp%n#4OEe=!2%k@t;byntSU z-*J6|;a(c6JB?sJq?4^y|uDm|Z^ zjk=mn3_nf%Nx?43kZ;RQ-HhxRJ}s*{6sF-4-JU0u(XRR<#v_%~Gkp(dBUIB2yi-vc ztXNgQ<*A%WM{WU1iDo5hm`csb*5|ZgH^8QF)%IM~9r0P%t=&xwHShgQgIi*RAl3EF zdb~dS``-_1lG@0?! t4C=1(ymHSs6v&9y45>q58l+@AMM?X)B_?xV!v1zfi0=n=G-0wT?icv9vAO^N literal 0 HcmV?d00001 diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/dns-resolver.iml b/.idea/dns-resolver.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/dns-resolver.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..73cd32f --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..14039ad --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# DNS Resolver \ No newline at end of file diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..785ef64 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module github.com/andwati/dns-resolver + +go 1.23 diff --git a/main.go b/main.go new file mode 100644 index 0000000..71ae5c9 --- /dev/null +++ b/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