mirror of
				https://github.com/superseriousbusiness/gotosocial.git
				synced 2025-10-31 07:42:26 -05:00 
			
		
		
		
	[chore]: Bump github.com/spf13/viper from 1.14.0 to 1.15.0 (#1375)
Bumps [github.com/spf13/viper](https://github.com/spf13/viper) from 1.14.0 to 1.15.0. - [Release notes](https://github.com/spf13/viper/releases) - [Commits](https://github.com/spf13/viper/compare/v1.14.0...v1.15.0) --- updated-dependencies: - dependency-name: github.com/spf13/viper dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
		
					parent
					
						
							
								3e4dc6bff3
							
						
					
				
			
			
				commit
				
					
						98a09b5633
					
				
			
		
					 53 changed files with 218 additions and 6032 deletions
				
			
		
							
								
								
									
										29
									
								
								vendor/github.com/spf13/viper/internal/encoding/toml/codec.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										29
									
								
								vendor/github.com/spf13/viper/internal/encoding/toml/codec.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,39 +1,16 @@ | |||
| //go:build viper_toml1 | ||||
| // +build viper_toml1 | ||||
| 
 | ||||
| package toml | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/pelletier/go-toml" | ||||
| 	"github.com/pelletier/go-toml/v2" | ||||
| ) | ||||
| 
 | ||||
| // Codec implements the encoding.Encoder and encoding.Decoder interfaces for TOML encoding. | ||||
| type Codec struct{} | ||||
| 
 | ||||
| func (Codec) Encode(v map[string]interface{}) ([]byte, error) { | ||||
| 	t, err := toml.TreeFromMap(v) | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	s, err := t.ToTomlString() | ||||
| 	if err != nil { | ||||
| 		return nil, err | ||||
| 	} | ||||
| 
 | ||||
| 	return []byte(s), nil | ||||
| 	return toml.Marshal(v) | ||||
| } | ||||
| 
 | ||||
| func (Codec) Decode(b []byte, v map[string]interface{}) error { | ||||
| 	tree, err := toml.LoadBytes(b) | ||||
| 	if err != nil { | ||||
| 		return err | ||||
| 	} | ||||
| 
 | ||||
| 	tmap := tree.ToMap() | ||||
| 	for key, value := range tmap { | ||||
| 		v[key] = value | ||||
| 	} | ||||
| 
 | ||||
| 	return nil | ||||
| 	return toml.Unmarshal(b, &v) | ||||
| } | ||||
|  |  | |||
							
								
								
									
										19
									
								
								vendor/github.com/spf13/viper/internal/encoding/toml/codec2.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										19
									
								
								vendor/github.com/spf13/viper/internal/encoding/toml/codec2.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,19 +0,0 @@ | |||
| //go:build !viper_toml1 | ||||
| // +build !viper_toml1 | ||||
| 
 | ||||
| package toml | ||||
| 
 | ||||
| import ( | ||||
| 	"github.com/pelletier/go-toml/v2" | ||||
| ) | ||||
| 
 | ||||
| // Codec implements the encoding.Encoder and encoding.Decoder interfaces for TOML encoding. | ||||
| type Codec struct{} | ||||
| 
 | ||||
| func (Codec) Encode(v map[string]interface{}) ([]byte, error) { | ||||
| 	return toml.Marshal(v) | ||||
| } | ||||
| 
 | ||||
| func (Codec) Decode(b []byte, v map[string]interface{}) error { | ||||
| 	return toml.Unmarshal(b, &v) | ||||
| } | ||||
							
								
								
									
										2
									
								
								vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								vendor/github.com/spf13/viper/internal/encoding/yaml/codec.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,6 +1,6 @@ | |||
| package yaml | ||||
| 
 | ||||
| // import "gopkg.in/yaml.v2" | ||||
| import "gopkg.in/yaml.v3" | ||||
| 
 | ||||
| // Codec implements the encoding.Encoder and encoding.Decoder interfaces for YAML encoding. | ||||
| type Codec struct{} | ||||
|  |  | |||
							
								
								
									
										14
									
								
								vendor/github.com/spf13/viper/internal/encoding/yaml/yaml2.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/github.com/spf13/viper/internal/encoding/yaml/yaml2.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,14 +0,0 @@ | |||
| //go:build viper_yaml2 | ||||
| // +build viper_yaml2 | ||||
| 
 | ||||
| package yaml | ||||
| 
 | ||||
| import yamlv2 "gopkg.in/yaml.v2" | ||||
| 
 | ||||
| var yaml = struct { | ||||
| 	Marshal   func(in interface{}) (out []byte, err error) | ||||
| 	Unmarshal func(in []byte, out interface{}) (err error) | ||||
| }{ | ||||
| 	Marshal:   yamlv2.Marshal, | ||||
| 	Unmarshal: yamlv2.Unmarshal, | ||||
| } | ||||
							
								
								
									
										14
									
								
								vendor/github.com/spf13/viper/internal/encoding/yaml/yaml3.go
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										14
									
								
								vendor/github.com/spf13/viper/internal/encoding/yaml/yaml3.go
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,14 +0,0 @@ | |||
| //go:build !viper_yaml2 | ||||
| // +build !viper_yaml2 | ||||
| 
 | ||||
| package yaml | ||||
| 
 | ||||
| import yamlv3 "gopkg.in/yaml.v3" | ||||
| 
 | ||||
| var yaml = struct { | ||||
| 	Marshal   func(in interface{}) (out []byte, err error) | ||||
| 	Unmarshal func(in []byte, out interface{}) (err error) | ||||
| }{ | ||||
| 	Marshal:   yamlv3.Marshal, | ||||
| 	Unmarshal: yamlv3.Unmarshal, | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue