Documentation ¶
Overview ¶
Package codegen provides R, C and Go code generation for the rgo tool.
Index ¶
- func CFuncTemplate(words []string) *template.Template
- func Description(dst FileSystem, info *pkg.Info) error
- func GoFuncTemplate() *template.Template
- func Licenses(dst FileSystem, prefix string, info *pkg.Info, candidate *regexp.Regexp, ...) error
- func MakevarsTemplate() *template.Template
- func NamespaceTemplate(words []string, exported func(string) bool) *template.Template
- func RCallTemplate(words []string, exported func(string) bool) *template.Template
- func Render(dst FileSystem, pth string, tmpl *template.Template, info *pkg.Info) error
- type FileSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CFuncTemplate ¶
cFunc is the template for C shim function file generation.
func Description ¶
func Description(dst FileSystem, info *pkg.Info) error
func GoFuncTemplate ¶
goFunc is the template for Go function file generation.
func MakevarsTemplate ¶
func NamespaceTemplate ¶
func RCallTemplate ¶
rCall is the template for R .Call function file generation.
Types ¶
type FileSystem ¶
type FileSystem interface { Open(path string) (io.WriteCloser, error) Flush() error }
Click to show internal directories.
Click to hide internal directories.