Versions in this module Expand all Collapse all v1 v1.2.0 Jan 22, 2025 Changes in this version + var ErrInvalidCodeSnippet = errors.New("coderef: invalid code snippet") + var ErrInvalidCommitHash = errors.New("coderef: invalid commit hash") + var ErrInvalidContentHash = errors.New("coderef: invalid content hash") + var ErrInvalidEnvironmentID = errors.New("coderef: invalid environment id") + var ErrInvalidFeatureID = errors.New("coderef: invalid feature id") + var ErrInvalidFilePath = errors.New("coderef: invalid file path") + var ErrInvalidLineNumber = errors.New("coderef: invalid line number") + var ErrInvalidRepositoryBranch = errors.New("coderef: invalid repository branch") + var ErrInvalidRepositoryName = errors.New("coderef: invalid repository name") + var ErrInvalidRepositoryOwner = errors.New("coderef: invalid repository owner") + var ErrInvalidRepositoryType = errors.New("coderef: invalid repository type") + type CodeReference struct + func NewCodeReference(featureId string, filePath string, lineNumber int32, codeSnippet string, ...) (*CodeReference, error) + func (c *CodeReference) Update(filePath string, lineNumber int32, codeSnippet string, contentHash string, ...) (*CodeReference, error)