開発環境の実装完了
This commit is contained in:
parent
afe4113c2a
commit
075c3a83ca
32
README.md
32
README.md
@ -2,6 +2,14 @@
|
||||
|
||||
Slackにメッセージを送信する
|
||||
|
||||
## Functions
|
||||
|
||||
* Slackのチャンネルにメッセージを送信する
|
||||
* Incoming Webhookに対応
|
||||
|
||||
|
||||
---
|
||||
|
||||
## Dev
|
||||
|
||||
実行
|
||||
@ -12,12 +20,34 @@ go run ./cmd/slacksend
|
||||
|
||||
ビルド
|
||||
|
||||
|
||||
```sh
|
||||
go build -o slacksend ./cmd/slacksend
|
||||
```
|
||||
|
||||
## init
|
||||
## Init
|
||||
|
||||
```sh
|
||||
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
|
||||
gofmt -w .
|
||||
```
|
||||
|
||||
## Linter (Stn)
|
||||
|
||||
```sh
|
||||
go vet ./...
|
||||
```
|
||||
|
||||
## Test
|
||||
|
||||
```sh
|
||||
go test ./...
|
||||
```
|
||||
Loading…
x
Reference in New Issue
Block a user