Documentation
¶
Overview ¶
Command core provides command line tools for developing apps and libraries using the Cogent Core framework.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package base contains a collection of base infrastructure packages that serve as a base for the main Cogent Core packages.
|
Package base contains a collection of base infrastructure packages that serve as a base for the main Cogent Core packages. |
|
auth
Package auth provides a system for identifying and authenticating users through third party cloud systems in Cogent Core apps.
|
Package auth provides a system for identifying and authenticating users through third party cloud systems in Cogent Core apps. |
|
auth/cicons
Package cicons provides the icons of the sign-in buttons of the auth package, generated from their SVG files.
|
Package cicons provides the icons of the sign-in buttons of the auth package, generated from their SVG files. |
|
auth/examples/basic
command
|
|
|
auth/examples/scopes
command
|
|
|
bools
Package bools provides functions and interfaces for interacting with bool values.
|
Package bools provides functions and interfaces for interacting with bool values. |
|
datasize
Package datasize provides a data size type and constants.
|
Package datasize provides a data size type and constants. |
|
dirsort
Package dirsort provides the sort order of the files in each directory, shared by all of the apps (and all of their processes) that show directories: For returns the sort order of a directory, which is the one last Set for it in any app, or else the one that the file manager of the operating system uses for it (the Finder on macOS, from its .DS_Store files, and Dolphin or Nautilus on Linux; see Native), or else Default.
|
Package dirsort provides the sort order of the files in each directory, shared by all of the apps (and all of their processes) that show directories: For returns the sort order of a directory, which is the one last Set for it in any app, or else the one that the file manager of the operating system uses for it (the Finder on macOS, from its .DS_Store files, and Dolphin or Nautilus on Linux; see Native), or else Default. |
|
elide
Package elide provides basic text eliding functions.
|
Package elide provides basic text eliding functions. |
|
errors
Package errors provides a set of error handling helpers, extending the standard library errors package.
|
Package errors provides a set of error handling helpers, extending the standard library errors package. |
|
exec
Package exec provides an easy way to execute commands, improving the ease-of-use and error handling of the standard library os/exec package.
|
Package exec provides an easy way to execute commands, improving the ease-of-use and error handling of the standard library os/exec package. |
|
fileinfo
Package fileinfo manages file information and categorizes file types; it is the single, consolidated place where file info, mimetypes, and filetypes are managed in Cogent Core.
|
Package fileinfo manages file information and categorizes file types; it is the single, consolidated place where file info, mimetypes, and filetypes are managed in Cogent Core. |
|
fileinfo/apps
Package apps provides access to the apps of the system that open files: the apps that can open a file, its default app, opening it with another app, and changing the default app for its type of file, using the facilities of each platform: NSWorkspace on macOS, and the freedesktop (XDG) desktop entries and mimeapps.list files on Linux and other unix systems.
|
Package apps provides access to the apps of the system that open files: the apps that can open a file, its default app, opening it with another app, and changing the default app for its type of file, using the facilities of each platform: NSWorkspace on macOS, and the freedesktop (XDG) desktop entries and mimeapps.list files on Linux and other unix systems. |
|
fileinfo/mimedata
Package mimedata defines MIME data support used in clipboard and drag-and-drop functions in the Cogent Core GUI.
|
Package mimedata defines MIME data support used in clipboard and drag-and-drop functions in the Cogent Core GUI. |
|
fsx
Package fsx provides various utility functions for dealing with filesystems.
|
Package fsx provides various utility functions for dealing with filesystems. |
|
generate
Package generate provides utilities for building code generators in Go.
|
Package generate provides utilities for building code generators in Go. |
|
github
Package github is a client of the GitHub REST API for the git data of repositories: branches, commits, trees and files, as for storing and syncing the files of an app in a repository.
|
Package github is a client of the GitHub REST API for the git data of repositories: branches, commits, trees and files, as for storing and syncing the files of an app in a repository. |
|
github/githubtest
Package githubtest is a test server of the parts of the GitHub REST API that package github uses, with repositories in memory.
|
Package githubtest is a test server of the parts of the GitHub REST API that package github uses, with repositories in memory. |
|
goscript
Package goscript provides support for running Cogent Core code compiled to JavaScript by goscript (https://github.com/s4wave/goscript), which is used for the js platform.
|
Package goscript provides support for running Cogent Core code compiled to JavaScript by goscript (https://github.com/s4wave/goscript), which is used for the js platform. |
|
goscript/gsbench
Package gsbench has benchmarks of basic Go language operations, used to compare the performance of code compiled to JavaScript by goscript with native Go code (see the goscript package).
|
Package gsbench has benchmarks of basic Go language operations, used to compare the performance of code compiled to JavaScript by goscript with native Go code (see the goscript package). |
|
indent
Package indent provides indentation generation methods.
|
Package indent provides indentation generation methods. |
|
iox
Package iox provides boilerplate wrapper functions for the Go standard io functions to Read, Open, Write, and Save, with implementations for commonly used encoding formats.
|
Package iox provides boilerplate wrapper functions for the Go standard io functions to Read, Open, Write, and Save, with implementations for commonly used encoding formats. |
|
iox/gzipx
Package gzipx provides a convenience wrapper for gzip encoding for reader and writer.
|
Package gzipx provides a convenience wrapper for gzip encoding for reader and writer. |
|
iox/imagex
Package imagex provides utilities for images: opening, saving, and encoding them in the standard formats, wrapping them for the web, and asserting them in tests.
|
Package imagex provides utilities for images: opening, saving, and encoding them in the standard formats, wrapping them for the web, and asserting them in tests. |
|
iox/jsonx
Package jsonx provides functions for opening, reading, saving, and writing values in JSON.
|
Package jsonx provides functions for opening, reading, saving, and writing values in JSON. |
|
iox/tomlx
Package tomlx provides functions for reading and writing TOML.
|
Package tomlx provides functions for reading and writing TOML. |
|
iox/xmlx
Package xmlx provides functions for opening, reading, saving, and writing values in XML.
|
Package xmlx provides functions for opening, reading, saving, and writing values in XML. |
|
iox/yamlx
Package yamlx provides functions for opening, reading, saving, and writing values in YAML.
|
Package yamlx provides functions for opening, reading, saving, and writing values in YAML. |
|
jscp
Package jscp provides functions for copying data to JavaScript
|
Package jscp provides functions for copying data to JavaScript |
|
keylist
Package keylist implements an ordered list (slice) of items, with a map from a key (e.g., names) to indexes, to support fast lookup by name.
|
Package keylist implements an ordered list (slice) of items, with a map from a key (e.g., names) to indexes, to support fast lookup by name. |
|
labels
Package labels provides the labels of values shown in a GUI, from the Labeler interface or a friendly form of their names.
|
Package labels provides the labels of values shown in a GUI, from the Labeler interface or a friendly form of their names. |
|
logx
Package logx implements structured log handling and provides global log and print verbosity and color options.
|
Package logx implements structured log handling and provides global log and print verbosity and color options. |
|
mergefs
Package mergefs provides support for merging multiple filesystems together.
|
Package mergefs provides support for merging multiple filesystems together. |
|
metadata
Package metadata provides a map of named any elements with generic support for type-safe Get and nil-safe Set.
|
Package metadata provides a map of named any elements with generic support for type-safe Get and nil-safe Set. |
|
nptime
Package nptime provides a non-pointer version of the time.Time struct that does not have the location pointer information that time.Time has, which is more efficient from a memory management perspective, in cases where you have a lot of time values being kept: https://segment.com/blog/allocation-efficiency-in-high-performance-go-services/
|
Package nptime provides a non-pointer version of the time.Time struct that does not have the location pointer information that time.Time has, which is more efficient from a memory management perspective, in cases where you have a lot of time values being kept: https://segment.com/blog/allocation-efficiency-in-high-performance-go-services/ |
|
num
Package num provides generic constraints of numeric types, and generic functions of numbers.
|
Package num provides generic constraints of numeric types, and generic functions of numbers. |
|
option
Package option provides optional (nullable) types.
|
Package option provides optional (nullable) types. |
|
plan
Package plan provides an efficient mechanism for updating a slice to contain a target list of elements, generating minimal edits to modify the current slice contents to match the target.
|
Package plan provides an efficient mechanism for updating a slice to contain a target list of elements, generating minimal edits to modify the current slice contents to match the target. |
|
profile
Package profile provides basic but effective profiling of targeted functions or code sections, which can often be more informative than generic cpu profiling.
|
Package profile provides basic but effective profiling of targeted functions or code sections, which can often be more informative than generic cpu profiling. |
|
reflectx
Package reflectx provides a collection of helpers for the reflect package in the Go standard library.
|
Package reflectx provides a collection of helpers for the reflect package in the Go standard library. |
|
sharedfile
Package sharedfile provides a file of data (JSON by default) that is shared by several processes, such as different Cogent Core apps, like the sort orders of directories and the geometry of windows.
|
Package sharedfile provides a file of data (JSON by default) that is shared by several processes, such as different Cogent Core apps, like the sort orders of directories and the geometry of windows. |
|
slicesx
Package slicesx provides additional slice functions beyond those in the standard slices package.
|
Package slicesx provides additional slice functions beyond those in the standard slices package. |
|
sshclient
Package sshclient provides an SSH client that runs commands on remote hosts, interactively or not, and copies files to and from them.
|
Package sshclient provides an SSH client that runs commands on remote hosts, interactively or not, and copies files to and from them. |
|
sshclient/sshtest
Package sshtest provides an SSH server for testing code that uses cogentcore.org/core/base/sshclient, running in the test process on the local host: it runs commands with sh in its root directory, which is the home directory of the remote host, and serves SFTP.
|
Package sshtest provides an SSH server for testing code that uses cogentcore.org/core/base/sshclient, running in the test process on the local host: it runs commands with sh in its root directory, which is the home directory of the remote host, and serves SFTP. |
|
stack
Package stack provides a generic stack implementation.
|
Package stack provides a generic stack implementation. |
|
strcase
Package strcase provides functions for manipulating the case of strings (CamelCase, kebab-case, snake_case, Sentence case, etc).
|
Package strcase provides functions for manipulating the case of strings (CamelCase, kebab-case, snake_case, Sentence case, etc). |
|
stringsx
Package stringsx provides additional string functions beyond those in the standard strings package.
|
Package stringsx provides additional string functions beyond those in the standard strings package. |
|
tiered
Package tiered provides a type for a tiered set of objects.
|
Package tiered provides a type for a tiered set of objects. |
|
timer
Package timer provides a simple wall-clock duration timer based on standard time.
|
Package timer provides a simple wall-clock duration timer based on standard time. |
|
tolassert
Package tolassert provides functions for asserting the equality of numbers with tolerance (in other words, it checks whether numbers are about equal).
|
Package tolassert provides functions for asserting the equality of numbers with tolerance (in other words, it checks whether numbers are about equal). |
|
vcs
Package vcs provides a version control system interface for git and Subversion repositories, with file status information and operations, using the git and svn commands.
|
Package vcs provides a version control system interface for git and Subversion repositories, with file status information and operations, using the git and svn commands. |
|
websocket
Package websocket provides a cross-platform WebSocket client implementation.
|
Package websocket provides a cross-platform WebSocket client implementation. |
|
websocket/example/client
command
|
|
|
websocket/example/server
command
|
|
|
Package cli generates powerful CLIs from Go struct types and functions.
|
Package cli generates powerful CLIs from Go struct types and functions. |
|
clicore
Package clicore extends package cli by generating Cogent Core GUIs.
|
Package clicore extends package cli by generating Cogent Core GUIs. |
|
clicore/examples/basic
command
|
|
|
commands
Package commands provides a GUI for calling command line tools, such as git, whose many options are hard to remember.
|
Package commands provides a GUI for calling command line tools, such as git, whose many options are hard to remember. |
|
examples/basic
command
|
|
|
Package cmd provides utilities for managing apps and packages that use the Cogent Core framework.
|
Package cmd provides utilities for managing apps and packages that use the Cogent Core framework. |
|
config
Package config contains the configuration structs for the Cogent Core tool.
|
Package config contains the configuration structs for the Cogent Core tool. |
|
generate
Package generate provides the generation of useful methods, variables, and constants for Cogent Core code.
|
Package generate provides the generation of useful methods, variables, and constants for Cogent Core code. |
|
mobile
Package mobile provides functions for building Cogent Core apps for mobile devices.
|
Package mobile provides functions for building Cogent Core apps for mobile devices. |
|
mobile/binres
Package binres implements encoding and decoding of android binary resources.
|
Package binres implements encoding and decoding of android binary resources. |
|
mobile/sdkpath
Package sdkpath provides functions for locating the Android SDK.
|
Package sdkpath provides functions for locating the Android SDK. |
|
rendericon
Package rendericon renders the icon of an app (icon.svg) to an image of a given size.
|
Package rendericon renders the icon of an app (icon.svg) to an image of a given size. |
|
web
Package web provides functions for building Cogent Core apps for the web.
|
Package web provides functions for building Cogent Core apps for the web. |
|
Package colors provides named colors, utilities for manipulating colors, and Material Design 3 color schemes, palettes, and keys in Go.
|
Package colors provides named colors, utilities for manipulating colors, and Material Design 3 color schemes, palettes, and keys in Go. |
|
cam/cam02
Package cam02 provides the CIECAM02 color appearance model: the LMS cone responses of its transform, luminance adaptation, and response compression.
|
Package cam02 provides the CIECAM02 color appearance model: the LMS cone responses of its transform, luminance adaptation, and response compression. |
|
cam/cam16
Package cam16 provides the CAM16 color appearance model, and its CAM16-UCS uniform color space, under given viewing conditions.
|
Package cam16 provides the CAM16 color appearance model, and its CAM16-UCS uniform color space, under given viewing conditions. |
|
cam/cie
Package cie provides the CIE color spaces (XYZ and L*a*b*), standard illuminants, and the conversions of sRGB to and from them.
|
Package cie provides the CIE color spaces (XYZ and L*a*b*), standard illuminants, and the conversions of sRGB to and from them. |
|
cam/hct
Package hct provides the HCT (hue, chroma, tone) color space of Material Design, based on CAM16 hue and chroma and L* tone, and contrast utilities.
|
Package hct provides the HCT (hue, chroma, tone) color space of Material Design, based on CAM16 hue and chroma and L* tone, and contrast utilities. |
|
cam/hpe
Package hpe provides the Hunt-Pointer-Estevez transform of XYZ colors to LMS cone responses, and its inverse.
|
Package hpe provides the Hunt-Pointer-Estevez transform of XYZ colors to LMS cone responses, and its inverse. |
|
cam/hsl
Package hsl provides the HSL (hue, saturation, lightness) color space.
|
Package hsl provides the HSL (hue, saturation, lightness) color space. |
|
cam/lms
Package lms provides the opponent color components of LMS cone responses (as red-green and blue-yellow).
|
Package lms provides the opponent color components of LMS cone responses (as red-green and blue-yellow). |
|
colormap
Package colormap provides color maps, which map values to colors, as for plots, with standard maps and lookup tables.
|
Package colormap provides color maps, which map values to colors, as for plots, with standard maps and lookup tables. |
|
gradient
Package gradient provides linear, radial, and conic color gradients.
|
Package gradient provides linear, radial, and conic color gradients. |
|
matcolor
Package matcolor provides support for creating Material Design 3 color schemes and palettes.
|
Package matcolor provides support for creating Material Design 3 color schemes and palettes. |
|
Package content provides a system for making content-focused apps and websites consisting of Markdown, HTML, and Cogent Core.
|
Package content provides a system for making content-focused apps and websites consisting of Markdown, HTML, and Cogent Core. |
|
bcontent
Package bcontent ("base content") provides base types and functions shared by both content and the core build tool for content.
|
Package bcontent ("base content") provides base types and functions shared by both content and the core build tool for content. |
|
cmd/contentcode
command
Command contentcode compiles the runnable Go and Goal code blocks (```Go, ```Goal) of the markdown files of a content app into the app (see cogentcore.org/core/content/contentcode).
|
Command contentcode compiles the runnable Go and Goal code blocks (```Go, ```Goal) of the markdown files of a content app into the app (see cogentcore.org/core/content/contentcode). |
|
contentcode
Package contentcode compiles the runnable Go and Goal code blocks (```Go, ```Goal) of the markdown files of a content app into the app: it writes a Go file to the app's package that defines a function for each code block and registers it in cogentcore.org/core/content.CompiledCode (Goal: cogentcore.org/core/content.CompiledGoal).
|
Package contentcode compiles the runnable Go and Goal code blocks (```Go, ```Goal) of the markdown files of a content app into the app: it writes a Go file to the app's package that defines a function for each code block and registers it in cogentcore.org/core/content.CompiledCode (Goal: cogentcore.org/core/content.CompiledGoal). |
|
examples/basic
command
|
|
|
Package core provides the core GUI functionality of Cogent Core.
|
Package core provides the core GUI functionality of Cogent Core. |
|
Package cursors provides Go constant names for cursors as SVG files.
|
Package cursors provides Go constant names for cursors as SVG files. |
|
cursorimg
Package cursorimg provides the cached rendering of SVG cursors to images.
|
Package cursorimg provides the cached rendering of SVG cursors to images. |
|
Command docs provides documentation of Cogent Core, hosted at https://cogentcore.org/core.
|
Command docs provides documentation of Cogent Core, hosted at https://cogentcore.org/core. |
|
Package enums provides common interfaces for enums and bit flag enums and utilities for using them
|
Package enums provides common interfaces for enums and bit flag enums and utilities for using them |
|
cmd/enumgen
command
Package main provides the actual command line implementation of the enumgen library.
|
Package main provides the actual command line implementation of the enumgen library. |
|
enumgen
Package enumgen provides functions for generating enum methods for enum types.
|
Package enumgen provides functions for generating enum methods for enum types. |
|
Package events provides GUI event representation and processing.
|
Package events provides GUI event representation and processing. |
|
key
Package key defines an event for physical keyboard keys, for the Cogent Core GUI system.
|
Package key defines an event for physical keyboard keys, for the Cogent Core GUI system. |
|
examples
|
|
|
async
command
Command async demonstrates async updating in Cogent Core.
|
Command async demonstrates async updating in Cogent Core. |
|
basic
command
|
|
|
demo
command
|
|
|
video
command
|
|
|
xyz
command
|
|
|
Package filetree provides a GUI tree interface to a filesystem.
|
Package filetree provides a GUI tree interface to a filesystem. |
|
Package gpu implements a convenient interface to the WebGPU graphics and compute framework, in Go, using the github.com/oliverbestmann/webgpu bindings.
|
Package gpu implements a convenient interface to the WebGPU graphics and compute framework, in Go, using the github.com/oliverbestmann/webgpu bindings. |
|
cmd/webgpuinfo
command
This tool prints out information about your available WebGPU devices.
|
This tool prints out information about your available WebGPU devices. |
|
drawmatrix
Package drawmatrix provides the matrices for drawing images at given positions and sizes with the GPU drawer.
|
Package drawmatrix provides the matrices for drawing images at given positions and sizes with the GPU drawer. |
|
examples/compute
command
|
|
|
examples/drawidx
command
|
|
|
examples/drawtri
command
|
|
|
examples/gpudraw
command
|
|
|
examples/images
Package images provides the embedded images of the GPU examples.
|
Package images provides the embedded images of the GPU examples. |
|
examples/offscreen
command
|
|
|
examples/phong
command
|
|
|
examples/texture
command
|
|
|
gpudraw
Package gpudraw draws images and fills onto a render surface or texture with the GPU, as for compositing the windows of an app.
|
Package gpudraw draws images and fills onto a render surface or texture with the GPU, as for compositing the windows of an app. |
|
phong
Package phong renders 3D meshes with Blinn-Phong lighting on the GPU, with lights, materials, textures, and a camera.
|
Package phong renders 3D meshes with Blinn-Phong lighting on the GPU, with lights, materials, textures, and a camera. |
|
shape
Package shape provides a library of 3D shapes, built from indexed triangle meshes, which can be added together in `ShapeGroup` lists.
|
Package shape provides a library of 3D shapes, built from indexed triangle meshes, which can be added together in `ShapeGroup` lists. |
|
wgpuglfw
Package wgpuglfw makes WebGPU surface descriptors for glfw windows.
|
Package wgpuglfw makes WebGPU surface descriptors for glfw windows. |
|
Package htmlcore converts HTML and Markdown into Cogent Core widgets.
|
Package htmlcore converts HTML and Markdown into Cogent Core widgets. |
|
css
Package css has the parts of CSS that htmlcore uses to style the widgets of pages that do not depend on its widgets: parsing style sheets (Parse), compiling and indexing selectors (CompileSelector, SelectorIndex), the declarations of the cascade (Origin, ValidDeclaration), and the values of properties: lengths (LengthEnv), colors (ParseColor), filters, transitions, fonts, masks and others.
|
Package css has the parts of CSS that htmlcore uses to style the widgets of pages that do not depend on its widgets: parsing style sheets (Parse), compiling and indexing selectors (CompileSelector, SelectorIndex), the declarations of the cascade (Origin, ValidDeclaration), and the values of properties: lengths (LengthEnv), colors (ParseColor), filters, transitions, fonts, masks and others. |
|
examples/html
command
|
|
|
examples/md
command
|
|
|
htmlengine
Package htmlengine is the engine that reads HTML and Markdown into Cogent Core widget trees: parsing documents, the CSS cascade and the browser styles of elements, making and laying out the widgets of the elements, and reading and restyling the changed elements of documents (as by the scripts of pages) in place.
|
Package htmlengine is the engine that reads HTML and Markdown into Cogent Core widget trees: parsing documents, the CSS cascade and the browser styles of elements, making and laying out the widgets of the elements, and reading and restyling the changed elements of documents (as by the scripts of pages) in place. |
|
tohtml
Package tohtml converts Cogent Core widgets to HTML, which the core tool uses to pre-render apps for a preview while the app loads and for SEO purposes.
|
Package tohtml converts Cogent Core widgets to HTML, which the core tool uses to pre-render apps for a preview while the app loads and for SEO purposes. |
|
Package icons provides Material Design Symbols as SVG icon variables.
|
Package icons provides Material Design Symbols as SVG icon variables. |
|
Package keymap implements maps from keyboard shortcuts to semantic GUI keyboard functions.
|
Package keymap implements maps from keyboard shortcuts to semantic GUI keyboard functions. |
|
Package math32 is our version of the G3N math32 32-bit, 3D rendering-based math library.
|
Package math32 is our version of the G3N math32 32-bit, 3D rendering-based math library. |
|
internal/fmath
Package fmath provides the float32 math functions used by math32.
|
Package fmath provides the float32 math functions used by math32. |
|
minmax
Package minmax provides a struct that holds Min and Max values.
|
Package minmax provides a struct that holds Min and Max values. |
|
vecint
Package vecint has vector types for emergent, including Vector2i which is a 2D vector with int values, using the API based on math32.Vector2i.
|
Package vecint has vector types for emergent, including Vector2i which is a 2D vector with int values, using the API based on math32.Vector2i. |
|
Package mvmcore provides functions connecting the mvm Go interpreter (https://github.com/cogentcore/mvm, a fork of github.com/mvm-sh/mvm) to Cogent Core, such that content code blocks can be edited and run.
|
Package mvmcore provides functions connecting the mvm Go interpreter (https://github.com/cogentcore/mvm, a fork of github.com/mvm-sh/mvm) to Cogent Core, such that content code blocks can be edited and run. |
|
basesymbols
Package basesymbols has the mvm symbols of the packages that do not use the GUI, which interpreted code can use: the Cogent Core base packages, and the standard library packages that the mvm stdlib/core package does not have.
|
Package basesymbols has the mvm symbols of the packages that do not use the GUI, which interpreted code can use: the Cogent Core base packages, and the standard library packages that the mvm stdlib/core package does not have. |
|
coresymbols
Package coresymbols has the mvm symbols of the GUI packages that interpreted code in Cogent Core apps can use, such as the code of the docs (see basesymbols for the packages that do not use the GUI).
|
Package coresymbols has the mvm symbols of the GUI packages that interpreted code in Cogent Core apps can use, such as the code of the docs (see basesymbols for the packages that do not use the GUI). |
|
Package paint is the rendering package for Cogent Core.
|
Package paint is the rendering package for Cogent Core. |
|
pdf
Package pdf writes PDF documents of painted content: paths, text, images, gradients, links, and outlines.
|
Package pdf writes PDF documents of painted content: paths, text, images, gradients, links, and outlines. |
|
pimage
Package pimage provides the render items for drawing images (drawing, transforming, and blurring them), and image utilities.
|
Package pimage provides the render items for drawing images (drawing, transforming, and blurring them), and image utilities. |
|
ppath
Package ppath provides vector paths of lines, Bézier curves, and arcs, with their construction, transformation, and parsing and writing as SVG.
|
Package ppath provides vector paths of lines, Bézier curves, and arcs, with their construction, transformation, and parsing and writing as SVG. |
|
ppath/intersect
Package intersect provides the intersections of paths, and boolean operations on them (and, or, xor, not), settling, and filling tests.
|
Package intersect provides the intersections of paths, and boolean operations on them (and, or, xor, not), settling, and filling tests. |
|
ppath/stroke
Package stroke provides the stroking of paths, with caps and joins, and their dashing and offsetting.
|
Package stroke provides the stroking of paths, with caps and joins, and their dashing and offsetting. |
|
render
Package render provides the render items that painters record (paths, text, images, and contexts), and the Renderer interface that draws them.
|
Package render provides the render items that painters record (paths, text, images, and contexts), and the Renderer interface that draws them. |
|
renderers
Package renderers sets the standard renderers of the platform for the paint package: images, SVG, and PDF (importing it is enough).
|
Package renderers sets the standard renderers of the platform for the paint package: images, SVG, and PDF (importing it is enough). |
|
renderers/htmlcanvas
Package htmlcanvas renders to an HTML canvas element, on the web.
|
Package htmlcanvas renders to an HTML canvas element, on the web. |
|
renderers/pdfrender
Package pdfrender renders to PDF documents (with the pdf package).
|
Package pdfrender renders to PDF documents (with the pdf package). |
|
renderers/rasterx
Package rasterx renders to images by rasterizing paths and text.
|
Package rasterx renders to images by rasterizing paths and text. |
|
renderers/rasterx/scan
Package scan provides an anti-aliasing 2-D rasterizer, which is based on the larger Freetype suite of font-related packages, but the raster package is not specific to font rasterization, and can be used standalone without any other Freetype package.
|
Package scan provides an anti-aliasing 2-D rasterizer, which is based on the larger Freetype suite of font-related packages, but the raster package is not specific to font rasterization, and can be used standalone without any other Freetype package. |
|
renderers/svgrender
Package svgrender renders to SVG documents.
|
Package svgrender renders to SVG documents. |
|
Package styles contains the style structures for the Cogent Core GUI framework.
|
Package styles contains the style structures for the Cogent Core GUI framework. |
|
abilities
Package abilities provides the abilities of widgets: what they can do, as be pressed, focused, or scrolled.
|
Package abilities provides the abilities of widgets: what they can do, as be pressed, focused, or scrolled. |
|
sides
Package sides provides flexible representation of box sides or corners, with either a single value for all, or different values for subsets.
|
Package sides provides flexible representation of box sides or corners, with either a single value for all, or different values for subsets. |
|
states
Package states provides the states of widgets, as hovered, focused, or active, which are used in styling them.
|
Package states provides the states of widgets, as hovered, focused, or active, which are used in styling them. |
|
styleprops
Package styleprops provides infrastructure for property-list-based setting of style values, where a property list is a map[string]any collection of key, value pairs.
|
Package styleprops provides infrastructure for property-list-based setting of style values, where a property list is a map[string]any collection of key, value pairs. |
|
units
Package units supports full range of CSS-style length units (em, px, dp, etc)
|
Package units supports full range of CSS-style length units (em, px, dp, etc) |
|
Package svg provides SVG rendering classes, I/O parsing: full SVG rendering
|
Package svg provides SVG rendering classes, I/O parsing: full SVG rendering |
|
cmd/svg
command
|
|
|
Package system provides a Go operating system interface framework to support events, window management, and other OS-specific functionality needed for full GUI support.
|
Package system provides a Go operating system interface framework to support events, window management, and other OS-specific functionality needed for full GUI support. |
|
composer
Package composer provides composition of source rendering elements.
|
Package composer provides composition of source rendering elements. |
|
driver/base
Package base provides base driver types that platform-specific drivers can extend to implement interfaces defined in package system.
|
Package base provides base driver types that platform-specific drivers can extend to implement interfaces defined in package system. |
|
driver/desktop/wintoast
Package wintoast shows and schedules the toast notifications of Windows, with the WinRT API of Windows.UI.Notifications, through its COM interfaces, without cgo.
|
Package wintoast shows and schedules the toast notifications of Windows, with the WinRT API of Windows.UI.Notifications, through its COM interfaces, without cgo. |
|
driver/mobile/mobileinit
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps.
|
Package mobileinit contains common initialization logic for mobile platforms that is relevant to both all-Go apps and gobind-based apps. |
|
driver/offscreen
Package offscreen provides placeholder implementations of system interfaces to allow for offscreen testing and capturing of apps.
|
Package offscreen provides placeholder implementations of system interfaces to allow for offscreen testing and capturing of apps. |
|
driver/web
Package web implements system interfaces on the web through WASM
|
Package web implements system interfaces on the web through WASM |
|
driver/web/jsfs
Package jsfs provides a Node.js style filesystem API in Go that can be used to allow os functions to work on wasm.
|
Package jsfs provides a Node.js style filesystem API in Go that can be used to allow os functions to work on wasm. |
|
driver/web/jsfs/examples/config
command
|
|
|
driver/web/jsfs/examples/fromjs
command
|
|
|
driver/web/jsfs/examples/mountfs
command
|
|
|
driver/web/jsfs/examples/newfs
command
|
|
|
examples/basic
command
|
|
|
examples/drawidx
command
|
|
|
examples/drawtri
command
|
|
|
Package text provides the styles of the layout of text, such as its alignment, line height, and white space, and the settings of text editors.
|
Package text provides the styles of the layout of text, such as its alignment, line height, and white space, and the settings of text editors. |
|
csl
Package csl provides support for citation and reference generation using the industry-standard Citation Style Language.
|
Package csl provides support for citation and reference generation using the industry-standard Citation Style Language. |
|
csl/mdcite
command
|
|
|
difflib
Package difflib is a partial port of Python difflib module.
|
Package difflib is a partial port of Python difflib module. |
|
difflib/bytes
Package bytes is a partial port of Python difflib module for bytes.
|
Package bytes is a partial port of Python difflib module for bytes. |
|
difflib/tester
Package tester provides random strings for the tests and benchmarks of difflib.
|
Package tester provides random strings for the tests and benchmarks of difflib. |
|
fonts
Package fonts provides the fonts that are embedded in apps (Noto Sans and Roboto Mono by default), the fonts added at run time, and their information.
|
Package fonts provides the fonts that are embedded in apps (Noto Sans and Roboto Mono by default), the fonts added at run time, and their information. |
|
fonts/fontbrowser
command
|
|
|
fonts/metricsonly
command
Command metricsonly extracts font metrics from font files, discarding all the glyph outlines and other data.
|
Command metricsonly extracts font metrics from font files, discarding all the glyph outlines and other data. |
|
fonts/noto
Package noto embeds the Noto Sans fonts, the default sans-serif fonts.
|
Package noto embeds the Noto Sans fonts, the default sans-serif fonts. |
|
fonts/robotomono
Package robotomono embeds the Roboto Mono fonts, the default monospace fonts.
|
Package robotomono embeds the Roboto Mono fonts, the default monospace fonts. |
|
highlighting
Package highlighting provides syntax highlighting styles; it is based on github.com/alecthomas/chroma, which in turn was based on the python pygments package.
|
Package highlighting provides syntax highlighting styles; it is based on github.com/alecthomas/chroma, which in turn was based on the python pygments package. |
|
highlighting/alllexers
Package alllexers makes syntax highlighting use all of the chroma lexers on all platforms, when imported:
|
Package alllexers makes syntax highlighting use all of the chroma lexers on all platforms, when imported: |
|
highlighting/lexers
Package lexers provides the chroma lexers for syntax highlighting one language at a time, so that an app links only the definitions of the languages that it highlights, instead of those of all of the hundreds of languages in github.com/alecthomas/chroma/v3/lexers.
|
Package lexers provides the chroma lexers for syntax highlighting one language at a time, so that an app links only the definitions of the languages that it highlights, instead of those of all of the hundreds of languages in github.com/alecthomas/chroma/v3/lexers. |
|
htmltext
Package htmltext converts HTML and preformatted text with HTML markup to rich text, and rich text to HTML.
|
Package htmltext converts HTML and preformatted text with HTML markup to rich text, and rich text to HTML. |
|
parse
Package parse is the top-level package for the Cogent Core parsing system.
|
Package parse is the top-level package for the Cogent Core parsing system. |
|
parse/cmd/parse
command
|
|
|
parse/cmd/update
command
Command update updates all of the .parse files within or beneath the current directory by opening and saving them.
|
Command update updates all of the .parse files within or beneath the current directory by opening and saving them. |
|
parse/complete
Package complete provides the matching of completions to the text being completed (the seed), and the edits that insert them.
|
Package complete provides the matching of completions to the text being completed (the seed), and the edits that insert them. |
|
parse/languages
Package languages provides the parsers of the languages of the parse package, by their known file types.
|
Package languages provides the parsers of the languages of the parse package, by their known file types. |
|
parse/languages/bibtex
Package bibtex reads BibTeX files of bibliographic references.
|
Package bibtex reads BibTeX files of bibliographic references. |
|
parse/languages/golang
Package golang provides the support for the Go language of the parse package: its parser, symbols, type inference, and completion.
|
Package golang provides the support for the Go language of the parse package: its parser, symbols, type inference, and completion. |
|
parse/languages/markdown
Package markdown provides the support for Markdown of the parse package, with the completion of citations and links.
|
Package markdown provides the support for Markdown of the parse package, with the completion of citations and links. |
|
parse/languages/tex
Package tex provides the support for TeX and LaTeX of the parse package, with the completion of commands and citations.
|
Package tex provides the support for TeX and LaTeX of the parse package, with the completion of commands and citations. |
|
parse/lexer
Package lexer provides all the lexing functions that transform text into lexical tokens, using token types defined in the token package.
|
Package lexer provides all the lexing functions that transform text into lexical tokens, using token types defined in the token package. |
|
parse/lsp
Package lsp contains types for the Language Server Protocol LSP: https://microsoft.github.io/language-server-protocol/specification and mappings from these elements into the token.Tokens types which are used internally in parse.
|
Package lsp contains types for the Language Server Protocol LSP: https://microsoft.github.io/language-server-protocol/specification and mappings from these elements into the token.Tokens types which are used internally in parse. |
|
parse/parser
Package parser does the parsing stage after lexing, using a top-down recursive-descent (TDRD) strategy, with a special reverse mode to deal with left-associative binary expressions which otherwise end up being right-associative for TDRD parsing.
|
Package parser does the parsing stage after lexing, using a top-down recursive-descent (TDRD) strategy, with a special reverse mode to deal with left-associative binary expressions which otherwise end up being right-associative for TDRD parsing. |
|
parse/supportedlanguages
Package supportedlanguages includes all the supported languages for parse -- need to import this package to get those all included in a given target
|
Package supportedlanguages includes all the supported languages for parse -- need to import this package to get those all included in a given target |
|
parse/syms
Package syms defines the symbols and their properties that are accumulated from a parsed file, and are then used for e.g., completion lookup, etc.
|
Package syms defines the symbols and their properties that are accumulated from a parsed file, and are then used for e.g., completion lookup, etc. |
|
printer
Package printer provides standard printer settings.
|
Package printer provides standard printer settings. |
|
rich
Package rich provides the `rich.Text` type, which is the standard representation for formatted text, used as the input to the `shaped` package for text layout and rendering.
|
Package rich provides the `rich.Text` type, which is the standard representation for formatted text, used as the input to the `shaped` package for text layout and rendering. |
|
runes
Package runes provides a small subset of functions for rune slices that are found in the strings and bytes standard packages.
|
Package runes provides a small subset of functions for rune slices that are found in the strings and bytes standard packages. |
|
shaped
Package shaped provides the interfaces and types of the shaping of rich text into lines of runs of glyphs, for rendering.
|
Package shaped provides the interfaces and types of the shaping of rich text into lines of runs of glyphs, for rendering. |
|
shaped/shapers
Package shapers sets the text shaper of the platform: that of go-text (shapedgt), or on the web, the one corrected by the browser (shapedjs).
|
Package shapers sets the text shaper of the platform: that of go-text (shapedgt), or on the web, the one corrected by the browser (shapedjs). |
|
shaped/shapers/shapedgt
Package shapedgt shapes text with the HarfBuzz shaper of go-text, and wraps it into lines.
|
Package shapedgt shapes text with the HarfBuzz shaper of go-text, and wraps it into lines. |
|
shaped/shapers/shapedjs
Package shapedjs shapes text on the web, with the shaper of go-text, corrected by the measurements of the text in a browser canvas.
|
Package shapedjs shapes text on the web, with the shaper of go-text, corrected by the measurements of the text in a browser canvas. |
|
spell
Package spell provides functions for spell check and correction.
|
Package spell provides functions for spell check and correction. |
|
spell/dict
command
|
|
|
terminal
Package terminal provides a terminal widget that runs a program, typically a shell, in a pseudo-terminal.
|
Package terminal provides a terminal widget that runs a program, typically a shell, in a pseudo-terminal. |
|
terminal/examples/basic
command
basic is a terminal app that runs the given command, or the user's shell.
|
basic is a terminal app that runs the given command, or the user's shell. |
|
terminal/pty
Package pty runs a command in a pseudo-terminal (pty), so that it acts as it does in a terminal: for example, a shell is interactive.
|
Package pty runs a command in a pseudo-terminal (pty), so that it acts as it does in a terminal: for example, a shell is interactive. |
|
terminal/vt
Package vt implements a virtual terminal emulator, Emulator: the grid of character cells that results from the output of programs that use the standard (VT100 / xterm) terminal control sequences, with the scrolling scrollback, modes, and other state of the terminal.
|
Package vt implements a virtual terminal emulator, Emulator: the grid of character cells that results from the output of programs that use the standard (VT100 / xterm) terminal control sequences, with the scrolling scrollback, modes, and other state of the terminal. |
|
tex
Package tex typesets LaTeX math expressions into paths, with the fonts of TeX.
|
Package tex typesets LaTeX math expressions into paths, with the fonts of TeX. |
|
tex/texcache
Package texcache caches the paths of typeset LaTeX math expressions, which can be saved to a file and opened again, so that TeX is not needed for them.
|
Package texcache caches the paths of typeset LaTeX math expressions, which can be saved to a file and opened again, so that TeX is not needed for them. |
|
textcore
Package textcore provides the widgets for viewing and editing text: Base, Editor, and the diff and twin editors built on them.
|
Package textcore provides the widgets for viewing and editing text: Base, Editor, and the diff and twin editors built on them. |
|
textpos
Package textpos provides positions, ranges, regions, and edits of text in lines of runes.
|
Package textpos provides positions, ranges, regions, and edits of text in lines of runes. |
|
token
Package token defines a complete set of all lexical tokens for any kind of language! It is based on the alecthomas/chroma / pygments lexical tokens plus all the more detailed tokens needed for actually parsing languages
|
Package token defines a complete set of all lexical tokens for any kind of language! It is based on the alecthomas/chroma / pygments lexical tokens plus all the more detailed tokens needed for actually parsing languages |
|
Package tree provides a powerful and extensible tree system, centered on the core Node interface.
|
Package tree provides a powerful and extensible tree system, centered on the core Node interface. |
|
Package types provides type information for Go types, methods, and functions.
|
Package types provides type information for Go types, methods, and functions. |
|
cmd/typegen
command
Command typgen provides the generation of type information for Go types, methods, and functions.
|
Command typgen provides the generation of type information for Go types, methods, and functions. |
|
typegen
Package typegen provides the generation of type information for Go types, methods, and functions.
|
Package typegen provides the generation of type information for Go types, methods, and functions. |
|
Package undo package provides a generic undo / redo functionality based on `[]string` representations of any kind of state representation (typically JSON dump of the 'document' state).
|
Package undo package provides a generic undo / redo functionality based on `[]string` representations of any kind of state representation (typically JSON dump of the 'document' state). |
|
Package video implements a video player widget in Cogent Core.
|
Package video implements a video player widget in Cogent Core. |
|
Package xyz is a 3D graphics framework written in Go.
|
Package xyz is a 3D graphics framework written in Go. |
|
examples/assets
Package assets provides the embedded 3D assets (objects and textures) of the xyz examples.
|
Package assets provides the embedded 3D assets (objects and textures) of the xyz examples. |
|
examples/offscreen
command
|
|
|
io/obj
Package obj is used to parse the Wavefront OBJ file format (*.obj), including associated materials (*.mtl).
|
Package obj is used to parse the Wavefront OBJ file format (*.obj), including associated materials (*.mtl). |
|
xyzcore
Package xyzcore provides a core-based GUI view for a 3D xyz scene.
|
Package xyzcore provides a core-based GUI view for a 3D xyz scene. |
Click to show internal directories.
Click to hide internal directories.