jsonify

package
v0.0.0-...-ac4698a Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Def

type Def struct {
	Pkg *Pkg `json:"pkg"`
	Obj *Obj `json:"obj"`
}

type Ident

type Ident struct {
	Name string `json:"name"`
	P    *Pos   `json:"p"`
}

type Obj

type Obj struct {
	Str  string `json:"str"`
	Recv string `json:"recv,omitempty"`
	Type string `json:"type"`
	P    *Pos   `json:"p"`
	Name string `json:"name"`
}

type Pkg

type Pkg struct {
	Name string `json:"name"`
	Path string `json:"path"`
}

type Pos

type Pos struct {
	Pos      token.Pos `json:"pos"`
	Position string    `json:"position,omitempty"`
}

type Ref

type Ref struct {
	Pkg   *Pkg   `json:"pkg"`
	Ident *Ident `json:"ident"`
	Obj   *Obj   `json:"obj"`
}

type Use

type Use struct {
	Ref *Ref `json:"ref"`
	Def *Def `json:"def"`
}

func NewUse

func NewUse(node search.Use) *Use

Jump to

Keyboard shortcuts

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