mirror of https://github.com/knative/docs.git
Format go code (#5223)
Signed-off-by: Knative Automation <automation@knative.team> Signed-off-by: Knative Automation <automation@knative.team>
This commit is contained in:
parent
a3fdf09cf9
commit
8409a16a76
|
@ -2,6 +2,7 @@ package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/cloudevents/sdk-go/v2/event"
|
"github.com/cloudevents/sdk-go/v2/event"
|
||||||
"github.com/cloudevents/sdk-go/v2/extensions"
|
"github.com/cloudevents/sdk-go/v2/extensions"
|
||||||
"github.com/cloudevents/sdk-go/v2/observability"
|
"github.com/cloudevents/sdk-go/v2/observability"
|
||||||
|
|
|
@ -2,6 +2,7 @@ package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/cloudevents/sdk-go/v2/event"
|
"github.com/cloudevents/sdk-go/v2/event"
|
||||||
"github.com/cloudevents/sdk-go/v2/extensions"
|
"github.com/cloudevents/sdk-go/v2/extensions"
|
||||||
"github.com/cloudevents/sdk-go/v2/observability"
|
"github.com/cloudevents/sdk-go/v2/observability"
|
||||||
|
|
|
@ -2,6 +2,7 @@ package client
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/cloudevents/sdk-go/v2/binding"
|
"github.com/cloudevents/sdk-go/v2/binding"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ package json
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/cloudevents/sdk-go/v2/observability"
|
"github.com/cloudevents/sdk-go/v2/observability"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ package text
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/cloudevents/sdk-go/v2/observability"
|
"github.com/cloudevents/sdk-go/v2/observability"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,6 +2,7 @@ package xml
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/cloudevents/sdk-go/v2/observability"
|
"github.com/cloudevents/sdk-go/v2/observability"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -3,11 +3,12 @@ package http
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
"errors"
|
"errors"
|
||||||
"go.uber.org/zap"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/url"
|
"net/url"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/cloudevents/sdk-go/v2/binding"
|
"github.com/cloudevents/sdk-go/v2/binding"
|
||||||
cecontext "github.com/cloudevents/sdk-go/v2/context"
|
cecontext "github.com/cloudevents/sdk-go/v2/context"
|
||||||
"github.com/cloudevents/sdk-go/v2/protocol"
|
"github.com/cloudevents/sdk-go/v2/protocol"
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build js
|
||||||
// +build js
|
// +build js
|
||||||
|
|
||||||
package uuid
|
package uuid
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by a BSD-style
|
// Use of this source code is governed by a BSD-style
|
||||||
// license that can be found in the LICENSE file.
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
//go:build !js
|
||||||
// +build !js
|
// +build !js
|
||||||
|
|
||||||
package uuid
|
package uuid
|
||||||
|
|
1
code-samples/eventing/helloworld/helloworld-go/vendor/github.com/pkg/errors/go113.go
generated
vendored
1
code-samples/eventing/helloworld/helloworld-go/vendor/github.com/pkg/errors/go113.go
generated
vendored
|
@ -1,3 +1,4 @@
|
||||||
|
//go:build go1.13
|
||||||
// +build go1.13
|
// +build go1.13
|
||||||
|
|
||||||
package errors
|
package errors
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build go1.9
|
||||||
// +build go1.9
|
// +build go1.9
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !go1.9
|
||||||
// +build !go1.9
|
// +build !go1.9
|
||||||
|
|
||||||
package tag
|
package tag
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build go1.11
|
||||||
// +build go1.11
|
// +build go1.11
|
||||||
|
|
||||||
package trace
|
package trace
|
||||||
|
|
|
@ -12,6 +12,7 @@
|
||||||
// See the License for the specific language governing permissions and
|
// See the License for the specific language governing permissions and
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
|
//go:build !go1.11
|
||||||
// +build !go1.11
|
// +build !go1.11
|
||||||
|
|
||||||
package trace
|
package trace
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
// THE SOFTWARE.
|
// THE SOFTWARE.
|
||||||
|
|
||||||
// See #682 for more information.
|
// See #682 for more information.
|
||||||
|
//go:build go1.12
|
||||||
// +build go1.12
|
// +build go1.12
|
||||||
|
|
||||||
package zap
|
package zap
|
||||||
|
|
|
@ -19,6 +19,7 @@
|
||||||
// THE SOFTWARE.
|
// THE SOFTWARE.
|
||||||
|
|
||||||
// See #682 for more information.
|
// See #682 for more information.
|
||||||
|
//go:build !go1.12
|
||||||
// +build !go1.12
|
// +build !go1.12
|
||||||
|
|
||||||
package zap
|
package zap
|
||||||
|
|
Loading…
Reference in New Issue