server

package
v0.0.0-...-8a7fe10 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Leetcode struct {
		Path string `yaml:"path"`
	} `yaml:"leetcode"`

	Template []tmpl.Config `yaml:"template"`

	Url struct {
		Open bool   `yaml:"open"`
		App  string `yaml:"app"`
	} `yaml:"url"`
}

type Server

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

func NewServer

func NewServer(configPath string) (*Server, error)

func (*Server) Article

func (s *Server) Article(article string) (err error)

func (*Server) Id

func (s *Server) Id(id string) (err error)

func (*Server) TitleSlug

func (s *Server) TitleSlug(titleSlug string) (err error)

func (*Server) Today

func (s *Server) Today() (err error)

Jump to

Keyboard shortcuts

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