Skip to content

Commit e870668

Browse files
authored
Update README.md
1 parent 8b5542b commit e870668

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ A small Java 8+ utilities library ([javadoc](http://google.github.io/mug/apidocs
1010
-[`Substring`](https://github.com/google/mug/wiki/Substring-Explained) – composable substring extraction
1111
`Substring.between("(", ")").from("call(foo)") → "foo"`
1212
-[`StringFormat`](https://github.com/google/mug/wiki/StringFormat-Explained) – compile-time-safe bidirectional formatting
13-
`new StringFormat("/home/{user}/{year}-{month}-{day}").parse(filePath, (user, year, month, day) -> ...)`
14-
-[`SafeSql`](./mug-guava/src/main/java/com/google/mu/safesql/README.md) – SQL string interpolation with injection protection
15-
`SafeSql.of("select id, ``{col}`` from Users where id = {id}", col, id)` (injection impossible!)
13+
→ ```
14+
new StringFormat("/home/{user}/{year}-{month}-{day}")
15+
.parse(filePath, (user, year, month, day) -> ...)
16+
```
17+
- ✅ [`SafeSql`](./mug-guava/src/main/java/com/google/mu/safesql/README.md) – SQL string template (injection impossible!)
18+
→ ```
19+
SafeSql.of("select id, ``{col}`` from Users where id = {id}", col, id)
20+
```
1621
- ✅ [`DateTimeFormats`](./mug/src/main/java/com/google/mu/time/README.md) – parse datetimes by example
1722
→ `DateTimeFormatter format = formatOf("2024-03-14 10:00:00.123 America/New_York")`
1823

0 commit comments

Comments
 (0)