{"modulePath":"github.com/yinxulai/openapi-codegen","version":"v0.2.1","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package console\n\n## Constants\n\n```go\nconst ModuleName = \"console\"\n```\n\n## Functions\n\n```go\nfunc Enable(runtime *goja.Runtime)\n```\n\n## Types\n\n```go\ntype Console struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\ntype Printer interface {\n\tLog(string)\n\tWarn(string)\n\tError(string)\n}\n```\n\n```go\ntype StdPrinter struct {\n\tStdoutPrint func(s string)\n\tStderrPrint func(s string)\n}\n```\nStdPrinter implements the console.Printer interface that prints to the stdout or stderr.\n\n```go\nfunc (p StdPrinter) Error(s string)\n```\nError prints s to the stderr.\n\n```go\nfunc (p StdPrinter) Log(s string)\n```\nLog prints s to the stdout.\n\n```go\nfunc (p StdPrinter) Warn(s string)\n```\nWarn prints s to the stderr.\n\n","path":"github.com/yinxulai/openapi-codegen/internal/template/script/console","name":"console","synopsis":"","isRedistributable":true}
