token

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package token provides a mockable wrapper for go/token.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) IsExported

func (*Impl) IsExported(name string) bool

func (*Impl) IsIdentifier

func (*Impl) IsIdentifier(name string) bool

func (*Impl) IsKeyword

func (*Impl) IsKeyword(name string) bool

func (*Impl) Lookup

func (*Impl) Lookup(ident string) token.Token

func (*Impl) NewFileSet

func (*Impl) NewFileSet() *token.FileSet

type Interface

type Interface interface {
	IsExported(name string) bool
	IsIdentifier(name string) bool
	IsKeyword(name string) bool
	Lookup(ident string) token.Token
	NewFileSet() *token.FileSet
}

Jump to

Keyboard shortcuts

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