Jelajahi Sumber

first commit

runningwater 5 tahun lalu
melakukan
caa6d476a7
11 mengubah file dengan 120 tambahan dan 0 penghapusan
  1. 46 0
      .gitignore
  2. 2 0
      .idea/.gitignore
  3. 6 0
      .idea/misc.xml
  4. 8 0
      .idea/modules.xml
  5. 9 0
      .idea/monitor.iml
  6. 6 0
      .idea/vcs.xml
  7. 8 0
      READEME.md
  8. 25 0
      cmd.go
  9. 3 0
      go.mod
  10. 7 0
      main.go
  11. TEMPAT SAMPAH
      monitor

+ 46 - 0
.gitignore

@@ -0,0 +1,46 @@
+# Created by .ignore support plugin (hsz.mobi)
+### macOS template
+# General
+.DS_Store
+.AppleDouble
+.LSOverride
+
+# Icon must end with two \r
+Icon
+
+# Thumbnails
+._*
+
+# Files that might appear in the root of a volume
+.DocumentRevisions-V100
+.fseventsd
+.Spotlight-V100
+.TemporaryItems
+.Trashes
+.VolumeIcon.icns
+.com.apple.timemachine.donotpresent
+
+# Directories potentially created on remote AFP share
+.AppleDB
+.AppleDesktop
+Network Trash Folder
+Temporary Items
+.apdisk
+
+### Go template
+# Binaries for programs and plugins
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+
+# Test binary, built with `go test -c`
+*.test
+
+# Output of the go coverage tool, specifically when used with LiteIDE
+*.out
+
+# Dependency directories (remove the comment below to include it)
+# vendor/
+

+ 2 - 0
.idea/.gitignore

@@ -0,0 +1,2 @@
+# Default ignored files
+/workspace.xml

+ 6 - 0
.idea/misc.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="JavaScriptSettings">
+    <option name="languageLevel" value="ES6" />
+  </component>
+</project>

+ 8 - 0
.idea/modules.xml

@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/monitor.iml" filepath="$PROJECT_DIR$/.idea/monitor.iml" />
+    </modules>
+  </component>
+</project>

+ 9 - 0
.idea/monitor.iml

@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="Go" enabled="true" />
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 6 - 0
.idea/vcs.xml

@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="VcsDirectoryMappings">
+    <mapping directory="$PROJECT_DIR$" vcs="Git" />
+  </component>
+</project>

+ 8 - 0
READEME.md

@@ -0,0 +1,8 @@
+# 设备运行情况健康工具
+
+主要功能:
+  1. 生成设备运行监控 EXCEL 报表
+    设备在线但不上传数据 在线但是未接收到数据的时间统计(单位:小时)
+    设备总数 在线数 离线书
+    设备不同协议版本 总数 在线数 离线数 
+  2. 报表发送相关人员

+ 25 - 0
cmd.go

@@ -0,0 +1,25 @@
+package main
+
+import (
+    "flag"
+    "fmt"
+    "os"
+)
+
+// Cmd 输入参数命令选项和参数
+type Cmd struct {
+    helpFlag    bool // 帮助标识
+    versionFlag bool // 版本标识
+}
+
+func parseCmd() *Cmd {
+    cmd := &Cmd{}
+    flag.Usage = printUsage
+
+    return cmd
+}
+
+// 使用提示
+func printUsage() {
+    fmt.Printf("Usage: %s [-options] class [args ...]\n", os.Args[0])
+}

+ 3 - 0
go.mod

@@ -0,0 +1,3 @@
+module monitor
+
+go 1.14

+ 7 - 0
main.go

@@ -0,0 +1,7 @@
+package main
+
+import "fmt"
+
+func main() {
+    fmt.Print("hello, world")
+}

TEMPAT SAMPAH
monitor