format

package
v0.0.0-...-4c0342d Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(question client.Question) string

func Formatter

func Formatter(s interface{}, fstring string) string

func GoFinder

func GoFinder(content []byte) string

func HistoryFormat

func HistoryFormat(sub client.Submission) string

Types

type Algorithm

type Algorithm struct {
	ID         int
	Title      string
	Difficulty int
	Status     string
	PaidOnly   bool
	AcRate     string
}

func NewAlgorithm

func NewAlgorithm(v client.Algorithm) Algorithm

type AnsFormater

type AnsFormater interface {
	Format(client.Question) ([]byte, string)
}

func AnsFormaterGetter

func AnsFormaterGetter(lang string) AnsFormater

type GoDecoder

type GoDecoder struct{}

func (GoDecoder) Format

func (d GoDecoder) Format(q client.Question) ([]byte, string)

type PythonDecoder

type PythonDecoder struct{}

func (PythonDecoder) Format

func (d PythonDecoder) Format(q client.Question) ([]byte, string)

Jump to

Keyboard shortcuts

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