Skip to content

Commit 1d9460d

Browse files
committed
Merge branch 'release/0.1.0'
2 parents ac6635d + 0813038 commit 1d9460d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+4362
-0
lines changed

.editorconfig

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
end_of_line = lf
7+
insert_final_newline = true
8+
charset = utf-8
9+
10+
# use 2 spaces for yaml
11+
[{*.yaml,*.yml}]
12+
indent_style = space
13+
indent_size = 2
14+
trim_trailing_whitespace = true
15+
16+
17+
# use 4 spaces for shell files and Dockerfile
18+
[{*.sh,Dockerfile}]
19+
indent_style = space
20+
indent_size = 4
21+
trim_trailing_whitespace = true
22+
23+
24+
# hard tabs for Go and Makefile
25+
[*.go]
26+
indent_style = tab
27+
28+
[Makefile]
29+
indent_style = tab

.gitignore

Lines changed: 151 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
# for easier development outside global GOPATH
2+
/.gopath
3+
4+
# library has no lockfile
5+
/Gopkg.lock
6+
7+
8+
# Created by https://www.gitignore.io/api/go,vim,linux,emacs,macos,visualstudiocode
9+
# Edit at https://www.gitignore.io/?templates=go,vim,linux,emacs,macos,visualstudiocode
10+
11+
### Emacs ###
12+
# -*- mode: gitignore; -*-
13+
*~
14+
\#*\#
15+
/.emacs.desktop
16+
/.emacs.desktop.lock
17+
*.elc
18+
auto-save-list
19+
tramp
20+
.\#*
21+
22+
# Org-mode
23+
.org-id-locations
24+
*_archive
25+
26+
# flymake-mode
27+
*_flymake.*
28+
29+
# eshell files
30+
/eshell/history
31+
/eshell/lastdir
32+
33+
# elpa packages
34+
/elpa/
35+
36+
# reftex files
37+
*.rel
38+
39+
# AUCTeX auto folder
40+
/auto/
41+
42+
# cask packages
43+
.cask/
44+
dist/
45+
46+
# Flycheck
47+
flycheck_*.el
48+
49+
# server auth directory
50+
/server/
51+
52+
# projectiles files
53+
.projectile
54+
55+
# directory configuration
56+
.dir-locals.el
57+
58+
# network security
59+
/network-security.data
60+
61+
62+
### Go ###
63+
# Binaries for programs and plugins
64+
*.exe
65+
*.exe~
66+
*.dll
67+
*.so
68+
*.dylib
69+
70+
# Test binary, build with `go test -c`
71+
*.test
72+
73+
# Output of the go coverage tool, specifically when used with LiteIDE
74+
*.out
75+
76+
### Go Patch ###
77+
/vendor/
78+
/Godeps/
79+
80+
### Linux ###
81+
82+
# temporary files which can be created if a process still has a handle open of a deleted file
83+
.fuse_hidden*
84+
85+
# KDE directory preferences
86+
.directory
87+
88+
# Linux trash folder which might appear on any partition or disk
89+
.Trash-*
90+
91+
# .nfs files are created when an open file is removed but is still being accessed
92+
.nfs*
93+
94+
### macOS ###
95+
# General
96+
.DS_Store
97+
.AppleDouble
98+
.LSOverride
99+
100+
# Icon must end with two \r
101+
Icon
102+
103+
# Thumbnails
104+
._*
105+
106+
# Files that might appear in the root of a volume
107+
.DocumentRevisions-V100
108+
.fseventsd
109+
.Spotlight-V100
110+
.TemporaryItems
111+
.Trashes
112+
.VolumeIcon.icns
113+
.com.apple.timemachine.donotpresent
114+
115+
# Directories potentially created on remote AFP share
116+
.AppleDB
117+
.AppleDesktop
118+
Network Trash Folder
119+
Temporary Items
120+
.apdisk
121+
122+
### Vim ###
123+
# Swap
124+
[._]*.s[a-v][a-z]
125+
[._]*.sw[a-p]
126+
[._]s[a-rt-v][a-z]
127+
[._]ss[a-gi-z]
128+
[._]sw[a-p]
129+
130+
# Session
131+
Session.vim
132+
133+
# Temporary
134+
.netrwhist
135+
# Auto-generated tag files
136+
tags
137+
# Persistent undo
138+
[._]*.un~
139+
140+
### VisualStudioCode ###
141+
.vscode/*
142+
!.vscode/settings.json
143+
!.vscode/tasks.json
144+
!.vscode/launch.json
145+
!.vscode/extensions.json
146+
147+
### VisualStudioCode Patch ###
148+
# Ignore all local history of files
149+
.history
150+
151+
# End of https://www.gitignore.io/api/go,vim,linux,emacs,macos,visualstudiocode

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
language: go
2+
go:
3+
- "1.12.x"
4+
- "1.13.x"
5+
go_import_path: github.com/xen0n/go-workwx
6+
branches:
7+
# https://bors.tech/documentation/getting-started/
8+
# unfortunately whitelisting is necessary because otherwise my own branches
9+
# would get (repeatedly) built as well...
10+
only:
11+
- 'staging'
12+
- 'trying'
13+
- 'develop'
14+
- 'master'
15+
cache:
16+
- $GOPATH/pkg/dep
17+
before_install:
18+
- if [[ "$TRAVIS_GO_VERSION" != "1.13.x" ]]; then go get -u -v github.com/golang/dep/cmd/dep ; fi
19+
- go get -u -v honnef.co/go/tools/cmd/staticcheck
20+
install:
21+
- if [[ "$TRAVIS_GO_VERSION" != "1.13.x" ]]; then dep ensure -v ; fi
22+
- go install -v ./...
23+
script:
24+
- ./ci/run-lint.sh
25+
- go test -v ./...

Gopkg.toml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Gopkg.toml example
2+
#
3+
# Refer to https://golang.github.io/dep/docs/Gopkg.toml.html
4+
# for detailed Gopkg.toml documentation.
5+
#
6+
# required = ["github.com/user/thing/cmd/thing"]
7+
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
8+
#
9+
# [[constraint]]
10+
# name = "github.com/user/project"
11+
# version = "1.0.0"
12+
#
13+
# [[constraint]]
14+
# name = "github.com/user/project2"
15+
# branch = "dev"
16+
# source = "github.com/myfork/project2"
17+
#
18+
# [[override]]
19+
# name = "github.com/x/y"
20+
# version = "2.4.0"
21+
#
22+
# [prune]
23+
# non-go = false
24+
# go-tests = true
25+
# unused-packages = true
26+
27+
28+
[[constraint]]
29+
name = "github.com/cenkalti/backoff"
30+
version = "3.0.0"
31+
32+
[[constraint]]
33+
name = "github.com/smartystreets/goconvey"
34+
version = "1.6.3"
35+
36+
[[constraint]]
37+
name = "gopkg.in/russross/blackfriday.v2"
38+
version = "2.0.1"
39+
40+
[[constraint]]
41+
branch = "v2"
42+
name = "gopkg.in/urfave/cli.v2"
43+
44+
[prune]
45+
go-tests = true
46+
unused-packages = true

LICENSE

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Copyright (c) 2018 Wang Xuerui
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
17+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
18+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
19+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
20+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21+
22+
[Except as contained in this notice, the name of <copyright holders>
23+
shall not be used in advertising or otherwise to promote the sale, use
24+
or other dealings in this Software without prior written authorization
25+
from <copyright holders>.]

0 commit comments

Comments
 (0)