Getting lmt to work
tl;dr—markdown or two newlines after last file piece
tl;dr -- lmt
needs there to be either:
- markdown after the last file piece
- two newline characters
!git clone https://github.com/driusan/lmt
%cd lmt
%%capture
!apt install golang
!go build
import os
os.environ['PATH'] = f'{os.environ["PATH"]}:/content/lmt'
%cd /content
%%writefile test.go.md
# Thing
```go test.go
package main
import (
fmt
)
```
!lmt test.go.md
!cat test.go
%%writefile test2.go.md
# Thing
```go test2.go
package main
import (
fmt
)
```
!lmt test2.go.md
!cat test2.go
%%writefile test3.go.md
# Thing
```go test3.go
package main
import (
fmt
)
```
# Blah
!lmt test3.go.md
!cat test3.go
%%writefile test4.go.md
# Thing
```go test4.go
package main
import (
fmt
)
```
!lmt test4.go.md
!cat test4.go