tdp

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 6 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package tdp is td pretty-printing and formatting facilities for types from MTProto.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(object Object, opts ...Option) string

Format pretty-prints v into string.

func WithTypeID

func WithTypeID(o *options)

WithTypeID adds type id tp type name.

Types

type Field

type Field struct {
	Name       string
	SchemaName string
	Null       bool
}

Field of TL type, non-recursive.

type Object

type Object interface {
	TypeInfo() Type
}

Object of TL schema that can return type info.

type Option

type Option func(o *options)

Option of formatting.

type Type

type Type struct {
	// Name in TL schema.
	Name string
	// ID is type id.
	ID uint32
	// Fields of type.
	Fields []Field
	// Null denotes whether value is null.
	Null bool
}

Type info for TL type, non-recursive.

Directories

Path Synopsis
Package internal wraps internal packages for tdp package.
Package internal wraps internal packages for tdp package.

Jump to

Keyboard shortcuts

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