Skip to content

Commit

Permalink
发布v0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 19, 2024
1 parent e4bb575 commit d5faa1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions configure/yamlConfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package configure

import (
"fmt"
"gopkg.in/yaml.v3"
"os"

"gopkg.in/yaml.v3"
)

type yamlConfig struct {
Expand Down Expand Up @@ -59,7 +60,7 @@ func (r *yamlConfig) Get(key string) (any, bool) {
func (r *yamlConfig) GetArray(key string) ([]any, bool) {
v, exists := r.data[key]
if exists {
switch arr:=v.(type) {
switch arr := v.(type) {
case []any:
return arr, exists
}
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module github.com/farseer-go/fs

go 1.19

toolchain go1.23.3
toolchain go1.19

require (
github.com/stretchr/testify v1.9.0
Expand Down

0 comments on commit d5faa1b

Please sign in to comment.