Source File
export.go
Belonging Package
github.com/carapace-sh/carapace/internal/export
package exportimport ()type Export struct {Version string `json:"version"`common.MetaValues common.RawValues `json:"values"`}func ( Export) () ([]byte, error) {sort.Sort(common.ByValue(.Values))return json.Marshal(&struct {string `json:"version"`common.Metacommon.RawValues `json:"values"`}{: version(),: .Meta,: .Values,})}func version() string {if , := debug.ReadBuildInfo(); {for , := range .Deps {if .Path == "github.com/carapace-sh/carapace" {return .Version}}}return "unknown"}
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |