golang

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var InitFuncTmpl []byte
View Source
var MainFuncTmpl []byte

Functions

func GenerateCode

func GenerateCode(fset *token.FileSet, file *ast.File) ([]byte, error)

func RenderTmpl

func RenderTmpl(tpl string, ctx *Context) ([]byte, error)

Types

type Context

type Context struct {
	Name string
	Host string
	Port int
}

Context main function data

type GolangServerless

type GolangServerless struct {
	// contains filtered or unexported fields
}

func (*GolangServerless) Build

func (s *GolangServerless) Build(clean bool) error

func (*GolangServerless) Init

func (s *GolangServerless) Init(opts *serverless.Options) error

func (*GolangServerless) Run

func (s *GolangServerless) Run() error

Jump to

Keyboard shortcuts

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