parse

package
v0.0.0-...-bdfd36d Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultImportPath

func DefaultImportPath() (importPath string)

Types

type Package

type Package struct {
	Name       string // golang package name
	Path       string // directory path
	ImportPath string // pkg import path

	Functions []types.Object // exported cloud functions
}

Package holds a golangs package name, directory path and exported cloud functions

type Packages

type Packages []Package

func GetPackages

func GetPackages() Packages

GetPackages parses all toplevel folders in ./ and returns all found packages that contain cloud functions

func (Packages) Functions

func (pkgs Packages) Functions() []types.Object

func (Packages) Paths

func (pkgs Packages) Paths() []string

Jump to

Keyboard shortcuts

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