Skip to content

Commit fe9a5c8

Browse files
author
Jake Nichols
authored
Update company name + links (#96)
* Update company name + links * Version #
1 parent e773fe6 commit fe9a5c8

38 files changed

+138
-138
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ We welcome community contributions to Matcha!
1414
## Getting Started
1515

1616
1. Ensure you have [installed Golang](https://go.dev/dl/) on your development machine. Matcha is currently on version `1.20.2`.
17-
2. Create a fork of Matcha to your personal GitHub account. Direct branches or pushes to the `CloudRETIC` repository are not accepted.
17+
2. Create a fork of Matcha to your personal GitHub account. Direct branches or pushes to the `Decent Platforms` repository are not accepted.
1818
3. Clone your personal fork to your development machine, and enter the directory.
1919
4. Add the upstream repository: `git remote add upstream [http-or-ssh-address]`
2020

@@ -57,11 +57,11 @@ Currently, new submissions to Matcha are subject to the following criteria:
5757
5858
1. **Performance**: Changes must not significantly decrease performance unless they are urgent bugfixes. End-to-end benchmarks are provided in the docs folder; additionally, if your feature or change is to a system that is integrated heavily, we suggest you add and check benchmarks for it.
5959
2. **Testing**: Test coverage should stay above 95%. New behavior is expected to have associated unit tests, and PRs that drop coverage by more than 2%, or below 90%, will be automatically rejected.
60-
3. **Documentation**: CloudRETIC strongly encourages in-code documentation. Maintainers may request that you add additional documentation to your code.
60+
3. **Documentation**: Decent Platforms strongly encourages in-code documentation. Maintainers may request that you add additional documentation to your code.
6161
4. **Style**: Follow good Go code practices. We use [this list](https://github.com/golang/go/wiki/CodeReviewComments#gofmt) to evaluate style.
6262
5. **Zero-Dependency**: Matcha does not use any external libraries. Changes with dependencies will be rejected.
6363
64-
We additionally ask that you avoid the use of AI tools like ChatGPT and GitHub Copilot in your contributions to Matcha. CloudRETIC has concerns regarding the ethics and copyright implications of scraping open-source code for training data, and would prefer that any work submitted be attributable to the users that directly contribute to it.
64+
We additionally ask that you avoid the use of AI tools like ChatGPT and GitHub Copilot in your contributions to Matcha. Decent Platforms has concerns regarding the ethics and copyright implications of scraping open-source code for training data, and would prefer that any work submitted be attributable to the users that directly contribute to it.
6565
6666
## Versioning Policy
6767

README.md

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

3-
[![Coverage Status](https://coveralls.io/repos/github/cloudretic/matcha/badge.svg?branch=main)](https://coveralls.io/github/cloudretic/matcha?branch=main)
4-
[![Go Report Card](https://goreportcard.com/badge/github.com/cloudretic/matcha)](https://goreportcard.com/report/github.com/cloudretic/matcha)
3+
[![Coverage Status](https://coveralls.io/repos/github/decentplatforms/matcha/badge.svg?branch=main)](https://coveralls.io/github/decentplatforms/matcha?branch=main)
4+
[![Go Report Card](https://goreportcard.com/badge/github.com/decentplatforms/matcha)](https://goreportcard.com/report/github.com/decentplatforms/matcha)
55
[![Discord Badge](https://img.shields.io/badge/Join%20us%20on-Discord-blue)](https://discord.gg/gCdJ6NPm)
66

7-
`cloudretic/matcha` is an HTTP router designed for ease of use, power, and extensibility.
7+
Matcha is an HTTP router designed for ease of use, power, and extensibility.
88

99
## Features
1010

@@ -17,7 +17,7 @@
1717

1818
## Installation
1919

20-
`go get github.com/cloudretic/[email protected].0`
20+
`go get github.com/decentplatforms/[email protected].1`
2121

2222
## Basic Usage
2323

@@ -29,7 +29,7 @@ package examples
2929
import (
3030
"net/http"
3131

32-
"github.com/cloudretic/matcha/pkg/router"
32+
"github.com/decentplatforms/matcha/pkg/router"
3333
)
3434

3535
func sayHello(w http.ResponseWriter, req *http.Request) {
@@ -91,11 +91,11 @@ Concurrent | 1353 ns/request | 1453 bytes/request | 14 allocs/request
9191

9292
Name | Role | Pronouns | GitHub Username | Contact
9393
---|---|---|---|---
94-
Jake Nichols | Creator | they/them | jakenichols2719 | <jnichols@cloudretic.com>
94+
Jake Nichols | Creator | they/them | jakenichols2719 | <jnichols@decentplatforms.com>
9595

9696
## License
9797

98-
Copyright 2023 CloudRETIC LLC
98+
Copyright 2023 Decent Platforms LLC
9999

100100
Licensed under the Apache License, Version 2.0 (the "License");
101101
you may not use this file except in compliance with the License.

bench/helpers.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ import (
55
"net/http"
66
"strconv"
77

8-
"github.com/cloudretic/matcha/pkg/cors"
9-
"github.com/cloudretic/matcha/pkg/middleware"
10-
"github.com/cloudretic/matcha/pkg/rctx"
11-
"github.com/cloudretic/matcha/pkg/route/require"
8+
"github.com/decentplatforms/matcha/pkg/cors"
9+
"github.com/decentplatforms/matcha/pkg/middleware"
10+
"github.com/decentplatforms/matcha/pkg/rctx"
11+
"github.com/decentplatforms/matcha/pkg/route/require"
1212
)
1313

1414
type benchRoute struct {
@@ -21,7 +21,7 @@ type benchRoute struct {
2121

2222
func mwCORS() middleware.Middleware {
2323
return cors.CORSMiddleware(&cors.AccessControlOptions{
24-
AllowOrigin: []string{"cloudretic.com"},
24+
AllowOrigin: []string{"decentplatforms.com"},
2525
AllowMethods: []string{http.MethodGet, http.MethodPut, http.MethodDelete},
2626
AllowHeaders: []string{"client_id"},
2727
})

bench/v1_test.go

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"sync"
88
"testing"
99

10-
"github.com/cloudretic/matcha/pkg/route"
11-
"github.com/cloudretic/matcha/pkg/router"
10+
"github.com/decentplatforms/matcha/pkg/route"
11+
"github.com/decentplatforms/matcha/pkg/router"
1212
)
1313

1414
/*
@@ -34,20 +34,20 @@ import (
3434
// MockBoards API
3535
var apiRoutes = []benchRoute{
3636
// Get/create posts
37-
{method: http.MethodGet, path: "/[board]/posts", testPath: "/cloudretic/posts", mws: api_mws, rqs: api_rqs},
38-
{method: http.MethodPut, path: "/[board]/posts", testPath: "/cloudretic/posts", mws: api_mws, rqs: api_rqs},
39-
{method: http.MethodGet, path: "/[board]/posts/[order]{new|top}", testPath: "/cloudretic/posts/new", mws: api_mws, rqs: api_rqs},
37+
{method: http.MethodGet, path: "/[board]/posts", testPath: "/decentplatforms/posts", mws: api_mws, rqs: api_rqs},
38+
{method: http.MethodPut, path: "/[board]/posts", testPath: "/decentplatforms/posts", mws: api_mws, rqs: api_rqs},
39+
{method: http.MethodGet, path: "/[board]/posts/[order]{new|top}", testPath: "/decentplatforms/posts/new", mws: api_mws, rqs: api_rqs},
4040
// Get/update/delete post
41-
{method: http.MethodPatch, path: "/[board]/posts/[id]", testPath: "/cloudretic/posts/2719", mws: api_mws, rqs: api_rqs},
42-
{method: http.MethodDelete, path: "/[board]/posts/[id]", testPath: "/cloudretic/posts/2719", mws: api_mws, rqs: api_rqs},
41+
{method: http.MethodPatch, path: "/[board]/posts/[id]", testPath: "/decentplatforms/posts/2719", mws: api_mws, rqs: api_rqs},
42+
{method: http.MethodDelete, path: "/[board]/posts/[id]", testPath: "/decentplatforms/posts/2719", mws: api_mws, rqs: api_rqs},
4343
// Get/create comments
44-
{method: http.MethodGet, path: "/[board]/posts/[id]/comments", testPath: "/cloudretic/posts/2719/comments", mws: api_mws, rqs: api_rqs},
45-
{method: http.MethodPut, path: "/[board]/posts/[id]/comments", testPath: "/cloudretic/posts/2719/comments", mws: api_mws, rqs: api_rqs},
46-
{method: http.MethodGet, path: "/[board]/posts/[id]/comments/[order]{new|top}", testPath: "/cloudretic/posts/2719/comments/new", mws: api_mws, rqs: api_rqs},
44+
{method: http.MethodGet, path: "/[board]/posts/[id]/comments", testPath: "/decentplatforms/posts/2719/comments", mws: api_mws, rqs: api_rqs},
45+
{method: http.MethodPut, path: "/[board]/posts/[id]/comments", testPath: "/decentplatforms/posts/2719/comments", mws: api_mws, rqs: api_rqs},
46+
{method: http.MethodGet, path: "/[board]/posts/[id]/comments/[order]{new|top}", testPath: "/decentplatforms/posts/2719/comments/new", mws: api_mws, rqs: api_rqs},
4747
// Get/update/delete comment
48-
{method: http.MethodGet, path: "/[board]/posts/[id]/comments/[id]", testPath: "/cloudretic/posts/2719/comments/2719", mws: api_mws, rqs: api_rqs},
49-
{method: http.MethodPatch, path: "/[board]/posts/[id]/comments/[id]", testPath: "/cloudretic/posts/2719/comments/2719", mws: api_mws, rqs: api_rqs},
50-
{method: http.MethodDelete, path: "/[board]/posts/[id]/comments/[id]", testPath: "/cloudretic/posts/2719/comments/2719", mws: api_mws, rqs: api_rqs},
48+
{method: http.MethodGet, path: "/[board]/posts/[id]/comments/[id]", testPath: "/decentplatforms/posts/2719/comments/2719", mws: api_mws, rqs: api_rqs},
49+
{method: http.MethodPatch, path: "/[board]/posts/[id]/comments/[id]", testPath: "/decentplatforms/posts/2719/comments/2719", mws: api_mws, rqs: api_rqs},
50+
{method: http.MethodDelete, path: "/[board]/posts/[id]/comments/[id]", testPath: "/decentplatforms/posts/2719/comments/2719", mws: api_mws, rqs: api_rqs},
5151
// Get user info
5252
// Posts/comments
5353
{method: http.MethodGet, path: "/[user]/posts", testPath: "/jnichols/posts", mws: api_mws, rqs: api_rqs},

bench/v2_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"sync"
77
"testing"
88

9-
"github.com/cloudretic/matcha/pkg/route"
10-
"github.com/cloudretic/matcha/pkg/router"
9+
"github.com/decentplatforms/matcha/pkg/route"
10+
"github.com/decentplatforms/matcha/pkg/router"
1111
)
1212

1313
/*

docs/user-guide.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@ Hello! This is a step-by-step guide to using Matcha for HTTP handling in Go.
1717

1818
### Hello World
1919

20-
To start us off, here's a basic example. You can find project examples in the GitHub [here](https://github.com/cloudretic/matcha/tree/main/examples) if you want to experiment with them.
20+
To start us off, here's a basic example. You can find project examples in the GitHub [here](https://github.com/decentplatforms/matcha/tree/main/examples) if you want to experiment with them.
2121

2222
```go
2323
package examples
2424

2525
import (
2626
"net/http"
2727

28-
"github.com/cloudretic/matcha/pkg/router"
28+
"github.com/decentplatforms/matcha/pkg/router"
2929
)
3030

3131
func sayHello(w http.ResponseWriter, req *http.Request) {
@@ -53,8 +53,8 @@ package examples
5353
import (
5454
"net/http"
5555

56-
"github.com/cloudretic/matcha/pkg/rctx"
57-
"github.com/cloudretic/matcha/pkg/router"
56+
"github.com/decentplatforms/matcha/pkg/rctx"
57+
"github.com/decentplatforms/matcha/pkg/router"
5858
)
5959

6060
func echoAdmin(w http.ResponseWriter, req *http.Request) {
@@ -91,8 +91,8 @@ import (
9191
"net/http"
9292
"os"
9393

94-
"github.com/cloudretic/matcha/pkg/rctx"
95-
"github.com/cloudretic/matcha/pkg/router"
94+
"github.com/decentplatforms/matcha/pkg/rctx"
95+
"github.com/decentplatforms/matcha/pkg/router"
9696
)
9797

9898
type fileServer struct {
@@ -169,9 +169,9 @@ Matcha uses `func(w http.ResponseWriter, req *http.Request) *http.Request` for m
169169
package main
170170

171171
import (
172-
"github.com/cloudretic/matcha/pkg/router"
173-
"github.com/cloudretic/matcha/pkg/route"
174-
"github.com/cloudretic/matcha/pkg/middleware"
172+
"github.com/decentplatforms/matcha/pkg/router"
173+
"github.com/decentplatforms/matcha/pkg/route"
174+
"github.com/decentplatforms/matcha/pkg/middleware"
175175
)
176176

177177
func main() {
@@ -193,10 +193,10 @@ Matcha provides an interface for matching things that are not paths in package `
193193
```go
194194
webRoute, err := route.New(
195195
http.MethodGet, "/",
196-
route.Require(require.HostPorts("https://{www.|}cloudretic.com")),
196+
route.Require(require.HostPorts("https://{www.|}decentplatforms.com")),
197197
)
198198
apiRoute, err := route.New(
199199
http.MethodGet, "/",
200-
require.HostPorts("https://api.cloudretic.com"),
200+
require.HostPorts("https://api.decentplatforms.com"),
201201
)
202202
```

examples/echo.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package examples
33
import (
44
"net/http"
55

6-
"github.com/cloudretic/matcha/pkg/rctx"
7-
"github.com/cloudretic/matcha/pkg/router"
6+
"github.com/decentplatforms/matcha/pkg/rctx"
7+
"github.com/decentplatforms/matcha/pkg/router"
88
)
99

1010
func echoAdmin(w http.ResponseWriter, req *http.Request) {

examples/fileserver.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import (
44
"net/http"
55
"os"
66

7-
"github.com/cloudretic/matcha/pkg/rctx"
8-
"github.com/cloudretic/matcha/pkg/router"
7+
"github.com/decentplatforms/matcha/pkg/rctx"
8+
"github.com/decentplatforms/matcha/pkg/router"
99
)
1010

1111
type fileServer struct {

examples/hello.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package examples
33
import (
44
"net/http"
55

6-
"github.com/cloudretic/matcha/pkg/router"
6+
"github.com/decentplatforms/matcha/pkg/router"
77
)
88

99
func sayHello(w http.ResponseWriter, req *http.Request) {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module github.com/cloudretic/matcha
1+
module github.com/decentplatforms/matcha
22

33
go 1.20

0 commit comments

Comments
 (0)