generator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	URLPattern = `<a.*?href="(.+?)".*?>(.*?)</a>`
	ImgPattern = `<img.*?alt="(.+?)".*?>`

	TagPattern         = `<.+?>(.+?)</.+?>`
	UnclosedTagPattern = `<.+?>`
)
View Source
const DocsURL = "https://core.telegram.org/bots/api"
View Source
const MaxLineLen = 110
View Source
const PackageName = "telego"

Variables

View Source
var (
	URLPatternReg = regexp.MustCompile(URLPattern)
	ImgPatternReg = regexp.MustCompile(ImgPattern)

	TagPatternReg         = regexp.MustCompile(TagPattern)
	UnclosedTagPatternReg = regexp.MustCompile(UnclosedTagPattern)
)

Functions

func CleanDescription

func CleanDescription(text string) string

func ConvertType

func ConvertType(text string, isOptional bool) string

func FitLine

func FitLine(text string, lineLen int) []string

func RemoveNewline

func RemoveNewline(text string) string

func RemoveTags

func RemoveTags(text string) string

func SnakeToCamelCase

func SnakeToCamelCase(text string, firstUpper bool) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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