all repos — gomponents @ 7ae7b677396aef6604a8700910ca49786c69c763

HTML components in pure Go

Fix indentation in code in readme

Markus Wüstenberg
commit

7ae7b677396aef6604a8700910ca49786c69c763

parent

bb1c545d4a98854ca7908946ef81f59d669eef1c

1 file changed, 8 insertions(+), 8 deletions(-)

changed files
M README.mdREADME.md
@@ -131,14 +131,14 @@ And if all else fails, you can always use an [IIFE](https://developer.mozilla.org/en-US/docs/Glossary/IIFE):
```go func list(ordered bool) Node { - return func() Node { - // Do whatever you need to do, imperatively - if ordered { - return Ol() - } else { - return Ul() - } - }() + return func() Node { + // Do whatever you need to do, imperatively + if ordered { + return Ol() + } else { + return Ul() + } + }() } ```