| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
This package is not in the latest version of its module.
Go to latest Published: Oct 17, 2025 License: Apache-2.0The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Modules with tagged versions give importers more predictable builds.
When a project reaches major version v1 it is considered stable.
const ( // DEFAULTSEPARATOR defines the default csv separator DEFAULTSEPARATOR rune = ',' // DEFAULTCOMMENT defines the default comment character DEFAULTCOMMENT rune = '#' )
var ( ErrSpecFileUndefined = errors.New("csv file undefined") ErrSpecKeyUndefined = errors.New("csv key or query undefined") ErrSpecFileAndFilesDefined = errors.New("parameter \"file\" and \"files\" are mutually exclusive") // ErrWrongSpec is returned when the Spec has wrong content ErrWrongSpec error = errors.New("wrong spec content") )
var ( // ErrDaselFailedParsingJSONByteFormat is returned if dasel couldn't parse the byteData ErrDaselFailedParsingJSONByteFormat error = errors.New("fail to parse Json data") )
var (
ErrSpecVersionFilterRequireMultiple = errors.New("in the context of a source, parameter \"versionfilter\" and \"query\" must be used together")
)
This section is empty.
type CSV struct {
// contains filtered or unexported fields
}
CSV stores configuration about the file and the key value which needs to be updated.
func (c *CSV) Changelog(from, to string) *result.Changelogs
Changelog returns the changelog for this resource, or an empty string if not supported
func (c *CSV) ReportConfig() interface{}
ReportConfig returns a cleaned version of the configuration to identify the resource without any sensitive information or context specific data.
type Spec struct {
// [s][c][t] File specifies the csv file
File string `yaml:",omitempty"`
// [c][t] Files specifies a list of Json file to manipulate
Files []string `yaml:",omitempty"`
// [s][c][t] Key specifies the csv query
Key string `yaml:",omitempty"`
// [s][c][t] Query allows to used advanced query. Override the parameter key
Query string `yaml:",omitempty"`
// [s][c][t] Key specifies the csv value, default to source output
Value string `yaml:",omitempty"`
// [s][c][t] Comma specifies the csv separator character, default ","
Comma rune `yaml:",omitempty"`
// [s][c][t] Comma specifies the csv comment character, default "#"
Comment rune `yaml:",omitempty"`
// [c][t] *Deprecated* Please look at query parameter to achieve similar objective
Multiple bool `yaml:",omitempty" jsonschema:"-"`
// [s]VersionFilter provides parameters to specify version pattern and its type like regex, semver, or just latest.
VersionFilter version.Filter `yaml:",omitempty"`
}
| Back | FazBrowse Home | New Git URL |