tgdocs2go

command module
v0.0.0-...-e0e5180 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 4, 2018 License: MIT Imports: 5 Imported by: 0

README

tgdocs2go Build Status

Simple tool to parse telegram documentation and generate go code.

For example, in order to generate a struct for the User type, one needs to run

tgdocs2go User

and the following will be printed on stdout

// https://core.telegram.org/bots/api#User
type User struct {
    ID                            int64               `json:"id"`
    IsBot                         bool                `json:"is_bot"`
    FirstName                     string              `json:"first_name"`
    LastName                      string              `json:"last_name"`
    Username                      string              `json:"username"`
    LanguageCode                  string              `json:"language_code"`
}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL