Skip to content
Permalink
Browse files

Fixing examples to use this fork, and updated dependencies

  • Loading branch information...
Depado committed Jun 11, 2018
1 parent 3a575d4 commit d52f1cf239422c6a80cca4cda6a591b335bda635
Showing with 20 additions and 23 deletions.
  1. +3 −9 Gopkg.lock
  2. +0 −4 Gopkg.toml
  3. +2 −1 examples/main.go
  4. +1 −1 examples/maintenance.go
  5. +4 −2 examples/receipt.go
  6. +5 −3 examples/reset.go
  7. +5 −3 examples/welcome.go

Some generated files are not rendered by default. Learn more.

@@ -25,10 +25,6 @@
name = "github.com/Masterminds/sprig"
version = "2.14.1"

[[constraint]]
name = "github.com/imdario/mergo"
version = "0.2.4"

[[constraint]]
branch = "master"
name = "github.com/jaytaylor/html2text"
@@ -2,9 +2,10 @@ package main

import (
"fmt"
"github.com/matcornic/hermes"
"io/ioutil"
"os"

"github.com/Depado/hermes"
)

type example interface {
@@ -1,7 +1,7 @@
package main

import (
"github.com/matcornic/hermes"
"github.com/Depado/hermes"
)

type maintenance struct {
@@ -1,7 +1,9 @@
package main

import (
"github.com/matcornic/hermes"
"html/template"

"github.com/Depado/hermes"
)

type receipt struct {
@@ -15,7 +17,7 @@ func (r *receipt) Email() hermes.Email {
return hermes.Email{
Body: hermes.Body{
Name: "Jon Snow",
Intros: []string{
Intros: []template.HTML{
"Your order has been processed successfully.",
},
Table: hermes.Table{
@@ -1,7 +1,9 @@
package main

import (
"github.com/matcornic/hermes"
"html/template"

"github.com/Depado/hermes"
)

type reset struct {
@@ -15,7 +17,7 @@ func (r *reset) Email() hermes.Email {
return hermes.Email{
Body: hermes.Body{
Name: "Jon Snow",
Intros: []string{
Intros: []template.HTML{
"You have received this email because a password reset request for Hermes account was received.",
},
Actions: []hermes.Action{
@@ -28,7 +30,7 @@ func (r *reset) Email() hermes.Email {
},
},
},
Outros: []string{
Outros: []template.HTML{
"If you did not request a password reset, no further action is required on your part.",
},
Signature: "Thanks",
@@ -1,7 +1,9 @@
package main

import (
"github.com/matcornic/hermes"
"html/template"

"github.com/Depado/hermes"
)

type welcome struct {
@@ -15,7 +17,7 @@ func (w *welcome) Email() hermes.Email {
return hermes.Email{
Body: hermes.Body{
Name: "Jon Snow",
Intros: []string{
Intros: []template.HTML{
"Welcome to Hermes! We're very excited to have you on board.",
},
Dictionary: []hermes.Entry{
@@ -32,7 +34,7 @@ func (w *welcome) Email() hermes.Email {
},
},
},
Outros: []string{
Outros: []template.HTML{
"Need help, or have questions? Just reply to this email, we'd love to help.",
},
},

0 comments on commit d52f1cf

Please sign in to comment.
You can’t perform that action at this time.