tokenh

package
v0.0.0-...-61d31b1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2018 License: Apache-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package tokenh constains helper functions for Go package token.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsComparison

func IsComparison(t token.Token) bool

IsComparison returns true if passed token t is a comparison operator ("==", "!=", "<", "<=", ">" or ">=").

func IsEqualityCheck

func IsEqualityCheck(t token.Token) bool

IsEqualityCheck returns true if passed token t is equality check operator ("==" or "!=").

func IsOrderCheck

func IsOrderCheck(t token.Token) bool

IsOrderCheck returns true if passed token t is order check operator ("<", "<=", ">" or ">=").

func IsShift

func IsShift(t token.Token) bool

IsShift returns true if passed token t is a shift operator ("<<" or ">>").

Types

This section is empty.

Jump to

Keyboard shortcuts

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