Michael Henderson · @mike
22 followers · 121 posts · Server blazinggophers.com

```
if rest, err, item.Name = rest.expectText(); err != nil {
return rest, fmt.Errorf("inventory: name: %w", err), item
} else if item.Name == "riding" { // ugh. item names are not quoted
if rest, err = rest.expectLiteral("horses"); err != nil {
return rest, fmt.Errorf("inventory: name: riding horses: %w", err), item
}
item.Name = "riding horses"
}
```

#randomcodesnippets #golang

Last updated 3 years ago

Dr. Robert M Flight · @rmflight
590 followers · 1613 posts · Server mastodon.social

A new post on making sure that {targets} re-renders a main document when a child document is modified.

I'll be honest, I wish I'd had this figured out last year when I was working on a manuscript that I was rendering to both plain formatting and journal formatting.

targets and Child Documents
rmflight.github.io/posts/2022-

#quartopub #rstats #randomcodesnippets

Last updated 3 years ago

Dr. Robert M Flight · @rmflight
647 followers · 2407 posts · Server mastodon.social

A new post on making sure that {targets} re-renders a main document when a child document is modified.

I'll be honest, I wish I'd had this figured out last year when I was working on a manuscript that I was rendering to both plain formatting and journal formatting.

targets and Child Documents
rmflight.github.io/posts/2022-

#quartopub #rstats #randomcodesnippets

Last updated 3 years ago