Discover Packages
github.com/miku/runpad
padutil
package
Version:
v0.0.0-...-00088c8
Opens a new window with list of versions in this module.
Published: Dec 3, 2022
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: ? modules, 0 packages
The first number is the count of modules that contain a package that imports this one.
The module count is a better indicator of popularity than the package count.
A module with 100 importing packages is counted only once instead of 100 times,
reflecting the fact that the choice to use the package was likely made only once,
not 100 times.
A '?' means that the value hasn't been computed yet.
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Block struct {
LineStart int
LineEnd int
}
Block represents a
Etherpad adds a few utility functions.
Exists returns true, if a pad with a given id exists.
GetPadText is a convenience function to get rid of type assertions.
type PadSavedRevisions struct {
Code int64
Data struct {
SavedRevisions []int64 `json:"savedRevisions"`
}
Message string
}
type PadText struct {
Code int64
Data struct {
Text string `json:"text"`
}
Message string
}
PadText is a response to a GetText response.
type PadTextAttribs struct {
Code int64
Data struct {
Text struct {
Attribs string `json:"attribs"`
Text string `json:"text"`
} `json:"text"`
}
Message string
}
PadTextAttribs is a response to a GetText response.
Runner executes a snippet of code and writes combined output of the program
to the given writer.
type SimpleFileRunner struct {
Prefix []string
}
SimpleFileRunner just executes code on the host, without any security features.
Snippet contains a types piece of text, e.g. a code block in a given
language.
NumLines return number of lines of the snippet.
type Text struct {
Content string
}
Text represents a blob of text from a pad. This struct allows to find and
access code snippets in the text.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.