mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-12-16 06:03:02 -06:00
[chore] Update all but bun libraries (#526)
* update all but bun libraries Signed-off-by: kim <grufwub@gmail.com> * remove my personal build script changes Signed-off-by: kim <grufwub@gmail.com>
This commit is contained in:
parent
e06bf9cc9a
commit
b56dae8120
350 changed files with 305366 additions and 5943 deletions
7
vendor/modernc.org/opt/opt.go
generated
vendored
7
vendor/modernc.org/opt/opt.go
generated
vendored
|
|
@ -70,6 +70,7 @@ func (p *Set) Parse(opts []string, handler func(string) error) (err error) {
|
|||
|
||||
for len(opts) != 0 {
|
||||
opt := opts[0]
|
||||
opt0 := opt
|
||||
opts = opts[1:]
|
||||
var arg string
|
||||
out:
|
||||
|
|
@ -90,7 +91,9 @@ func (p *Set) Parse(opts []string, handler func(string) error) (err error) {
|
|||
|
||||
opts = opts[1:]
|
||||
default:
|
||||
if err = cfg.handler(opt[:len(cfg.name)+1], name[len(cfg.name):]); err != nil {
|
||||
opt = opt[:len(cfg.name)+1]
|
||||
val := strings.TrimPrefix(name[len(cfg.name):], "=")
|
||||
if err = cfg.handler(opt, val); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
|
@ -105,7 +108,7 @@ func (p *Set) Parse(opts []string, handler func(string) error) (err error) {
|
|||
}
|
||||
switch cfg := p.cfg[name]; {
|
||||
case cfg == nil:
|
||||
if err = handler(opt); err != nil {
|
||||
if err = handler(opt0); err != nil {
|
||||
return err
|
||||
}
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue