base

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: BSD-3-Clause Imports: 0 Imported by: 0

README

base

A collection of base infrastructure packages that serve as a base for the main Cogent Core packages. They are placed in this directory to avoid cluttering the root directory with small packages that are not the main focus of Cogent Core. In a sense, these packages are extensions of the Go standard library that could have been plausibly included there.

Documentation

Overview

Package base contains a collection of base infrastructure packages that serve as a base for the main Cogent Core packages.

Directories

Path Synopsis
Package atomiccounter implements a basic atomic int64 counter.
Package atomiccounter implements a basic atomic int64 counter.
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.
Package bools provides functions and interfaces for interacting with bool values.
Package bools provides functions and interfaces for interacting with bool values.
Package datasize provides a data size type and constants.
Package datasize provides a data size type and constants.
Package elide provides basic text eliding functions.
Package elide provides basic text eliding functions.
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.
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.
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.
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.
Package fsx provides various utility functions for dealing with filesystems.
Package fsx provides various utility functions for dealing with filesystems.
Package generate provides utilities for building code generators in Go.
Package generate provides utilities for building code generators in Go.
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.
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.
Package mergefs provides support for merging multiple filesystems together.
Package mergefs provides support for merging multiple filesystems together.
Package mpi wraps the Message Passing Interface for distributed memory data sharing across a collection of processors (procs).
Package mpi wraps the Message Passing Interface for distributed memory data sharing across a collection of processors (procs).
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/
Package option provides optional (nullable) types.
Package option provides optional (nullable) types.
package ordmap implements an ordered map that retains the order of items added to a slice, while also providing fast key-based map lookup of items, using the Go 1.18 generics system.
package ordmap implements an ordered map that retains the order of items added to a slice, while also providing fast key-based map lookup of items, using the Go 1.18 generics system.
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.
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.
Package randx provides randomization functionality built on top of standard math/rand random number generation functions.
Package randx provides randomization functionality built on top of standard math/rand random number generation functions.
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.
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.
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.
Package stack provides a generic stack implementation.
Package stack provides a generic stack implementation.
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).
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.
Package tiered provides a type for a tiered set of objects.
Package tiered provides a type for a tiered set of objects.
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.
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).
Package vcs provides a more complete version control system (ex: git) interface, building on https://github.com/Masterminds/vcs.
Package vcs provides a more complete version control system (ex: git) interface, building on https://github.com/Masterminds/vcs.

Jump to

Keyboard shortcuts

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