@enjoys/context-engine 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (105) hide show
  1. package/data/commands/adb.json +322 -0
  2. package/data/commands/alembic.json +301 -0
  3. package/data/commands/artisan.json +277 -0
  4. package/data/commands/atlas.json +426 -0
  5. package/data/commands/auth0.json +648 -0
  6. package/data/commands/bat.json +84 -0
  7. package/data/commands/bundle.json +321 -0
  8. package/data/commands/composer.json +507 -0
  9. package/data/commands/dart.json +216 -0
  10. package/data/commands/dbmate.json +257 -0
  11. package/data/commands/docker-compose.json +384 -0
  12. package/data/commands/drizzle-kit.json +217 -0
  13. package/data/commands/expo.json +65 -0
  14. package/data/commands/fastlane.json +243 -0
  15. package/data/commands/fd.json +86 -0
  16. package/data/commands/flutter.json +298 -0
  17. package/data/commands/flyway.json +261 -0
  18. package/data/commands/fzf.json +103 -0
  19. package/data/commands/gem.json +267 -0
  20. package/data/commands/jq.json +100 -0
  21. package/data/commands/k9s.json +62 -0
  22. package/data/commands/liquibase.json +399 -0
  23. package/data/commands/manifest.json +619 -0
  24. package/data/commands/minikube.json +60 -0
  25. package/data/commands/ng.json +64 -0
  26. package/data/commands/nuxt.json +60 -0
  27. package/data/commands/php.json +157 -0
  28. package/data/commands/pm2.json +259 -0
  29. package/data/commands/pod.json +175 -0
  30. package/data/commands/prisma.json +257 -0
  31. package/data/commands/rails.json +372 -0
  32. package/data/commands/rake.json +360 -0
  33. package/data/commands/react-native.json +57 -0
  34. package/data/commands/rg.json +103 -0
  35. package/data/commands/rspec.json +257 -0
  36. package/data/commands/ruby.json +108 -0
  37. package/data/commands/sequelize.json +342 -0
  38. package/data/commands/snyk.json +442 -0
  39. package/data/commands/sonar-scanner.json +219 -0
  40. package/data/commands/stripe.json +314 -0
  41. package/data/commands/symfony.json +449 -0
  42. package/data/commands/tmux.json +197 -0
  43. package/data/commands/trivy.json +367 -0
  44. package/data/commands/twilio.json +382 -0
  45. package/data/commands/typeorm.json +262 -0
  46. package/data/commands/vue.json +60 -0
  47. package/data/commands/wp.json +857 -0
  48. package/data/commands/xcodebuild.json +141 -0
  49. package/data/commands/yq.json +57 -0
  50. package/data/completion/bash.json +1184 -0
  51. package/data/completion/c.json +1067 -0
  52. package/data/completion/cpp.json +824 -0
  53. package/data/completion/csharp.json +860 -0
  54. package/data/completion/dockerfile.json +536 -0
  55. package/data/completion/go.json +1346 -0
  56. package/data/completion/html.json +806 -0
  57. package/data/completion/java.json +1112 -0
  58. package/data/completion/javascript.json +914 -0
  59. package/data/completion/lua.json +968 -0
  60. package/data/completion/php.json +1535 -0
  61. package/data/completion/python.json +1427 -0
  62. package/data/completion/ruby.json +1531 -0
  63. package/data/completion/rust.json +698 -0
  64. package/data/completion/sql.json +887 -0
  65. package/data/completion/toml.json +428 -0
  66. package/data/completion/typescript.json +338 -0
  67. package/data/completion/yaml.json +563 -0
  68. package/data/defination/bash.json +565 -0
  69. package/data/defination/c.json +865 -0
  70. package/data/defination/cpp.json +348 -0
  71. package/data/defination/csharp.json +144 -0
  72. package/data/defination/dockerfile.json +113 -0
  73. package/data/defination/go.json +561 -0
  74. package/data/defination/html.json +559 -0
  75. package/data/defination/java.json +184 -0
  76. package/data/defination/javascript.json +265 -0
  77. package/data/defination/lua.json +181 -0
  78. package/data/defination/php.json +726 -0
  79. package/data/defination/python.json +717 -0
  80. package/data/defination/ruby.json +670 -0
  81. package/data/defination/rust.json +207 -0
  82. package/data/defination/sql.json +473 -0
  83. package/data/defination/toml.json +251 -0
  84. package/data/defination/typescript.json +29 -0
  85. package/data/defination/yaml.json +197 -0
  86. package/data/hover/bash.json +245 -0
  87. package/data/hover/c.json +265 -0
  88. package/data/hover/cpp.json +210 -0
  89. package/data/hover/csharp.json +290 -0
  90. package/data/hover/dockerfile.json +145 -0
  91. package/data/hover/go.json +580 -0
  92. package/data/hover/html.json +250 -0
  93. package/data/hover/java.json +395 -0
  94. package/data/hover/javascript.json +330 -0
  95. package/data/hover/lua.json +265 -0
  96. package/data/hover/php.json +300 -0
  97. package/data/hover/python.json +380 -0
  98. package/data/hover/ruby.json +265 -0
  99. package/data/hover/rust.json +275 -0
  100. package/data/hover/sql.json +230 -0
  101. package/data/hover/toml.json +145 -0
  102. package/data/hover/typescript.json +120 -0
  103. package/data/hover/yaml.json +165 -0
  104. package/data/manifest.json +242 -0
  105. package/package.json +1 -1
