stdlib: added package doc strings

Signed-off-by: Sam Alba <sam.alba@gmail.com>
This commit is contained in:
Sam Alba
2021-06-15 10:46:56 +02:00
parent 36b287c9d5
commit 9281967e16
23 changed files with 66 additions and 24 deletions

View File

@@ -1,3 +1,4 @@
// Go build operations
package go
import (
@@ -10,8 +11,11 @@ import (
// A standalone go environment
#Container: {
// Go version to use
version: *"1.16" | string @dagger(input)
// Source code
source: dagger.#Artifact @dagger(input)
os.#Container & {
@@ -36,6 +40,7 @@ import (
}
}
// Re-usable component for the Go compiler
#Go: {
// Go version to use
version: *"1.16" | string @dagger(input)
@@ -70,6 +75,7 @@ import (
]
}
// Go application builder
#Build: {
// Go version to use
version: *#Go.version | string @dagger(input)
@@ -95,6 +101,7 @@ import (
// Specify the targeted binary name
output: string @dagger(output)
// Environment variables
env: {
[string]: string @dagger(input)
}