開発環境の実装完了
This commit is contained in:
parent
afe4113c2a
commit
075c3a83ca
32
README.md
32
README.md
@ -2,6 +2,14 @@
|
|||||||
|
|
||||||
Slackにメッセージを送信する
|
Slackにメッセージを送信する
|
||||||
|
|
||||||
|
## Functions
|
||||||
|
|
||||||
|
* Slackのチャンネルにメッセージを送信する
|
||||||
|
* Incoming Webhookに対応
|
||||||
|
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
## Dev
|
## Dev
|
||||||
|
|
||||||
実行
|
実行
|
||||||
@ -12,12 +20,34 @@ go run ./cmd/slacksend
|
|||||||
|
|
||||||
ビルド
|
ビルド
|
||||||
|
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go build -o slacksend ./cmd/slacksend
|
go build -o slacksend ./cmd/slacksend
|
||||||
```
|
```
|
||||||
|
|
||||||
## init
|
## Init
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
go mod init gitea.pglikers.com/tools/slacksen
|
go mod init gitea.pglikers.com/tools/slacksen
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Docs
|
||||||
|
|
||||||
|
### Markdown
|
||||||
|
|
||||||
|
`gomarkdoc`のInstallが必要です
|
||||||
|
|
||||||
|
```sh
|
||||||
|
go install github.com/princjef/gomarkdoc/cmd/gomarkdoc@latest
|
||||||
|
gomarkdoc ./... > docs/api.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### Webserver
|
||||||
|
|
||||||
|
`pkgsite`のInstallが必要です
|
||||||
|
|
||||||
|
```sh
|
||||||
|
go install golang.org/x/pkgsite/cmd/pkgsite@latest
|
||||||
|
pkgsite
|
||||||
|
```
|
||||||
|
|
||||||
|
|||||||
13
docs/api.md
Normal file
13
docs/api.md
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<!-- Code generated by gomarkdoc. DO NOT EDIT -->
|
||||||
|
|
||||||
|
# slacksend
|
||||||
|
|
||||||
|
```go
|
||||||
|
import "gitea.pglikers.com/tools/slacksen/cmd/slacksend"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Indexv
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Generated by [gomarkdoc](<https://github.com/princjef/gomarkdoc>)
|
||||||
@ -5,3 +5,15 @@
|
|||||||
```sh
|
```sh
|
||||||
gofmt -w .
|
gofmt -w .
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Linter (Stn)
|
||||||
|
|
||||||
|
```sh
|
||||||
|
go vet ./...
|
||||||
|
```
|
||||||
|
|
||||||
|
## Test
|
||||||
|
|
||||||
|
```sh
|
||||||
|
go test ./...
|
||||||
|
```
|
||||||
Loading…
x
Reference in New Issue
Block a user