build: remove unused package cmd/serve/http/data
This was superseded by lib/http/template.go
This commit is contained in:
parent
89196cb353
commit
3f3c5f3ff4
5 changed files with 2 additions and 700 deletions
|
@ -10,14 +10,13 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
libhttp "github.com/rclone/rclone/lib/http"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/rclone/rclone/cmd/serve/http/data"
|
||||
)
|
||||
|
||||
func GetTemplate(t *testing.T) *template.Template {
|
||||
htmlTemplate, err := data.GetTemplate("../../../cmd/serve/http/testdata/golden/testindex.html")
|
||||
htmlTemplate, err := libhttp.GetTemplate("../../../cmd/serve/http/testdata/golden/testindex.html")
|
||||
require.NoError(t, err)
|
||||
return htmlTemplate
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue