From 7d8fbfcd30d5b3142ddf7505696980bb1cf3ddee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=B4=AA=E5=AE=9D?= Date: Thu, 27 Sep 2018 18:09:18 +0800 Subject: [PATCH] update --- .idea/golang-design-patterns.iml | 8 + .idea/misc.xml | 6 + .idea/modules.xml | 8 + .idea/vcs.xml | 6 + .idea/workspace.xml | 279 +++++++++++++++++++++++++++++++ README.md | 55 +++++- singleton/README.md | 196 ++++++++++++++++++++++ singleton/double-check-lock.go | 34 ++++ singleton/lazy-loading.go | 35 ++++ singleton/starving-loading.go | 31 ++++ 10 files changed, 657 insertions(+), 1 deletion(-) create mode 100644 .idea/golang-design-patterns.iml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 .idea/workspace.xml create mode 100644 singleton/README.md create mode 100644 singleton/double-check-lock.go create mode 100644 singleton/lazy-loading.go create mode 100644 singleton/starving-loading.go diff --git a/.idea/golang-design-patterns.iml b/.idea/golang-design-patterns.iml new file mode 100644 index 0000000..c956989 --- /dev/null +++ b/.idea/golang-design-patterns.iml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..28a804d --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..0a86d19 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/workspace.xml b/.idea/workspace.xml new file mode 100644 index 0000000..dafc2b4 --- /dev/null +++ b/.idea/workspace.xml @@ -0,0 +1,279 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + DEFINITION_ORDER + + + + + + + + + + + + + + + + + + + + + + + + + +