Skip to content

Commit ecf1b0f

Browse files
author
lesheng
committed
init
1 parent f978e42 commit ecf1b0f

30 files changed

+1855
-1837
lines changed

.gitignore

+33-33
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2-
*.o
3-
*.a
4-
*.so
5-
6-
# Folders
7-
_obj
8-
_test
9-
10-
# Architecture specific extensions/prefixes
11-
*.[568vq]
12-
[568vq].out
13-
14-
*.cgo1.go
15-
*.cgo2.c
16-
_cgo_defun.c
17-
_cgo_gotypes.go
18-
_cgo_export.*
19-
20-
_testmain.go
21-
22-
*.prof
23-
# Test binary, build with `go test -c`
24-
*.test
25-
# Binaries for programs and plugins
26-
*.exe
27-
*.dll
28-
*.dylib
29-
30-
# JetBrains project files
31-
.idea/
32-
33-
# Output of the go coverage tool, specifically when used with LiteIDE
1+
# Compiled Object files, Static and Dynamic libs (Shared Objects)
2+
*.o
3+
*.a
4+
*.so
5+
6+
# Folders
7+
_obj
8+
_test
9+
10+
# Architecture specific extensions/prefixes
11+
*.[568vq]
12+
[568vq].out
13+
14+
*.cgo1.go
15+
*.cgo2.c
16+
_cgo_defun.c
17+
_cgo_gotypes.go
18+
_cgo_export.*
19+
20+
_testmain.go
21+
22+
*.prof
23+
# Test binary, build with `go test -c`
24+
*.test
25+
# Binaries for programs and plugins
26+
*.exe
27+
*.dll
28+
*.dylib
29+
30+
# JetBrains project files
31+
.idea/
32+
33+
# Output of the go coverage tool, specifically when used with LiteIDE
3434
*.out

.travis.yml

+25-25
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
language: node_js
2-
3-
env:
4-
global:
5-
- GH_REPO="github.com/tmrts/go-patterns"
6-
- secure: SRAVBGLCkoVpCNC5J43qC6xcQvigIYbGKgLMLiP9B4XiyKH/Q6VGjk/BVVPYuC0d072jNjgfhVdTLx/jGgy6nN+AD7i8U/FoDY6pQmy4cK1nghUUlt44mq7JTlXYHLmV3NsaxmRMV5QuO9L/9AMcCh6U0MxrgMYafSPaSdHQq8hTkFFOYU05zKKUihLF3sVfEZ0KpxhHjtKA+SqcJK2NjqaGdySaziSe6Nj1kZgF9/SJkOiw/bM7O4/uqFXqEGZo5QaOQpwaj2B0wfGqwfJtyE2wM+80Aw5Ya/yqdQWplUozHKv36/u1N45cHkeDbr+RXnBpmUfGh8YTbInWh9BjyU5MLgKeJTtUMAVvwr/soa+OsHuGmdeVM5mRdXISlFSnXCkoowJ6iQsPdqGvYROz0KqqXmkVDuUKdxPU4ShyKo/LqtRwXvxQS9etF4ais8MoNmW0zI3eKdc4b6cpCXWt5fUtK8uzSUGDHHVFGpWnk8VsF0cPfLYxd9bo87amHqYGQoPJ4ughTtOAbA6uSNlcDM9AkQ591+vHpQE15td2VXUOf7aKqqPFWy+GagsI/yPry6v3d/Mk5D4ZLUXZGOv5uvengyos0dxWg9EV1yjm/mpiCtuqAtvV9HMNxcMGGCii7dMy37WmGBj3HBqeGPYHvt8pKMo2/gkcXxadzBXvJVs=
7-
8-
install:
9-
- npm install gitbook-cli
10-
- gitbook install
11-
12-
script:
13-
- gitbook build . out
14-
15-
after_success:
16-
- echo -e "Deploying updates to GitHub..."
17-
- MSG=$(git log -1 --oneline)
18-
- cd out
19-
- git config --global user.email "[email protected]"
20-
- git config --global user.name "Tamer Tas"
21-
- git init
22-
- git checkout -b gh-pages
23-
- git add -A :/
24-
- git commit -m "Travis CI | ${MSG}"
25-
- git push "https://${GH_TOKEN}@${GH_REPO}" gh-pages -f
1+
language: node_js
2+
3+
env:
4+
global:
5+
- GH_REPO="github.com/tmrts/go-patterns"
6+
- secure: SRAVBGLCkoVpCNC5J43qC6xcQvigIYbGKgLMLiP9B4XiyKH/Q6VGjk/BVVPYuC0d072jNjgfhVdTLx/jGgy6nN+AD7i8U/FoDY6pQmy4cK1nghUUlt44mq7JTlXYHLmV3NsaxmRMV5QuO9L/9AMcCh6U0MxrgMYafSPaSdHQq8hTkFFOYU05zKKUihLF3sVfEZ0KpxhHjtKA+SqcJK2NjqaGdySaziSe6Nj1kZgF9/SJkOiw/bM7O4/uqFXqEGZo5QaOQpwaj2B0wfGqwfJtyE2wM+80Aw5Ya/yqdQWplUozHKv36/u1N45cHkeDbr+RXnBpmUfGh8YTbInWh9BjyU5MLgKeJTtUMAVvwr/soa+OsHuGmdeVM5mRdXISlFSnXCkoowJ6iQsPdqGvYROz0KqqXmkVDuUKdxPU4ShyKo/LqtRwXvxQS9etF4ais8MoNmW0zI3eKdc4b6cpCXWt5fUtK8uzSUGDHHVFGpWnk8VsF0cPfLYxd9bo87amHqYGQoPJ4ughTtOAbA6uSNlcDM9AkQ591+vHpQE15td2VXUOf7aKqqPFWy+GagsI/yPry6v3d/Mk5D4ZLUXZGOv5uvengyos0dxWg9EV1yjm/mpiCtuqAtvV9HMNxcMGGCii7dMy37WmGBj3HBqeGPYHvt8pKMo2/gkcXxadzBXvJVs=
7+
8+
install:
9+
- npm install gitbook-cli
10+
- gitbook install
11+
12+
script:
13+
- gitbook build . out
14+
15+
after_success:
16+
- echo -e "Deploying updates to GitHub..."
17+
- MSG=$(git log -1 --oneline)
18+
- cd out
19+
- git config --global user.email "[email protected]"
20+
- git config --global user.name "Tamer Tas"
21+
- git init
22+
- git checkout -b gh-pages
23+
- git add -A :/
24+
- git commit -m "Travis CI | ${MSG}"
25+
- git push "https://${GH_TOKEN}@${GH_REPO}" gh-pages -f

