mirror of
https://github.com/c0re100/gotdlib.git
synced 2026-02-21 20:20:17 +01:00
init
This commit is contained in:
commit
3b23208ee0
23 changed files with 49288 additions and 0 deletions
18
Makefile
Normal file
18
Makefile
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
TAG := v1.2.0
|
||||
|
||||
schema-update:
|
||||
curl https://raw.githubusercontent.com/tdlib/td/${TAG}/td/generate/scheme/td_api.tl 2>/dev/null > ./data/td_api.tl
|
||||
|
||||
generate-json:
|
||||
go run ./cmd/generate-json.go \
|
||||
-input "./data/td_api.tl" \
|
||||
-output "./data/td_api.json"
|
||||
|
||||
generate-code:
|
||||
go run ./cmd/generate-code.go \
|
||||
-schema "./data/td_api.tl" \
|
||||
-outputDir "./client" \
|
||||
-package client \
|
||||
-functionFile function.go \
|
||||
-typeFile type.go \
|
||||
-unmarshalerFile unmarshaler.go
|
||||
Loading…
Add table
Add a link
Reference in a new issue