開発環境の実装完了

This commit is contained in:
ry.yamafuji 2025-12-24 09:07:31 +09:00
parent afe4113c2a
commit 075c3a83ca
3 changed files with 57 additions and 2 deletions

View File

@ -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
View 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>)

View File

@ -5,3 +5,15 @@
```sh
gofmt -w .
```
## Linter (Stn)
```sh
go vet ./...
```
## Test
```sh
go test ./...
```