@@ -0,0 +1,561 @@
1
+ {
2
+ "language": "go",
3
+ "definitions": {
4
+ "make": {
5
+ "signature": "func make(t Type, size ...IntegerType) Type",
6
+ "description": "Allocates and initializes an object of type slice, map, or chan. For slices, the second argument is length and optional third is capacity. For maps, an optional size hint. For channels, an optional buffer capacity.",
7
+ "type": "function",
8
+ "module": "builtin",
9
+ "parameters": [
10
+ { "name": "t", "type": "Type", "description": "The type to create (must be slice, map, or channel)" },
11
+ { "name": "size", "type": "...IntegerType", "description": "Length and optional capacity for slices; optional capacity for maps and channels" }
12
+ ],
13
+ "returns": "Type"
14
+ },
15
+ "new": {
16
+ "signature": "func new(Type) *Type",
17
+ "description": "Allocates zeroed storage for a new item of the given type and returns a pointer to it.",
18
+ "type": "function",
19
+ "module": "builtin",
20
+ "parameters": [
21
+ { "name": "Type", "type": "Type", "description": "The type to allocate" }
22
+ ],
23
+ "returns": "*Type"
24
+ },
25
+ "append": {
26
+ "signature": "func append(slice []Type, elems ...Type) []Type",
27
+ "description": "Appends elements to the end of a slice. If the backing array has sufficient capacity, the destination is resliced. If not, a new array is allocated and the returned slice will point to the newly allocated array.",
28
+ "type": "function",
29
+ "module": "builtin",
30
+ "parameters": [
31
+ { "name": "slice", "type": "[]Type", "description": "The original slice" },
32
+ { "name": "elems", "type": "...Type", "description": "Elements to append" }
33
+ ],
34
+ "returns": "[]Type"
35
+ },
36
+ "copy": {
37
+ "signature": "func copy(dst, src []Type) int",
38
+ "description": "Copies elements from src into dst. Returns the number of elements copied, which is the minimum of len(src) and len(dst). Also supports copying bytes from a string to []byte.",
39
+ "type": "function",
40
+ "module": "builtin",
41
+ "parameters": [
42
+ { "name": "dst", "type": "[]Type", "description": "Destination slice" },
43
+ { "name": "src", "type": "[]Type", "description": "Source slice" }
44
+ ],
45
+ "returns": "int"
46
+ },
47
+ "delete": {
48
+ "signature": "func delete(m map[Type]Type1, key Type)",
49
+ "description": "Deletes the element with the specified key from the map. If the map is nil or there is no such element, delete is a no-op.",
50
+ "type": "function",
51
+ "module": "builtin",
52
+ "parameters": [
53
+ { "name": "m", "type": "map[Type]Type1", "description": "The map" },
54
+ { "name": "key", "type": "Type", "description": "The key to delete" }
55
+ ],
56
+ "returns": ""
57
+ },
58
+ "len": {
59
+ "signature": "func len(v Type) int",
60
+ "description": "Returns the length of v: number of elements in array, slice, map, or channel buffer; number of bytes in a string.",
61
+ "type": "function",
62
+ "module": "builtin",
63
+ "parameters": [
64
+ { "name": "v", "type": "Type", "description": "Array, slice, map, string, or channel" }
65
+ ],
66
+ "returns": "int"
67
+ },
68
+ "cap": {
69
+ "signature": "func cap(v Type) int",
70
+ "description": "Returns the capacity of v: the maximum length a slice can reach; the length of the underlying array; or the channel buffer capacity.",
71
+ "type": "function",
72
+ "module": "builtin",
73
+ "parameters": [
74
+ { "name": "v", "type": "Type", "description": "Array, slice, or channel" }
75
+ ],
76
+ "returns": "int"
77
+ },
78
+ "close": {
79
+ "signature": "func close(c chan<- Type)",
80
+ "description": "Closes the channel, indicating no more values will be sent. Only the sender should close a channel.",
81
+ "type": "function",
82
+ "module": "builtin",
83
+ "parameters": [
84
+ { "name": "c", "type": "chan<- Type", "description": "The channel to close" }
85
+ ],
86
+ "returns": ""
87
+ },
88
+ "panic": {
89
+ "signature": "func panic(v any)",
90
+ "description": "Stops normal execution of the current goroutine. Deferred functions are still executed. Panics propagate up the call stack until recovered or the program crashes.",
91
+ "type": "function",
92
+ "module": "builtin",
93
+ "parameters": [
94
+ { "name": "v", "type": "any", "description": "The panic value" }
95
+ ],
96
+ "returns": ""
97
+ },
98
+ "recover": {
99
+ "signature": "func recover() any",
100
+ "description": "Allows a program to manage behavior of a panicking goroutine. Only useful inside deferred functions. Returns the value that was passed to panic, or nil if the goroutine is not panicking.",
101
+ "type": "function",
102
+ "module": "builtin",
103
+ "parameters": [],
104
+ "returns": "any"
105
+ },
106
+ "complex": {
107
+ "signature": "func complex(r, i FloatType) ComplexType",
108
+ "description": "Constructs a complex value from two floating-point values.",
109
+ "type": "function",
110
+ "module": "builtin",
111
+ "parameters": [
112
+ { "name": "r", "type": "FloatType", "description": "Real component" },
113
+ { "name": "i", "type": "FloatType", "description": "Imaginary component" }
114
+ ],
115
+ "returns": "ComplexType"
116
+ },
117
+ "real": {
118
+ "signature": "func real(c ComplexType) FloatType",
119
+ "description": "Returns the real part of a complex number.",
120
+ "type": "function",
121
+ "module": "builtin",
122
+ "parameters": [
123
+ { "name": "c", "type": "ComplexType", "description": "Complex number" }
124
+ ],
125
+ "returns": "FloatType"
126
+ },
127
+ "imag": {
128
+ "signature": "func imag(c ComplexType) FloatType",
129
+ "description": "Returns the imaginary part of a complex number.",
130
+ "type": "function",
131
+ "module": "builtin",
132
+ "parameters": [
133
+ { "name": "c", "type": "ComplexType", "description": "Complex number" }
134
+ ],
135
+ "returns": "FloatType"
136
+ },
137
+ "clear": {
138
+ "signature": "func clear[T ~[]Type | ~map[Type]Type1](t T)",
139
+ "description": "(Go 1.21+) For maps, deletes all entries. For slices, sets all elements up to the length to the zero value.",
140
+ "type": "function",
141
+ "module": "builtin",
142
+ "parameters": [
143
+ { "name": "t", "type": "T", "description": "Map or slice to clear" }
144
+ ],
145
+ "returns": ""
146
+ },
147
+ "min": {
148
+ "signature": "func min[T cmp.Ordered](x T, y ...T) T",
149
+ "description": "(Go 1.21+) Returns the smallest value of the fixed arguments. At least one argument is required.",
150
+ "type": "function",
151
+ "module": "builtin",
152
+ "parameters": [
153
+ { "name": "x", "type": "T", "description": "First value" },
154
+ { "name": "y", "type": "...T", "description": "Additional values" }
155
+ ],
156
+ "returns": "T"
157
+ },
158
+ "max": {
159
+ "signature": "func max[T cmp.Ordered](x T, y ...T) T",
160
+ "description": "(Go 1.21+) Returns the largest value of the fixed arguments. At least one argument is required.",
161
+ "type": "function",
162
+ "module": "builtin",
163
+ "parameters": [
164
+ { "name": "x", "type": "T", "description": "First value" },
165
+ { "name": "y", "type": "...T", "description": "Additional values" }
166
+ ],
167
+ "returns": "T"
168
+ },
169
+ "print": {
170
+ "signature": "func print(args ...Type)",
171
+ "description": "Formats its arguments in an implementation-specific way and writes to standard error. For production use, prefer the fmt package.",
172
+ "type": "function",
173
+ "module": "builtin",
174
+ "parameters": [
175
+ { "name": "args", "type": "...Type", "description": "Values to print" }
176
+ ],
177
+ "returns": ""
178
+ },
179
+ "println": {
180
+ "signature": "func println(args ...Type)",
181
+ "description": "Formats its arguments in an implementation-specific way and writes to standard error with spaces and a trailing newline.",
182
+ "type": "function",
183
+ "module": "builtin",
184
+ "parameters": [
185
+ { "name": "args", "type": "...Type", "description": "Values to print" }
186
+ ],
187
+ "returns": ""
188
+ },
189
+ "error": {
190
+ "signature": "type error interface { Error() string }",
191
+ "description": "The built-in error interface. The conventional interface for representing an error condition, with the nil value representing no error.",
192
+ "type": "interface",
193
+ "module": "builtin",
194
+ "members": {
195
+ "Error": { "signature": "Error() string", "description": "Returns a string describing the error.", "type": "method" }
196
+ }
197
+ },
198
+ "string": {
199
+ "signature": "type string",
200
+ "description": "The set of all strings of 8-bit bytes, conventionally but not necessarily representing UTF-8 text. A string may be empty but not nil. Values of string type are immutable.",
201
+ "type": "type",
202
+ "module": "builtin"
203
+ },
204
+ "int": {
205
+ "signature": "type int",
206
+ "description": "A signed integer type that is at least 32 bits in size. Platform-dependent: 32 bits on 32-bit systems, 64 bits on 64-bit systems.",
207
+ "type": "type",
208
+ "module": "builtin"
209
+ },
210
+ "float64": {
211
+ "signature": "type float64",
212
+ "description": "An IEEE-754 64-bit floating-point number. The default floating-point type in Go.",
213
+ "type": "type",
214
+ "module": "builtin"
215
+ },
216
+ "bool": {
217
+ "signature": "type bool",
218
+ "description": "The set of boolean values: true and false.",
219
+ "type": "type",
220
+ "module": "builtin"
221
+ },
222
+ "byte": {
223
+ "signature": "type byte = uint8",
224
+ "description": "An alias for uint8. Conventionally used to distinguish byte values from 8-bit unsigned integer values.",
225
+ "type": "type",
226
+ "module": "builtin"
227
+ },
228
+ "rune": {
229
+ "signature": "type rune = int32",
230
+ "description": "An alias for int32. Represents a Unicode code point.",
231
+ "type": "type",
232
+ "module": "builtin"
233
+ },
234
+ "any": {
235
+ "signature": "type any = interface{}",
236
+ "description": "(Go 1.18+) An alias for interface{}. Can hold a value of any type.",
237
+ "type": "type",
238
+ "module": "builtin"
239
+ },
240
+ "comparable": {
241
+ "signature": "type comparable interface{ comparable }",
242
+ "description": "(Go 1.18+) An interface implemented by all comparable types. Used as a type constraint in generic functions and types.",
243
+ "type": "interface",
244
+ "module": "builtin"
245
+ },
246
+ "fmt": {
247
+ "signature": "package fmt",
248
+ "description": "Implements formatted I/O with functions analogous to C's printf and scanf. The format 'verbs' are derived from C's but are simpler.",
249
+ "type": "package",
250
+ "module": "fmt",
251
+ "members": {
252
+ "Println": { "signature": "func Println(a ...any) (n int, err error)", "description": "Formats using default formats, writes to stdout, adds spaces and a newline.", "type": "function" },
253
+ "Printf": { "signature": "func Printf(format string, a ...any) (n int, err error)", "description": "Formats according to a format specifier and writes to stdout.", "type": "function" },
254
+ "Sprintf": { "signature": "func Sprintf(format string, a ...any) string", "description": "Formats according to a format specifier and returns the resulting string.", "type": "function" },
255
+ "Fprintf": { "signature": "func Fprintf(w io.Writer, format string, a ...any) (n int, err error)", "description": "Formats according to a format specifier and writes to w.", "type": "function" },
256
+ "Errorf": { "signature": "func Errorf(format string, a ...any) error", "description": "Formats and returns an error. Use %w to wrap errors.", "type": "function" },
257
+ "Sscanf": { "signature": "func Sscanf(str string, format string, a ...any) (n int, err error)", "description": "Scans the argument string, storing values into successive arguments.", "type": "function" },
258
+ "Stringer": { "signature": "type Stringer interface { String() string }", "description": "Implemented by any value that has a String method, defining the native format for printing.", "type": "interface" }
259
+ }
260
+ },
261
+ "os": {
262
+ "signature": "package os",
263
+ "description": "Provides a platform-independent interface to operating system functionality. The design is Unix-like, although the error handling is Go-like.",
264
+ "type": "package",
265
+ "module": "os",
266
+ "members": {
267
+ "Open": { "signature": "func Open(name string) (*File, error)", "description": "Opens the named file for reading.", "type": "function" },
268
+ "Create": { "signature": "func Create(name string) (*File, error)", "description": "Creates or truncates the named file.", "type": "function" },
269
+ "ReadFile": { "signature": "func ReadFile(name string) ([]byte, error)", "description": "Reads the named file and returns the contents.", "type": "function" },
270
+ "WriteFile": { "signature": "func WriteFile(name string, data []byte, perm FileMode) error", "description": "Writes data to the named file, creating it if necessary.", "type": "function" },
271
+ "Args": { "signature": "var Args []string", "description": "Command-line arguments, starting with the program name.", "type": "variable" },
272
+ "Exit": { "signature": "func Exit(code int)", "description": "Causes the current program to exit with the given status code.", "type": "function" },
273
+ "Getenv": { "signature": "func Getenv(key string) string", "description": "Retrieves the value of the environment variable named by the key.", "type": "function" },
274
+ "Setenv": { "signature": "func Setenv(key, value string) error", "description": "Sets the value of the environment variable named by the key.", "type": "function" },
275
+ "MkdirAll": { "signature": "func MkdirAll(path string, perm FileMode) error", "description": "Creates a directory named path along with any necessary parents.", "type": "function" },
276
+ "Remove": { "signature": "func Remove(name string) error", "description": "Removes the named file or empty directory.", "type": "function" },
277
+ "Stdin": { "signature": "var Stdin *File", "description": "Open file for standard input.", "type": "variable" },
278
+ "Stdout": { "signature": "var Stdout *File", "description": "Open file for standard output.", "type": "variable" },
279
+ "Stderr": { "signature": "var Stderr *File", "description": "Open file for standard error.", "type": "variable" }
280
+ }
281
+ },
282
+ "io": {
283
+ "signature": "package io",
284
+ "description": "Provides basic interfaces to I/O primitives. Its primary job is to wrap existing implementations of such primitives into shared public interfaces.",
285
+ "type": "package",
286
+ "module": "io",
287
+ "members": {
288
+ "Reader": { "signature": "type Reader interface { Read(p []byte) (n int, err error) }", "description": "The interface that wraps the basic Read method.", "type": "interface" },
289
+ "Writer": { "signature": "type Writer interface { Write(p []byte) (n int, err error) }", "description": "The interface that wraps the basic Write method.", "type": "interface" },
290
+ "ReadCloser": { "signature": "type ReadCloser interface { Reader; Closer }", "description": "Groups the basic Read and Close methods.", "type": "interface" },
291
+ "ReadAll": { "signature": "func ReadAll(r Reader) ([]byte, error)", "description": "Reads from r until error or EOF and returns data.", "type": "function" },
292
+ "Copy": { "signature": "func Copy(dst Writer, src Reader) (written int64, err error)", "description": "Copies from src to dst until EOF.", "type": "function" },
293
+ "NopCloser": { "signature": "func NopCloser(r Reader) ReadCloser", "description": "Returns a ReadCloser with a no-op Close method wrapping the Reader.", "type": "function" },
294
+ "EOF": { "signature": "var EOF = errors.New(\"EOF\")", "description": "The error returned by Read when no more input is available.", "type": "variable" }
295
+ }
296
+ },
297
+ "strings": {
298
+ "signature": "package strings",
299
+ "description": "Implements simple functions to manipulate UTF-8 encoded strings.",
300
+ "type": "package",
301
+ "module": "strings",
302
+ "members": {
303
+ "Contains": { "signature": "func Contains(s, substr string) bool", "description": "Reports whether substr is within s.", "type": "function" },
304
+ "HasPrefix": { "signature": "func HasPrefix(s, prefix string) bool", "description": "Reports whether the string s begins with prefix.", "type": "function" },
305
+ "HasSuffix": { "signature": "func HasSuffix(s, suffix string) bool", "description": "Reports whether the string s ends with suffix.", "type": "function" },
306
+ "Split": { "signature": "func Split(s, sep string) []string", "description": "Slices s into substrings separated by sep.", "type": "function" },
307
+ "Join": { "signature": "func Join(elems []string, sep string) string", "description": "Concatenates string slice elements with a separator.", "type": "function" },
308
+ "TrimSpace": { "signature": "func TrimSpace(s string) string", "description": "Returns a string with all leading and trailing white space removed.", "type": "function" },
309
+ "Replace": { "signature": "func Replace(s, old, new string, n int) string", "description": "Returns a copy of s with the first n non-overlapping instances of old replaced by new.", "type": "function" },
310
+ "ReplaceAll": { "signature": "func ReplaceAll(s, old, new string) string", "description": "Returns a copy of s with all non-overlapping instances of old replaced by new.", "type": "function" },
311
+ "ToUpper": { "signature": "func ToUpper(s string) string", "description": "Returns a copy of s with all Unicode letters mapped to their upper case.", "type": "function" },
312
+ "ToLower": { "signature": "func ToLower(s string) string", "description": "Returns a copy of s with all Unicode letters mapped to their lower case.", "type": "function" },
313
+ "Builder": { "signature": "type Builder struct { ... }", "description": "A Builder is used to efficiently build a string using Write methods.", "type": "struct" },
314
+ "NewReader": { "signature": "func NewReader(s string) *Reader", "description": "Returns a new Reader reading from s.", "type": "function" }
315
+ }
316
+ },
317
+ "strconv": {
318
+ "signature": "package strconv",
319
+ "description": "Implements conversions to and from string representations of basic data types.",
320
+ "type": "package",
321
+ "module": "strconv",
322
+ "members": {
323
+ "Atoi": { "signature": "func Atoi(s string) (int, error)", "description": "Parses a string as a decimal integer.", "type": "function" },
324
+ "Itoa": { "signature": "func Itoa(i int) string", "description": "Returns the string representation of the integer i.", "type": "function" },
325
+ "FormatFloat": { "signature": "func FormatFloat(f float64, fmt byte, prec, bitSize int) string", "description": "Converts the floating-point number f to a string.", "type": "function" },
326
+ "ParseInt": { "signature": "func ParseInt(s string, base int, bitSize int) (int64, error)", "description": "Interprets a string s in the given base and bit size.", "type": "function" },
327
+ "ParseFloat": { "signature": "func ParseFloat(s string, bitSize int) (float64, error)", "description": "Converts the string s to a floating-point number.", "type": "function" },
328
+ "FormatInt": { "signature": "func FormatInt(i int64, base int) string", "description": "Returns the string representation of i in the given base.", "type": "function" },
329
+ "ParseBool": { "signature": "func ParseBool(str string) (bool, error)", "description": "Returns the boolean value represented by the string.", "type": "function" }
330
+ }
331
+ },
332
+ "encoding/json": {
333
+ "signature": "package json",
334
+ "description": "Implements encoding and decoding of JSON as defined in RFC 7159.",
335
+ "type": "package",
336
+ "module": "encoding/json",
337
+ "members": {
338
+ "Marshal": { "signature": "func Marshal(v any) ([]byte, error)", "description": "Returns the JSON encoding of v.", "type": "function" },
339
+ "MarshalIndent": { "signature": "func MarshalIndent(v any, prefix, indent string) ([]byte, error)", "description": "Like Marshal but with indentation for readability.", "type": "function" },
340
+ "Unmarshal": { "signature": "func Unmarshal(data []byte, v any) error", "description": "Parses the JSON-encoded data and stores the result in v.", "type": "function" },
341
+ "NewEncoder": { "signature": "func NewEncoder(w io.Writer) *Encoder", "description": "Returns a new encoder that writes to w.", "type": "function" },
342
+ "NewDecoder": { "signature": "func NewDecoder(r io.Reader) *Decoder", "description": "Returns a new decoder that reads from r.", "type": "function" },
343
+ "RawMessage": { "signature": "type RawMessage []byte", "description": "A raw encoded JSON value. Can delay JSON decoding or precompute a JSON encoding.", "type": "type" },
344
+ "Valid": { "signature": "func Valid(data []byte) bool", "description": "Reports whether data is a valid JSON encoding.", "type": "function" }
345
+ }
346
+ },
347
+ "net/http": {
348
+ "signature": "package http",
349
+ "description": "Provides HTTP client and server implementations.",
350
+ "type": "package",
351
+ "module": "net/http",
352
+ "members": {
353
+ "ListenAndServe": { "signature": "func ListenAndServe(addr string, handler Handler) error", "description": "Listens on addr and serves requests using handler.", "type": "function" },
354
+ "HandleFunc": { "signature": "func HandleFunc(pattern string, handler func(ResponseWriter, *Request))", "description": "Registers the handler function for the given pattern.", "type": "function" },
355
+ "Get": { "signature": "func Get(url string) (*Response, error)", "description": "Issues a GET to the specified URL.", "type": "function" },
356
+ "Post": { "signature": "func Post(url, contentType string, body io.Reader) (*Response, error)", "description": "Issues a POST to the specified URL.", "type": "function" },
357
+ "NewRequest": { "signature": "func NewRequest(method, url string, body io.Reader) (*Request, error)", "description": "Returns a new Request given a method, URL, and optional body.", "type": "function" },
358
+ "NewServeMux": { "signature": "func NewServeMux() *ServeMux", "description": "Allocates and returns a new ServeMux.", "type": "function" },
359
+ "Handler": { "signature": "type Handler interface { ServeHTTP(ResponseWriter, *Request) }", "description": "Responds to an HTTP request.", "type": "interface" },
360
+ "ResponseWriter": { "signature": "type ResponseWriter interface { Header() Header; Write([]byte) (int, error); WriteHeader(statusCode int) }", "description": "Interface used by HTTP handler to construct an HTTP response.", "type": "interface" },
361
+ "Request": { "signature": "type Request struct { Method string; URL *url.URL; Header Header; Body io.ReadCloser; ... }", "description": "Represents an HTTP request received by a server or to be sent by a client.", "type": "struct" },
362
+ "StatusOK": { "signature": "const StatusOK = 200", "description": "HTTP 200 OK status code.", "type": "constant" },
363
+ "StatusNotFound": { "signature": "const StatusNotFound = 404", "description": "HTTP 404 Not Found status code.", "type": "constant" },
364
+ "StatusInternalServerError": { "signature": "const StatusInternalServerError = 500", "description": "HTTP 500 Internal Server Error status code.", "type": "constant" }
365
+ }
366
+ },
367
+ "context": {
368
+ "signature": "package context",
369
+ "description": "Defines the Context type, which carries deadlines, cancellation signals, and other request-scoped values across API boundaries and between processes.",
370
+ "type": "package",
371
+ "module": "context",
372
+ "members": {
373
+ "Context": { "signature": "type Context interface { Deadline() (time.Time, bool); Done() <-chan struct{}; Err() error; Value(key any) any }", "description": "Carries a deadline, cancellation signal, and request-scoped values across API boundaries.", "type": "interface" },
374
+ "Background": { "signature": "func Background() Context", "description": "Returns a non-nil, empty Context. Never canceled, no values, no deadline.", "type": "function" },
375
+ "TODO": { "signature": "func TODO() Context", "description": "Returns a non-nil, empty Context for when it's unclear which Context to use.", "type": "function" },
376
+ "WithCancel": { "signature": "func WithCancel(parent Context) (ctx Context, cancel CancelFunc)", "description": "Returns a copy of parent with a new Done channel.", "type": "function" },
377
+ "WithTimeout": { "signature": "func WithTimeout(parent Context, timeout time.Duration) (Context, CancelFunc)", "description": "Returns WithDeadline(parent, time.Now().Add(timeout)).", "type": "function" },
378
+ "WithDeadline": { "signature": "func WithDeadline(parent Context, d time.Time) (Context, CancelFunc)", "description": "Returns a copy of parent with deadline adjusted to be no later than d.", "type": "function" },
379
+ "WithValue": { "signature": "func WithValue(parent Context, key, val any) Context", "description": "Returns a copy of parent with key associated with val.", "type": "function" },
380
+ "CancelFunc": { "signature": "type CancelFunc func()", "description": "Tells an operation to abandon its work. Does not wait for the work to stop.", "type": "type" }
381
+ }
382
+ },
383
+ "sync": {
384
+ "signature": "package sync",
385
+ "description": "Provides basic synchronization primitives such as mutual exclusion locks. Other than Once and WaitGroup, most are intended for use by low-level library routines.",
386
+ "type": "package",
387
+ "module": "sync",
388
+ "members": {
389
+ "Mutex": { "signature": "type Mutex struct { ... }", "description": "A mutual exclusion lock. Zero value is an unlocked mutex.", "type": "struct" },
390
+ "RWMutex": { "signature": "type RWMutex struct { ... }", "description": "A reader/writer mutual exclusion lock. Multiple readers or one writer.", "type": "struct" },
391
+ "WaitGroup": { "signature": "type WaitGroup struct { ... }", "description": "Waits for a collection of goroutines to finish. Call Add, Done, Wait.", "type": "struct" },
392
+ "Once": { "signature": "type Once struct { ... }", "description": "An object that will perform exactly one action. Call Do(f).", "type": "struct" },
393
+ "Map": { "signature": "type Map struct { ... }", "description": "A concurrent-safe map. Methods: Store, Load, Delete, Range.", "type": "struct" },
394
+ "Pool": { "signature": "type Pool struct { New func() any }", "description": "A pool of temporary objects that may be individually saved and retrieved.", "type": "struct" }
395
+ }
396
+ },
397
+ "errors": {
398
+ "signature": "package errors",
399
+ "description": "Implements functions to manipulate errors. The New function creates errors whose only content is a text message. The Is, As, and Unwrap functions work on errors that may wrap other errors.",
400
+ "type": "package",
401
+ "module": "errors",
402
+ "members": {
403
+ "New": { "signature": "func New(text string) error", "description": "Returns an error that formats as the given text.", "type": "function" },
404
+ "Is": { "signature": "func Is(err, target error) bool", "description": "Reports whether any error in err's tree matches target.", "type": "function" },
405
+ "As": { "signature": "func As(err error, target any) bool", "description": "Finds the first error in err's tree that matches target and sets target.", "type": "function" },
406
+ "Unwrap": { "signature": "func Unwrap(err error) error", "description": "Returns the result of calling Unwrap on err.", "type": "function" },
407
+ "Join": { "signature": "func Join(errs ...error) error", "description": "(Go 1.20+) Returns an error that wraps the given errors.", "type": "function" }
408
+ }
409
+ },
410
+ "time": {
411
+ "signature": "package time",
412
+ "description": "Provides functionality for measuring and displaying time. The calendrical calculations always assume a Gregorian calendar, with no leap seconds.",
413
+ "type": "package",
414
+ "module": "time",
415
+ "members": {
416
+ "Now": { "signature": "func Now() Time", "description": "Returns the current local time.", "type": "function" },
417
+ "Since": { "signature": "func Since(t Time) Duration", "description": "Returns the time elapsed since t.", "type": "function" },
418
+ "Until": { "signature": "func Until(t Time) Duration", "description": "Returns the duration until t.", "type": "function" },
419
+ "Sleep": { "signature": "func Sleep(d Duration)", "description": "Pauses the current goroutine for at least the duration d.", "type": "function" },
420
+ "NewTicker": { "signature": "func NewTicker(d Duration) *Ticker", "description": "Returns a new Ticker that sends the time on its channel at each tick.", "type": "function" },
421
+ "After": { "signature": "func After(d Duration) <-chan Time", "description": "Waits for duration then sends current time on returned channel.", "type": "function" },
422
+ "Parse": { "signature": "func Parse(layout, value string) (Time, error)", "description": "Parses a formatted string and returns the time value.", "type": "function" },
423
+ "Duration": { "signature": "type Duration int64", "description": "Represents elapsed time in nanoseconds between two instants.", "type": "type" },
424
+ "Time": { "signature": "type Time struct { ... }", "description": "Represents an instant in time with nanosecond precision.", "type": "struct" },
425
+ "Second": { "signature": "const Second Duration = 1000000000", "description": "One second duration constant.", "type": "constant" },
426
+ "Minute": { "signature": "const Minute Duration = 60 * Second", "description": "One minute duration constant.", "type": "constant" },
427
+ "Hour": { "signature": "const Hour Duration = 60 * Minute", "description": "One hour duration constant.", "type": "constant" },
428
+ "Millisecond": { "signature": "const Millisecond Duration = 1000000", "description": "One millisecond duration constant.", "type": "constant" },
429
+ "RFC3339": { "signature": "const RFC3339 = \"2006-01-02T15:04:05Z07:00\"", "description": "RFC 3339 time format layout.", "type": "constant" }
430
+ }
431
+ },
432
+ "sort": {
433
+ "signature": "package sort",
434
+ "description": "Provides primitives for sorting slices and user-defined collections.",
435
+ "type": "package",
436
+ "module": "sort",
437
+ "members": {
438
+ "Slice": { "signature": "func Slice(x any, less func(i, j int) bool)", "description": "Sorts the slice x using the provided less function.", "type": "function" },
439
+ "SliceStable": { "signature": "func SliceStable(x any, less func(i, j int) bool)", "description": "Sorts the slice x keeping equal elements in their original order.", "type": "function" },
440
+ "Search": { "signature": "func Search(n int, f func(int) bool) int", "description": "Uses binary search to find the smallest index i in [0, n) at which f(i) is true.", "type": "function" },
441
+ "Ints": { "signature": "func Ints(x []int)", "description": "Sorts a slice of ints in increasing order.", "type": "function" },
442
+ "Strings": { "signature": "func Strings(x []string)", "description": "Sorts a slice of strings in increasing order.", "type": "function" }
443
+ }
444
+ },
445
+ "slices": {
446
+ "signature": "package slices",
447
+ "description": "(Go 1.21+) Defines various functions useful with slices of any type. Unless otherwise specified, these functions all apply to the elements of a slice at index 0 <= i < len(s).",
448
+ "type": "package",
449
+ "module": "slices",
450
+ "members": {
451
+ "Sort": { "signature": "func Sort[S ~[]E, E cmp.Ordered](x S)", "description": "Sorts a slice of any ordered type in ascending order.", "type": "function" },
452
+ "SortFunc": { "signature": "func SortFunc[S ~[]E, E any](x S, cmp func(a, b E) int)", "description": "Sorts the slice x using the provided comparison function.", "type": "function" },
453
+ "SortStableFunc": { "signature": "func SortStableFunc[S ~[]E, E any](x S, cmp func(a, b E) int)", "description": "Sorts the slice x keeping equal elements in original order.", "type": "function" },
454
+ "Contains": { "signature": "func Contains[S ~[]E, E comparable](s S, v E) bool", "description": "Reports whether v is present in s.", "type": "function" },
455
+ "Index": { "signature": "func Index[S ~[]E, E comparable](s S, v E) int", "description": "Returns the index of the first occurrence of v, or -1.", "type": "function" },
456
+ "Compact": { "signature": "func Compact[S ~[]E, E comparable](s S) S", "description": "Replaces consecutive runs of equal elements with a single copy.", "type": "function" },
457
+ "Reverse": { "signature": "func Reverse[S ~[]E, E any](s S)", "description": "Reverses the elements of the slice in place.", "type": "function" },
458
+ "Min": { "signature": "func Min[S ~[]E, E cmp.Ordered](x S) E", "description": "Returns the minimal value in x. Panics if x is empty.", "type": "function" },
459
+ "Max": { "signature": "func Max[S ~[]E, E cmp.Ordered](x S) E", "description": "Returns the maximal value in x. Panics if x is empty.", "type": "function" }
460
+ }
461
+ },
462
+ "maps": {
463
+ "signature": "package maps",
464
+ "description": "(Go 1.21+) Defines various functions useful with maps of any type.",
465
+ "type": "package",
466
+ "module": "maps",
467
+ "members": {
468
+ "Keys": { "signature": "func Keys[M ~map[K]V, K comparable, V any](m M) []K", "description": "Returns the keys of the map m in indeterminate order.", "type": "function" },
469
+ "Values": { "signature": "func Values[M ~map[K]V, K comparable, V any](m M) []V", "description": "Returns the values of the map m in indeterminate order.", "type": "function" },
470
+ "Clone": { "signature": "func Clone[M ~map[K]V, K comparable, V any](m M) M", "description": "Returns a shallow copy of m.", "type": "function" },
471
+ "Copy": { "signature": "func Copy[M1 ~map[K]V, M2 ~map[K]V, K comparable, V any](dst M1, src M2)", "description": "Copies all key/value pairs from src into dst.", "type": "function" },
472
+ "DeleteFunc": { "signature": "func DeleteFunc[M ~map[K]V, K comparable, V any](m M, del func(K, V) bool)", "description": "Deletes entries from m for which del returns true.", "type": "function" },
473
+ "Equal": { "signature": "func Equal[M1 ~map[K]V, M2 ~map[K]V, K comparable, V comparable](m1 M1, m2 M2) bool", "description": "Reports whether two maps contain the same key/value pairs.", "type": "function" }
474
+ }
475
+ },
476
+ "log/slog": {
477
+ "signature": "package slog",
478
+ "description": "(Go 1.21+) Provides structured logging, with a Logger type that produces log records containing a message, a severity level, and various other attributes.",
479
+ "type": "package",
480
+ "module": "log/slog",
481
+ "members": {
482
+ "Info": { "signature": "func Info(msg string, args ...any)", "description": "Logs at LevelInfo on the default logger.", "type": "function" },
483
+ "Error": { "signature": "func Error(msg string, args ...any)", "description": "Logs at LevelError on the default logger.", "type": "function" },
484
+ "Debug": { "signature": "func Debug(msg string, args ...any)", "description": "Logs at LevelDebug on the default logger.", "type": "function" },
485
+ "Warn": { "signature": "func Warn(msg string, args ...any)", "description": "Logs at LevelWarn on the default logger.", "type": "function" },
486
+ "With": { "signature": "func With(args ...any) *Logger", "description": "Returns a Logger that includes given attributes in each output.", "type": "function" },
487
+ "New": { "signature": "func New(h Handler) *Logger", "description": "Creates a Logger that writes to h.", "type": "function" },
488
+ "NewTextHandler": { "signature": "func NewTextHandler(w io.Writer, opts *HandlerOptions) *TextHandler", "description": "Creates a TextHandler that writes to w.", "type": "function" },
489
+ "NewJSONHandler": { "signature": "func NewJSONHandler(w io.Writer, opts *HandlerOptions) *JSONHandler", "description": "Creates a JSONHandler that writes to w.", "type": "function" },
490
+ "SetDefault": { "signature": "func SetDefault(l *Logger)", "description": "Sets the default Logger.", "type": "function" }
491
+ }
492
+ },
493
+ "path/filepath": {
494
+ "signature": "package filepath",
495
+ "description": "Implements utility routines for manipulating filename paths in a way compatible with the target operating system-defined file paths.",
496
+ "type": "package",
497
+ "module": "path/filepath",
498
+ "members": {
499
+ "Join": { "signature": "func Join(elem ...string) string", "description": "Joins path elements into a single path with OS separator.", "type": "function" },
500
+ "Dir": { "signature": "func Dir(path string) string", "description": "Returns all but the last element of path.", "type": "function" },
501
+ "Base": { "signature": "func Base(path string) string", "description": "Returns the last element of path.", "type": "function" },
502
+ "Ext": { "signature": "func Ext(path string) string", "description": "Returns the file name extension.", "type": "function" },
503
+ "Walk": { "signature": "func Walk(root string, fn WalkFunc) error", "description": "Walks the file tree rooted at root, calling fn for each file or directory.", "type": "function" },
504
+ "Glob": { "signature": "func Glob(pattern string) (matches []string, err error)", "description": "Returns the names of all files matching the pattern.", "type": "function" },
505
+ "Abs": { "signature": "func Abs(path string) (string, error)", "description": "Returns the absolute representation of path.", "type": "function" },
506
+ "Rel": { "signature": "func Rel(basepath, targpath string) (string, error)", "description": "Returns a relative path.", "type": "function" }
507
+ }
508
+ },
509
+ "regexp": {
510
+ "signature": "package regexp",
511
+ "description": "Implements regular expression search. The syntax accepted is the same general syntax used by Perl, Python, and other languages (RE2 syntax).",
512
+ "type": "package",
513
+ "module": "regexp",
514
+ "members": {
515
+ "Compile": { "signature": "func Compile(expr string) (*Regexp, error)", "description": "Parses a regular expression and returns a Regexp object.", "type": "function" },
516
+ "MustCompile": { "signature": "func MustCompile(str string) *Regexp", "description": "Like Compile but panics if the expression cannot be parsed.", "type": "function" },
517
+ "MatchString": { "signature": "func MatchString(pattern string, s string) (matched bool, err error)", "description": "Reports whether the string s contains any match of the pattern.", "type": "function" }
518
+ }
519
+ },
520
+ "log": {
521
+ "signature": "package log",
522
+ "description": "Implements a simple logging package. It defines a type, Logger, with methods for formatting output.",
523
+ "type": "package",
524
+ "module": "log",
525
+ "members": {
526
+ "Println": { "signature": "func Println(v ...any)", "description": "Calls Output to print to the standard logger with timestamp.", "type": "function" },
527
+ "Printf": { "signature": "func Printf(format string, v ...any)", "description": "Calls fmt.Sprintf and prints to the standard logger.", "type": "function" },
528
+ "Fatal": { "signature": "func Fatal(v ...any)", "description": "Equivalent to Println() followed by os.Exit(1).", "type": "function" },
529
+ "Fatalf": { "signature": "func Fatalf(format string, v ...any)", "description": "Equivalent to Printf() followed by os.Exit(1).", "type": "function" },
530
+ "SetOutput": { "signature": "func SetOutput(w io.Writer)", "description": "Sets the output destination for the standard logger.", "type": "function" },
531
+ "New": { "signature": "func New(out io.Writer, prefix string, flag int) *Logger", "description": "Creates a new Logger.", "type": "function" }
532
+ }
533
+ },
534
+ "bytes": {
535
+ "signature": "package bytes",
536
+ "description": "Implements functions for the manipulation of byte slices. Analogous to the facilities of the strings package.",
537
+ "type": "package",
538
+ "module": "bytes",
539
+ "members": {
540
+ "Buffer": { "signature": "type Buffer struct { ... }", "description": "A variable-sized buffer of bytes with Read and Write methods.", "type": "struct" },
541
+ "NewReader": { "signature": "func NewReader(b []byte) *Reader", "description": "Returns a new Reader reading from b.", "type": "function" },
542
+ "Contains": { "signature": "func Contains(b, subslice []byte) bool", "description": "Reports whether subslice is within b.", "type": "function" },
543
+ "Equal": { "signature": "func Equal(a, b []byte) bool", "description": "Reports whether a and b are the same length and contain the same bytes.", "type": "function" },
544
+ "Join": { "signature": "func Join(s [][]byte, sep []byte) []byte", "description": "Concatenates byte slices with separator.", "type": "function" },
545
+ "Split": { "signature": "func Split(s, sep []byte) [][]byte", "description": "Slices s into subslices separated by sep.", "type": "function" }
546
+ }
547
+ },
548
+ "bufio": {
549
+ "signature": "package bufio",
550
+ "description": "Implements buffered I/O. It wraps an io.Reader or io.Writer object, creating another object that also implements the interface but provides buffering and some help for textual I/O.",
551
+ "type": "package",
552
+ "module": "bufio",
553
+ "members": {
554
+ "NewReader": { "signature": "func NewReader(rd io.Reader) *Reader", "description": "Returns a new Reader whose buffer has the default size.", "type": "function" },
555
+ "NewScanner": { "signature": "func NewScanner(r io.Reader) *Scanner", "description": "Returns a new Scanner to read from r.", "type": "function" },
556
+ "NewWriter": { "signature": "func NewWriter(w io.Writer) *Writer", "description": "Returns a new Writer whose buffer has the default size.", "type": "function" },
557
+ "Scanner": { "signature": "type Scanner struct { ... }", "description": "Provides a convenient interface for reading data such as a file of newline-delimited lines.", "type": "struct" }
558
+ }
559
+ }
560
+ }
561
+ }