mirror of
https://github.com/mudler/luet.git
synced 2025-09-21 03:00:57 +00:00
Use goreleaser to build and release (#244)
Instead of using gox on one side and an action to release, we can merge them together with goreleaser which will build for extra targets (arm, mips if needed in the future) and it also takes care of creating checksums, a source archive, and a changelog and creating a release with all the artifacts. All binaries should respect the old naming convention, so any scripts out there should still work. Signed-off-by: Itxaka <igarcia@suse.com>
This commit is contained in:
5
vendor/github.com/huandu/xstrings/manipulate.go
generated
vendored
5
vendor/github.com/huandu/xstrings/manipulate.go
generated
vendored
@@ -4,7 +4,6 @@
|
||||
package xstrings
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"strings"
|
||||
"unicode/utf8"
|
||||
)
|
||||
@@ -131,7 +130,7 @@ func Insert(dst, src string, index int) string {
|
||||
// Scrub scrubs invalid utf8 bytes with repl string.
|
||||
// Adjacent invalid bytes are replaced only once.
|
||||
func Scrub(str, repl string) string {
|
||||
var buf *bytes.Buffer
|
||||
var buf *stringBuilder
|
||||
var r rune
|
||||
var size, pos int
|
||||
var hasError bool
|
||||
@@ -144,7 +143,7 @@ func Scrub(str, repl string) string {
|
||||
if r == utf8.RuneError {
|
||||
if !hasError {
|
||||
if buf == nil {
|
||||
buf = &bytes.Buffer{}
|
||||
buf = &stringBuilder{}
|
||||
}
|
||||
|
||||
buf.WriteString(origin[:pos])
|
||||
|
Reference in New Issue
Block a user