Documentation ¶
Index ¶
Constants ¶
View Source
const TEMPLATE = `package main
import (
m "{{ .ModuleName }}"
"github.com/tkrajina/typescriptify-golang-structs/typescriptify"
)
func main() {
t := typescriptify.New()
t.CreateInterface = {{ .Interface }}
t.BackupDir = ""
{{ range .Structs }} t.Add({{ . }}{})
{{ end }}
{{ range .CustomImports }} t.AddImport("{{ . }}")
{{ end }}
err := t.ConvertToFile(` + "`{{ .TargetFile }}`" + `)
if err != nil {
panic(err.Error())
}
}`
Variables ¶
This section is empty.
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.