forked from ardanlabs/gotour
-
Notifications
You must be signed in to change notification settings - Fork 0
/
content.go
30 lines (26 loc) · 763 Bytes
/
content.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package website exports the static content as an embed.FS.
package website
import (
"embed"
"io/fs"
)
//go:embed _content/favicon.ico
//go:embed _content/robots.txt
//go:embed _content/images/ardan-logo-dark.svg
//go:embed _content/images/favicon-gopher.svg
//go:embed _content/images/favicon-gopher-plain.png
//go:embed _content/js/playground.js
//go:embed _content/tour
var tourOnly embed.FS
// TourOnly returns the content needed only for the standalone tour.
func TourOnly() fs.FS {
var fsys fs.FS = tourOnly
s, err := fs.Sub(fsys, "_content")
if err != nil {
panic(err)
}
return s
}