gen

command module
v0.0.0-...-75bc4bf Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

Generator

Disgo uses generators to easily update and maintain over 8000 lines of code.

Dasgo

Disgo sources Discord API objects from dasgo. All updates to Discord API Structs should be made in that repository.

Step Description
download Download an updated version of dasgo for modification (-d).
endpoints dasgo endpoints (which must be removed) are converted into disgo endpoint functions.
nstruct dasgo structs are renamed (via filename) to the disgo standard.
xstruct dasgo structs are extracted into one file. Uses option to include var and const.
snowflake Snowflake fields are converted to string.
flagstd Flags in the extracted file are standardized.

Disgo

Disgo generates code for features using copygen. This requires corresponding setup.go files to be updated. Use the diff from Git to update those files accordingly.

Step Description
send.go Uses copygen to generate request Send() functions.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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