layouts

package
v0.0.0-...-d625e3b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Explore

func Explore(r *http.Request, title string, opts ExploreLayoutOptions, children ...html.Node) exploreLayout

func Main

func Main(r *http.Request, title string, children ...html.Node) mainLayout

func Profile

func Profile(r *http.Request, title string, opts ProfileLayoutOptions, children ...html.Node) profileLayout

func Repository

func Repository(r *http.Request, title string, opts RepositoryLayoutOptions, children ...html.Node) repositoryLayout

Types

type ExploreLayoutOptions

type ExploreLayoutOptions struct {
	CurrentTab string
}

type ProfileLayoutOptions

type ProfileLayoutOptions struct {
	Username     string
	DisplayName  string
	IsOrg        bool
	CurrentTab   string
	ShowSettings bool
}

type RepositoryLayoutOptions

type RepositoryLayoutOptions struct {
	OwnerUsername string
	RepoName      string
	CurrentTab    string
	IsPublic      bool
	ShowSettings  bool
	StarCount     int64
	HasStarred    bool
	DefaultBranch string
	CloneURL      string
	RepositoryURL string
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL