TranspileCodeFromFile transpiles the code in given file
(file string)
| 307 | |
| 308 | // TranspileCodeFromFile transpiles the code in given file |
| 309 | func (sh *Shell) TranspileCodeFromFile(file string) error { |
| 310 | b, err := os.ReadFile(file) |
| 311 | if err != nil { |
| 312 | return err |
| 313 | } |
| 314 | sh.TranspileCode(string(b)) |
| 315 | return nil |
| 316 | } |
| 317 | |
| 318 | // TranspileFile transpiles the given input cosh file to the given output Go file, |
| 319 | // adding package main and func main declarations. |
no test coverage detected