initial commit
This commit is contained in:
commit
6358d0754b
34 changed files with 82616 additions and 0 deletions
19
Makefile
Normal file
19
Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
TAG := v1.7.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 \
|
||||
-version "${TAG}" \
|
||||
-output "./data/td_api.json"
|
||||
|
||||
generate-code:
|
||||
go run ./cmd/generate-code.go \
|
||||
-version "${TAG}" \
|
||||
-outputDir "./client" \
|
||||
-package client \
|
||||
-functionFile function.go \
|
||||
-typeFile type.go \
|
||||
-unmarshalerFile unmarshaler.go
|
||||
go fmt ./...
|
Loading…
Add table
Add a link
Reference in a new issue