Skip to content

Commit 0ab7faa

Browse files
committed
cleanup
1 parent c16665c commit 0ab7faa

File tree

4 files changed

+10
-9
lines changed

4 files changed

+10
-9
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# CHANGELOG
22

3+
**v0.1.0-alpha.2:**
4+
- `README.md` cleanup (listing of components)
5+
- Added `examples/confirm_email`
6+
- Renamed `SetFooter()` to `Footer()`
7+
38
**v0.1.0-alpha.1:**
49
- Introduced `CHANGELOG.md`
510
- Introduced new services as social icons:

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ It's perfect for SaaS, web apps, mobile apps, scripts and anywhere you have to s
4040
Use go get:
4141

4242
```bash
43-
go get github.com/templateless/[email protected].1
43+
go get github.com/templateless/[email protected].2
4444
```
4545

4646
Then import the package into your own code:

examples/confirm_email/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,12 @@ import (
1111
func main() {
1212
apiKey := os.Getenv("TEMPLATELESS_API_KEY")
1313
if apiKey == "" {
14-
log.Println("Set TEMPLATELESS_API_KEY to your Templateless API key")
15-
return
14+
log.Fatal("Set TEMPLATELESS_API_KEY to your Templateless API key")
1615
}
1716

1817
emailAddress := os.Getenv("TEMPLATELESS_EMAIL_ADDRESS")
1918
if emailAddress == "" {
20-
log.Println("Set TEMPLATELESS_EMAIL_ADDRESS to your own email address")
21-
return
19+
log.Fatal("Set TEMPLATELESS_EMAIL_ADDRESS to your own email address")
2220
}
2321

2422
header, _ := templateless.NewHeader().

examples/simple/main.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,12 @@ import (
1010
func main() {
1111
apiKey := os.Getenv("TEMPLATELESS_API_KEY")
1212
if apiKey == "" {
13-
log.Println("Set TEMPLATELESS_API_KEY to your Templateless API key")
14-
return
13+
log.Fatal("Set TEMPLATELESS_API_KEY to your Templateless API key")
1514
}
1615

1716
emailAddress := os.Getenv("TEMPLATELESS_EMAIL_ADDRESS")
1817
if emailAddress == "" {
19-
log.Println("Set TEMPLATELESS_EMAIL_ADDRESS to your own email address")
20-
return
18+
log.Fatal("Set TEMPLATELESS_EMAIL_ADDRESS to your own email address")
2119
}
2220

2321
content, _ := templateless.NewContent().

0 commit comments

Comments
 (0)