internal

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const BINARY = 57361
View Source
const BOOL = 57353
View Source
const BYTE = 57354
View Source
const CONST = 57374
View Source
const DOUBLE = 57359
View Source
const DUBCONSTANT = 57349
View Source
const ENUM = 57373
View Source
const EXCEPTION = 57369
View Source
const EXTENDS = 57370
View Source
const FALSE = 57378
View Source
const I16 = 57356
View Source
const I32 = 57357
View Source
const I64 = 57358
View Source
const I8 = 57355
View Source
const IDENTIFIER = 57346
View Source
const INCLUDE = 57351
View Source
const INTCONSTANT = 57348
View Source
const LIST = 57363
View Source
const LITERAL = 57347
View Source
const MAP = 57362
View Source
const NAMESPACE = 57350
View Source
const ONEWAY = 57365
View Source
const OPTIONAL = 57376
View Source
const REQUIRED = 57375
View Source
const SERVICE = 57372
View Source
const SET = 57364
View Source
const STRING = 57360
View Source
const STRUCT = 57367
View Source
const THROWS = 57371
View Source
const TRUE = 57377
View Source
const TYPEDEF = 57366
View Source
const UNION = 57368
View Source
const VOID = 57352

Variables

This section is empty.

Functions

func Parse

func Parse(s []byte) (*ast.Program, error)

Parse parses the given Thrift document.

func ParseDocstring added in v1.7.0

func ParseDocstring(s string) string

ParseDocstring takes a docstring in the form,

/**
 * foo bar
 */

And returns,

foo bar

func UnquoteSingleQuoted

func UnquoteSingleQuoted(in []byte) (string, error)

UnquoteSingleQuoted unquotes a slice of bytes representing a single quoted string.

UnquoteSingleQuoted([]byte("'foo'")) == "foo"

Types

This section is empty.

Jump to

Keyboard shortcuts

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