internal

package
v0.0.0-...-b232642 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(regex, pkg, fn string, flags uint, usePool bool) ([]byte, error)

func GetCommonRegex

func GetCommonRegex() map[string]string

func OpenInCompilerExplorer

func OpenInCompilerExplorer(source string) (url string, err error)

func Server

func Server(addr string) error

Types

type Compiler

type Compiler struct {
	ID      string        `json:"id"`
	Libs    []interface{} `json:"libs"`
	Options string        `json:"options"`
}

type CompilerExplorerClientState

type CompilerExplorerClientState struct {
	Sessions []Sessions `json:"sessions"`
}

type Compilers

type Compilers struct {
	ID      string `json:"id"`
	Options string `json:"options"`
}

type Executors

type Executors struct {
	Arguments string   `json:"arguments"`
	Compiler  Compiler `json:"compiler"`
	Stdin     string   `json:"stdin"`
}

type Response

type Response struct {
	URL string `json:"url"`
}

type Sessions

type Sessions struct {
	ID        int         `json:"id"`
	Language  string      `json:"language"`
	Source    string      `json:"source"`
	Compilers []Compilers `json:"compilers"`
	Executors []Executors `json:"executors"`
}

Jump to

Keyboard shortcuts

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