From 4c7d35da1715a70213f482293dd5064fa67daf99 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=99=BD=E8=8C=B6=E6=B8=85=E6=AC=A2?= Date: Sat, 15 Apr 2023 20:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=9B=E5=9E=8B=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 21 +++++++++++++++++++++ dict.go | 17 +++++++++++++++++ float.go | 17 +++++++++++++++++ int.go | 17 +++++++++++++++++ number.go | 17 +++++++++++++++++ uint.go | 17 +++++++++++++++++ 6 files changed, 106 insertions(+) create mode 100644 .gitignore create mode 100644 dict.go create mode 100644 float.go create mode 100644 int.go create mode 100644 number.go create mode 100644 uint.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6e0b823 --- /dev/null +++ b/.gitignore @@ -0,0 +1,21 @@ +# Created by .ignore support plugin (hsz.mobi) +### 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/ +.idea +.vscode +release +logs diff --git a/dict.go b/dict.go new file mode 100644 index 0000000..24ab5a6 --- /dev/null +++ b/dict.go @@ -0,0 +1,17 @@ +// Package op_type ... +// +// Description : op_type ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2023-04-15 20:17 +package op_type + +// Dict ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 20:18 2023/4/15 +type Dict interface { + map[string]interface{} | map[interface{}]interface{} | map[int64]int64 | map[float64]interface{} +} diff --git a/float.go b/float.go new file mode 100644 index 0000000..945da36 --- /dev/null +++ b/float.go @@ -0,0 +1,17 @@ +// Package op_type ... +// +// Description : op_type ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2023-04-15 20:12 +package op_type + +// Float ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 20:12 2023/4/15 +type Float interface { + float32 | float64 +} diff --git a/int.go b/int.go new file mode 100644 index 0000000..f0065b2 --- /dev/null +++ b/int.go @@ -0,0 +1,17 @@ +// Package op_type ... +// +// Description : op_type ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2023-04-15 20:07 +package op_type + +// Int int类型 +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 20:07 2023/4/15 +type Int interface { + int | int8 | int16 | int32 | int64 +} diff --git a/number.go b/number.go new file mode 100644 index 0000000..6ffa711 --- /dev/null +++ b/number.go @@ -0,0 +1,17 @@ +// Package op_type ... +// +// Description : op_type ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2023-04-15 20:13 +package op_type + +// Number ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 20:14 2023/4/15 +type Number interface { + int | int8 | int16 | int32 | int64 | uint | uint8 | uint16 | uint32 | uint64 | float32 | float64 +} diff --git a/uint.go b/uint.go new file mode 100644 index 0000000..79724f3 --- /dev/null +++ b/uint.go @@ -0,0 +1,17 @@ +// Package op_type ... +// +// Description : op_type ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 2023-04-15 20:10 +package op_type + +// Uint ... +// +// Author : go_developer@163.com<白茶清欢> +// +// Date : 20:10 2023/4/15 +type Uint interface { + uint | uint8 | uint16 | uint32 | uint64 +}