idiomaticgo

package
v0.0.0-...-c858694 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package idiomaticgo contains functionality for rendering /idiomatic-go page.

Index

Constants

View Source
const ReactableURL = idiomaticGoURI

ReactableURL is the URL for reactionable items on the Idiomatic Go page.

Variables

This section is empty.

Functions

func RenderBodyInnerHTML

func RenderBodyInnerHTML(ctx context.Context, w io.Writer, issuesService issues.Service, notification notification.Service, authenticatedUser users.User, returnURL string) error

RenderBodyInnerHTML renders the inner HTML of the <body> element of the Idiomatic Go page. It's safe for concurrent use.

Types

type IssuesReactions

type IssuesReactions struct {
	Issues issues.Service
}

IssuesReactions implements reactions.Service on top of issues.Service, specifically for use by Idiomatic Go page. It hardcodes comment ID value of 0, see issuesReactionsCommentID.

func (IssuesReactions) Get

func (ir IssuesReactions) Get(ctx context.Context, uri string, id string) ([]reactions.Reaction, error)

func (IssuesReactions) List

func (ir IssuesReactions) List(ctx context.Context, uri string) (map[string][]reactions.Reaction, error)

func (IssuesReactions) Toggle

Jump to

Keyboard shortcuts

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