problems

package
v0.85.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 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

func IsProblemStatus added in v0.85.0

func IsProblemStatus(status int) bool

Types

type Problem added in v0.81.0

type Problem struct {
	Type   string // 带 Problems.Prefix
	Status int
	Title  localeutil.Stringer
	Detail localeutil.Stringer
	// 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.Stringer)

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.Stringer))

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
JackTT - Gopher 🇻🇳