problems

package
v0.83.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package problems 提供对 Problem 相关内容的管理

Index

Constants

View Source
const AboutBlank = "about:blank"

Variables

This section is empty.

Functions

This section is empty.

Types

type Problem added in v0.81.0

type Problem struct {
	Type   string // 带 Problems.Prefix
	Status int
	Title  localeutil.LocaleStringer
	Detail localeutil.LocaleStringer
	// contains filtered or unexported fields
}

type Problems

type Problems struct {
	// contains filtered or unexported fields
}

func New

func New(prefix string) *Problems

func (*Problems) Add

func (ps *Problems) Add(id string, status int, title, detail localeutil.LocaleStringer)

func (*Problems) Problem

func (ps *Problems) Problem(id string) *Problem

func (*Problems) Visit added in v0.70.0

func (ps *Problems) Visit(visit func(prefix, id string, status int, title, detail localeutil.LocaleStringer))

Directories

Path Synopsis
Package make 提供一些通用的生成工具
Package make 提供一些通用的生成工具

Jump to

Keyboard shortcuts

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