import ( "github.com/appc/spec/schema/types" ) func main() { imageManifest := types.ImageManifest{ App: types.App{ Exec: []string{"app", "--run"}, User: "nobody", }, Annotations: map[string]string{ "author": "Alice", "version": "1.0", }, } }
import ( "github.com/appc/spec/schema/types" ) func main() { runtimeConfig := types.RuntimeConfig{ Annotations: map[string]string{ "environment": "production", }, } }This example shows how to create a runtime configuration with annotations for metadata. Overall, the go github.com.appc.spec.schema.types App package is a useful library for working with App Container specifications, providing a wide range of functionality for creating, parsing, and manipulating App Container data structures.