go.astrophena.name/site Module
Personal site and a Go package that builds it.
package vanity
import "go.astrophena.name/site/vanity"
Package vanity builds https://go.astrophena.name.
Index
Functions
func Build
func Build(ctx context.Context, c *Config) error
Build builds a site based on the provided Config.
Types
type Config
type Config struct { // Dir is a directory where the generated site will be stored. Dir string // GitHubToken is a token for accessing the GitHub API. GitHubToken string // ImportRoot is a root import path for the Go packages. ImportRoot string // Logf is a logger to use. If nil, log.Printf is used. Logf logger.Logf // HTTPClient is a HTTP client for making requests. HTTPClient *http.Client }
Config represents a build configuration.