golang

package
v0.5.2-0...-162e27b Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByLen

type ByLen []string

ByLen Sort the string in ascending order by count of each string Case: string:= ["abcd", "p", "xyz", "ab"] o/p: string:= ["p", "ab", "xyz", "abcd"]

func (ByLen) Len

func (a ByLen) Len() int

func (ByLen) Less

func (a ByLen) Less(i, j int) bool

func (ByLen) Swap

func (a ByLen) Swap(i, j int)

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

Parser struct manages the parsing of go files

func NewParser

func NewParser(r *schema.Reader) *Parser

NewParser returns Parser

func (*Parser) Parse

func (p *Parser) Parse(path string) (*schema.WebRPCSchema, error)

Parse parses the go file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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