From 6e27a84dba52e68fe7b75df50190934ab96c1946 Mon Sep 17 00:00:00 2001 From: Shulhan Date: Sun, 21 Aug 2022 02:14:04 +0700 Subject: all: reformat with Go 1.19 gofmt --- example/example.go | 6 ------ 1 file changed, 6 deletions(-) (limited to 'example/example.go') diff --git a/example/example.go b/example/example.go index 6c5bf4a..25c1532 100644 --- a/example/example.go +++ b/example/example.go @@ -1,7 +1,6 @@ // SPDX-FileCopyrightText: 2021 M. Shulhan // SPDX-License-Identifier: GPL-3.0-or-later -// // Package example provide an example how to use the Trunks library from // setting it up to creating targets. // @@ -10,7 +9,6 @@ // $ go run ./internal/cmd/trunks // // It will run a web user interface at http://127.0.0.1:8217 . -// package example import ( @@ -59,9 +57,7 @@ type Example struct { targetExamplePostForm vegeta.Target } -// // New create, initialize, and setup an example service. -// func New() (ex *Example, err error) { env := &trunks.Environment{ ResultsDir: "example/testdata/", @@ -122,9 +118,7 @@ func (ex *Example) Stop() { ex.trunks.Stop() } -// // registerEndpoints register HTTP endpoints for testing. -// func (ex *Example) registerEndpoints() (err error) { err = ex.trunks.Httpd.RegisterEndpoint(&libhttp.Endpoint{ Method: libhttp.RequestMethodGet, -- cgit v1.3