README ¶ learn-chi Test Injector go run main.go http://localhost:3333/inject?name=tamal http://localhost:3333/k8s TODOs Decide how to handle return values Handle Macaron style return values RequestID using https://github.com/oklog/ulid Status / Error Gitea: https://github.com/go-gitea/gitea/blob/v1.14.3/modules/context/api.go#L32-L122 form validation https://github.com/go-playground/form form errors: https://github.com/go-playground/form/blob/master/form_decoder.go#L14-L48 https://github.com/go-playground/validator/blob/master/_examples/simple/main.go validator errors: https://github.com/go-playground/validator/blob/v9/errors.go#L19-L57 k8s Status Error type: https://github.com/kubernetes/apimachinery/blob/v0.21.1/pkg/apis/meta/v1/types.go#L648-L898 Error creators: https://github.com/kubernetes/apimachinery/blob/v0.21.1/pkg/api/errors/errors.go error to APIStatus: https://github.com/kubernetes/apiserver/blob/release-1.21/pkg/endpoints/handlers/responsewriters/status.go Write Error: https://github.com/kubernetes/apiserver/blob/release-1.21/pkg/endpoints/handlers/responsewriters/writers.go#L278-L296 k8s apiserver hadnlers k8s.io/apiserver/pkg/endpoints/installer.go k8s.io/apiserver/pkg/endpoints/groupversion.go k8s.io/apiserver/pkg/endpoints/handlers/create.go Negotaitor https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation https://github.com/jchannon/negotiator k8s k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate.go k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/status.go k8s.io/apiserver/pkg/endpoints/handlers/responsewriters/writers.go Convert using Hub / API Versioning sigs.k8s.io/controller-runtime/pkg/webhook/conversion/conversion.go Expand ▾ Collapse ▴ Documentation ¶ There is no documentation for this package. Source Files ¶ View all Source files main.go Directories ¶ Show internal Expand all Path Synopsis binding chim form form-validator logging reflect-demo status-err ulids Click to show internal directories. Click to hide internal directories.