CONTRIBUTING.md

+31-31
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,31 @@
1-
# Contribution Guidelines
2-
3-
Please ensure your pull request adheres to the following guidelines:
4-
5-
- Make an individual pull request for each suggestion.
6-
- Choose the corresponding patterns section for your suggestion.
7-
- List, after your addition, should be in lexicographical order.
8-
9-
## Commit Messages Guidelines
10-
11-
- The message should be in imperative form and uncapitalized.
12-
- If possible, please include an explanation in the commit message body
13-
- Use the form `<pattern-section>/<pattern-name>: <message>` (e.g. `creational/singleton: refactor singleton constructor`)
14-
15-
## Pattern Template
16-
17-
Each pattern should have a single markdown file containing the important part of the implementation, the usage and the explanations for it. This is to ensure that the reader doesn't have to read bunch of boilerplate to understand what's going on and the code is as simple as possible and not simpler.
18-
19-
Please use the following template for adding new patterns:
20-
21-
```markdown
22-
# <Pattern-Name>
23-
<Pattern description>
24-
25-
## Implementation
26-
27-
## Usage
28-
29-
// Optional
30-
## Rules of Thumb
31-
```
1+
# Contribution Guidelines
2+
3+
Please ensure your pull request adheres to the following guidelines:
4+
5+
- Make an individual pull request for each suggestion.
6+
- Choose the corresponding patterns section for your suggestion.
7+
- List, after your addition, should be in lexicographical order.
8+
9+
## Commit Messages Guidelines
10+
11+
- The message should be in imperative form and uncapitalized.
12+
- If possible, please include an explanation in the commit message body
13+
- Use the form `<pattern-section>/<pattern-name>: <message>` (e.g. `creational/singleton: refactor singleton constructor`)
14+
15+
## Pattern Template
16+
17+
Each pattern should have a single markdown file containing the important part of the implementation, the usage and the explanations for it. This is to ensure that the reader doesn't have to read bunch of boilerplate to understand what's going on and the code is as simple as possible and not simpler.
18+
19+
Please use the following template for adding new patterns:
20+
21+
```markdown
22+
# <Pattern-Name>
23+
<Pattern description>
24+
25+
## Implementation
26+
27+
## Usage
28+
29+
// Optional
30+
## Rules of Thumb
31+
```

0 commit comments

Comments
 (0)