mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* See the hello/go README for how this all works now. * Node support for fnctl auto build * Updated based on PR comments.
24 lines
451 B
Go
24 lines
451 B
Go
package langs
|
|
|
|
import "fmt"
|
|
|
|
type NodeLangHelper struct {
|
|
}
|
|
|
|
func (lh *NodeLangHelper) Entrypoint(filename string) (string, error) {
|
|
return fmt.Sprintf("node %v", filename), nil
|
|
}
|
|
|
|
func (lh *NodeLangHelper) HasPreBuild() bool {
|
|
return false
|
|
}
|
|
|
|
// PreBuild for Go builds the binary so the final image can be as small as possible
|
|
func (lh *NodeLangHelper) PreBuild() error {
|
|
return nil
|
|
}
|
|
|
|
func (lh *NodeLangHelper) AfterBuild() error {
|
|
return nil
|
|
}
|