typetools

package module
v0.0.0-...-5a8e0f4 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

README

typetools Build Status GoDoc

A library for building type-based tooling

  • Package → types parser
  • Converting from reflect.Type to go/type.Type

License

typetools is licensed under the Apache License

Documentation

Overview

Package typetools provides utility functions to work with types in Go.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFromPkg

func ParseFromPkg(src string) (map[string]types.Type, error)

ParseFromPkg parses the types of objects in a package from a given source code src. For example,

package main
var x int           // x    → int type
func main() { ... } // main → func() type

Types

This section is empty.

Directories

Path Synopsis
Package rtypes provides utility functions to work with runtime types.
Package rtypes provides utility functions to work with runtime types.

Jump to

Keyboard shortcuts

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