Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 2fba555

Browse files
[skip-changelog] Replace some function under algorithms pkg with go.bug.st/f
1 parent bfbfdce commit 2fba555

File tree

18 files changed

+60
-155
lines changed

18 files changed

+60
-155
lines changed

‎.licenses/go/go.bug.st/f.dep.yml‎

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
---
2+
name: go.bug.st/f
3+
version: v0.4.0
4+
type: go
5+
summary: Package f is a golang library implementing some basic algorithms.
6+
homepage: https://godoc.org/go.bug.st/f
7+
license: bsd-3-clause
8+
licenses:
9+
- sources: LICENSE
10+
text: |2+
11+
12+
Copyright (c) 2024, Cristian Maglie.
13+
All rights reserved.
14+
15+
Redistribution and use in source and binary forms, with or without
16+
modification, are permitted provided that the following conditions
17+
are met:
18+
19+
1. Redistributions of source code must retain the above copyright
20+
notice, this list of conditions and the following disclaimer.
21+
22+
2. Redistributions in binary form must reproduce the above copyright
23+
notice, this list of conditions and the following disclaimer in
24+
the documentation and/or other materials provided with the
25+
distribution.
26+
27+
3. Neither the name of the copyright holder nor the names of its
28+
contributors may be used to endorse or promote products derived
29+
from this software without specific prior written permission.
30+
31+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
32+
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
33+
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
34+
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
35+
COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
36+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
37+
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
38+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
39+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
40+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
41+
ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
42+
POSSIBILITY OF SUCH DAMAGE.
43+
44+
notices: []
45+
...

‎commands/service_board_list.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import (
2222

2323
"github.com/arduino/arduino-cli/commands/cmderrors"
2424
"github.com/arduino/arduino-cli/commands/internal/instances"
25-
f "github.com/arduino/arduino-cli/internal/algorithms"
2625
"github.com/arduino/arduino-cli/internal/arduino/discovery/discoverymanager"
2726
"github.com/arduino/arduino-cli/internal/i18n"
2827
"github.com/arduino/arduino-cli/pkg/fqbn"
2928
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
3029
"github.com/sirupsen/logrus"
30+
"go.bug.st/f"
3131
)
3232

3333
// BoardList returns a list of boards found by the loaded discoveries.

‎commands/service_settings.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ import (
2222
"reflect"
2323

2424
"github.com/arduino/arduino-cli/commands/cmderrors"
25-
f "github.com/arduino/arduino-cli/internal/algorithms"
2625
"github.com/arduino/arduino-cli/internal/cli/configuration"
2726
"github.com/arduino/arduino-cli/internal/go-configmap"
2827
rpc "github.com/arduino/arduino-cli/rpc/cc/arduino/cli/commands/v1"
28+
"go.bug.st/f"
2929
"google.golang.org/protobuf/proto"
3030
"gopkg.in/yaml.v3"
3131
)

‎internal/algorithms/slices.go‎

Lines changed: 0 additions & 87 deletions
This file was deleted.

‎internal/algorithms/slices_test.go‎

Lines changed: 0 additions & 53 deletions
This file was deleted.

‎internal/arduino/builder/core.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ import (
2222
"os"
2323
"strings"
2424

25-
f "github.com/arduino/arduino-cli/internal/algorithms"
2625
"github.com/arduino/arduino-cli/internal/arduino/builder/cpp"
2726
"github.com/arduino/arduino-cli/internal/arduino/builder/internal/utils"
2827
"github.com/arduino/arduino-cli/internal/buildcache"
2928
"github.com/arduino/arduino-cli/internal/i18n"
3029
"github.com/arduino/go-paths-helper"
30+
"go.bug.st/f"
3131
)
3232

3333
// buildCore fixdoc

‎internal/arduino/builder/internal/preprocessor/gcc.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ import (
2121
"fmt"
2222
"strings"
2323

24-
f "github.com/arduino/arduino-cli/internal/algorithms"
2524
"github.com/arduino/arduino-cli/internal/arduino/builder/cpp"
2625
"github.com/arduino/arduino-cli/internal/i18n"
2726
"github.com/arduino/go-paths-helper"
2827
"github.com/arduino/go-properties-orderedmap"
28+
"go.bug.st/f"
2929
)
3030

3131
// GCC performs a run of the gcc preprocess (macro/includes expansion). The function outputs the result

‎internal/arduino/builder/internal/utils/utils.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"strings"
2222
"unicode"
2323

24-
f "github.com/arduino/arduino-cli/internal/algorithms"
2524
"github.com/arduino/go-paths-helper"
2625
"github.com/sirupsen/logrus"
26+
"go.bug.st/f"
2727
"golang.org/x/text/runes"
2828
"golang.org/x/text/transform"
2929
"golang.org/x/text/unicode/norm"

‎internal/arduino/builder/libraries.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ import (
2020
"strings"
2121
"time"
2222

23-
f "github.com/arduino/arduino-cli/internal/algorithms"
2423
"github.com/arduino/arduino-cli/internal/arduino/builder/cpp"
2524
"github.com/arduino/arduino-cli/internal/arduino/libraries"
2625
"github.com/arduino/arduino-cli/internal/i18n"
2726
"github.com/arduino/go-paths-helper"
2827
"github.com/arduino/go-properties-orderedmap"
28+
"go.bug.st/f"
2929
)
3030

3131
// nolint

‎internal/arduino/builder/linker.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ package builder
1818
import (
1919
"strings"
2020

21-
f "github.com/arduino/arduino-cli/internal/algorithms"
2221
"github.com/arduino/arduino-cli/internal/i18n"
2322
"github.com/arduino/go-paths-helper"
23+
"go.bug.st/f"
2424
)
2525

2626
// link fixdoc

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /