https://github.com/ipuppet/clipsync
https://github.com/ipuppet/clipsync
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ipuppet/clipsync
- Owner: ipuppet
- Created: 2022-11-15T13:13:06.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-02-08T10:15:08.000Z (4 months ago)
- Last Synced: 2025-02-08T10:27:33.486Z (4 months ago)
- Language: Go
- Size: 30.3 KB
- Stars: 8
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clipsync
> Sync clip with http api
```bash
-port [string] The service listening port.
-addr [string] The service listening address.
-conf [string] The config file path.
```## Build
require github.com/josephspurrier/goversioninfo
`go install github.com/josephspurrier/goversioninfo/cmd/goversioninfo@latest`
`make build_win`
## API
### file
- POST `/api/clip`
Set clipboard.
Body:
```json
{
"data": "Hello world!"
}
```Response:
```json
{
"status": true
}
```- GET `/api/clip`
Get clipboard.
Response:
```json
{
"status": true,
"data": "Hello world!"
}
```