version

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Version = "1.2.0"

Version is the current ThriftRW version.

Variables

This section is empty.

Functions

func CheckCompatWithGeneratedCodeAt

func CheckCompatWithGeneratedCodeAt(genCodeVersion string, fromPkg string)

CheckCompatWithGeneratedCodeAt will panic if the ThriftRW version used to generated code (given by `genCodeVersion`) is not compatible with the current version of ThriftRW. This function is designed to be called during initialization of the generated code.

Rationale: It is possible that the old generated code is not compatible with the new version of ThriftRW in subtle ways but still compiles successfully. This function will ensure that the version mismatch is detected and help avoid bugs that could be caused by this discrepancy.

Types

This section is empty.

Jump to

Keyboard shortcuts

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