1
0
Fork 0

🚚 Moved and fixed README.md

This commit is contained in:
Maxim Lebedev 2024-08-05 16:09:43 +05:00
parent 2dda38a875
commit 87a95802ea
Signed by: toby3d
GPG key ID: 1F14E25B7C119FC5
3 changed files with 14 additions and 14 deletions

View file

@ -1,21 +1,21 @@
# telegraph [![Go Reference](https://pkg.go.dev/badge/source.toby3d.me/toby3d/telegraph.svg)](https://pkg.go.dev/source.toby3d.me/toby3d/telegraph)
![](cover.jpg)
# telegraph [![Go Reference](https://pkg.go.dev/badge/source.toby3d.me/toby3d/telegraph/v2.svg)](https://pkg.go.dev/source.toby3d.me/toby3d/telegraph/v2)
![](assets/cover.jpg)
A simple package [with minimum official dependencies](../go.mod) to work with [Telegraph API](https://telegra.ph/api).
A simple package [with minimum official dependencies](v2/go.mod) to work with [Telegraph API](https://telegra.ph/api).
Download:
```bash
$ go get -u source.toby3d.me/toby3d/telegraph
$ go get -u source.toby3d.me/toby3d/telegraph/v2
```
Import:
```
import "source.toby3d.me/toby3d/telegraph"
import "source.toby3d.me/toby3d/telegraph/v2"
```
Fill commands structs and execute it:
```go
package telegraph_test
package main
import (
"context"
@ -23,7 +23,7 @@ import (
"log"
"net/http"
"source.toby3d.me/toby3d/telegraph"
"source.toby3d.me/toby3d/telegraph/v2"
)
func Must[T any](v T, err error) T {

View file

@ -1,21 +1,21 @@
# telegraph [![Go Reference](https://pkg.go.dev/badge/source.toby3d.me/toby3d/telegraph.svg)](https://pkg.go.dev/source.toby3d.me/toby3d/telegraph)
![](cover.jpg)
# telegraph [![Go Reference](https://pkg.go.dev/badge/source.toby3d.me/toby3d/telegraph/v2.svg)](https://pkg.go.dev/source.toby3d.me/toby3d/telegraph/v2)
![](assets/cover.jpg)
Простой пакет [с минимумом официальных зависимостей](../go.mod) для работы с [Telegraph API](https://telegra.ph/api).
Простой пакет [с минимумом официальных зависимостей](v2/go.mod) для работы с [Telegraph API](https://telegra.ph/api).
Загрузите:
```bash
$ go get -u source.toby3d.me/toby3d/telegraph
$ go get -u source.toby3d.me/toby3d/telegraph/v2
```
Импортируйте:
```
import "source.toby3d.me/toby3d/telegraph"
import "source.toby3d.me/toby3d/telegraph/v2"
```
Заполните структуры команд и вызовите их:
```go
package telegraph_test
package main
import (
"context"
@ -23,7 +23,7 @@ import (
"log"
"net/http"
"source.toby3d.me/toby3d/telegraph"
"source.toby3d.me/toby3d/telegraph/v2"
)
func Must[T any](v T, err error) T {

View file

Before

Width:  |  Height:  |  Size: 213 KiB

After

Width:  |  Height:  |  Size: 213 KiB