Skip to content

Commit

Permalink
djatwood -> torrayne
Browse files Browse the repository at this point in the history
  • Loading branch information
torrayne committed May 24, 2024
1 parent 78ee561 commit ba48124
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 55 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Formailer

![Go](https://github.com/djatwood/formailer/workflows/Go/badge.svg)
![Go](https://github.com/torrayne/formailer/workflows/Go/badge.svg)

![Screenshot](img.png)

If you need your contact form to send you an email from your Jamstack site, Formailer is the serverless library for you! Out of the box Formailer supports redirects, reCAPTCHA, custom email templates, and custom handlers.

## Quickstart
[View Documenation](https://pkg.go.dev/github.com/djatwood/formailer)
[View Documenation](https://pkg.go.dev/github.com/torrayne/formailer)

Formailer tries to require as little boilerplate as possible. Create a form, add some emails, and run a handler.
```go
import (
"github.com/djatwood/formailer"
"github.com/djatwood/formailer/handlers"
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/handlers"

// For Netlify
"github.com/aws/aws-lambda-go/lambda"
Expand Down
4 changes: 2 additions & 2 deletions examples/gcf/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ package gcf

import (
"net/http"
"github.com/djatwood/formailer"
"github.com/djatwood/formailer/handlers"
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/handlers"

"github.com/GoogleCloudPlatform/functions-framework-go/functions"
)
Expand Down
4 changes: 2 additions & 2 deletions examples/gcf/function.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package gcf

import (
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/handlers"
"net/http"
"github.com/djatwood/formailer"
"github.com/djatwood/formailer/handlers"

"github.com/GoogleCloudPlatform/functions-framework-go/functions"
)
Expand Down
4 changes: 2 additions & 2 deletions examples/netlify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package main

import (
"github.com/aws/aws-lambda-go/lambda"
"github.com/djatwood/formailer"
"github.com/djatwood/formailer/handlers"
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/handlers"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/netlify/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package main

import (
"github.com/aws/aws-lambda-go/lambda"
"github.com/djatwood/formailer"
"github.com/djatwood/formailer/handlers"
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/handlers"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/vercel/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ package api
import (
"net/http"

"github.com/djatwood/formailer"
"github.com/djatwood/formailer/handlers"
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/handlers"
)

// Formailer handles all form submissions
Expand Down
4 changes: 2 additions & 2 deletions examples/vercel/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package api
import (
"net/http"

"github.com/djatwood/formailer"
"github.com/djatwood/formailer/handlers"
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/handlers"
)

// Formailer handles all form submissions
Expand Down
5 changes: 2 additions & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
module github.com/torayne/formailer
module github.com/torrayne/formailer

go 1.22

require (
github.com/GoogleCloudPlatform/functions-framework-go v1.8.1
github.com/aws/aws-lambda-go v1.47.0
github.com/aymerick/douceur v0.2.0
github.com/djatwood/formailer v0.5.4
github.com/google/go-cmp v0.6.0
github.com/google/martian v2.1.0+incompatible
github.com/xhit/go-simple-mail/v2 v2.16.0
Expand All @@ -16,13 +15,13 @@ require (
github.com/PuerkitoBio/goquery v1.9.2 // indirect
github.com/andybalholm/cascadia v1.3.2 // indirect
github.com/cloudevents/sdk-go/v2 v2.15.2 // indirect
github.com/go-test/deep v1.1.0 // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/gorilla/css v1.0.1 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
github.com/toorop/go-dkim v0.0.0-20201103131630-e1cd1a0a5208 // indirect
go.uber.org/atomic v1.11.0 // indirect
go.uber.org/multierr v1.11.0 // indirect
go.uber.org/zap v1.27.0 // indirect
golang.org/x/net v0.25.0 // indirect
Expand Down
36 changes: 4 additions & 32 deletions go.sum

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions handlers/netlify.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"net/http"

"github.com/aws/aws-lambda-go/events"
"github.com/djatwood/formailer"
"github.com/djatwood/formailer/logger"
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/logger"
)

func netlifyResponse(code int, err error, headers ...[2]string) *events.APIGatewayProxyResponse {
Expand Down
4 changes: 2 additions & 2 deletions handlers/vercel.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"net/http"
"strings"

"github.com/djatwood/formailer"
"github.com/djatwood/formailer/logger"
"github.com/google/martian/log"
"github.com/torrayne/formailer"
"github.com/torrayne/formailer/logger"
)

func vercelResponse(w http.ResponseWriter, code int, err error) {
Expand Down

0 comments on commit ba48124

Please sign in to comment.