Source File
errors.go
Belonging Package
github.com/d2lang/mathjax-go/internal/tex
// Copyright (c) 2009-2022 The MathJax Consortium// SPDX-License-Identifier: Apache-2.0//// This file is a Go translation and modification of MathJax 3.2.2.// Source: ts/input/tex/TexError.ts.package teximport// Error is the Go equivalent of MathJax's TexError. ID is deliberately kept// separate from the rendered message because the JavaScript parser and its// tests use the stable identifier when classifying failures.type Error struct {ID stringMessage string}func ( *Error) () string { return .Message }func texError(, string, ...any) error {return &Error{ID: , Message: fmt.Sprintf(, ...)}}
![]() |
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |