Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Pathfinder
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Go
Utilities
Pathfinder
Compare revisions
v0.5.0 to v0.5.1
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
oss/libraries/go/utilities/pathfinder
Select target project
No results found
v0.5.1
Select Git revision
Branches
master
Tags
v0.2.0
v0.3.0
v0.3.1
v0.4.0
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.6.0
v0.7.0
v0.7.1
v0.7.2
v0.8.0
v0.8.1
v0.8.2
v0.9.0
v0.9.1
v0.9.2
v0.9.3
v0.9.4
v0.9.5
22 results
Swap
Target
oss/libraries/go/utilities/pathfinder
Select target project
oss/libraries/go/utilities/pathfinder
1 result
v0.5.0
Select Git revision
Branches
master
Tags
v0.2.0
v0.3.0
v0.3.1
v0.4.0
v0.5.0
v0.5.1
v0.5.2
v0.5.3
v0.6.0
v0.7.0
v0.7.1
v0.7.2
v0.8.0
v0.8.1
v0.8.2
v0.9.0
v0.9.1
v0.9.2
v0.9.3
v0.9.4
v0.9.5
22 results
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (3)
feat: Support Slice and Arrays
· 10a92db1
Volker Schukai
authored
2 years ago
Verified
10a92db1
Bump version to 0.5.1
· 6778a156
Volker Schukai
authored
2 years ago
Verified
6778a156
Update changelog
· a6716eda
Volker Schukai
authored
2 years ago
Verified
a6716eda
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CHANGELOG.md
+4
-0
4 additions, 0 deletions
CHANGELOG.md
release.json
+1
-1
1 addition, 1 deletion
release.json
set.go
+11
-0
11 additions, 0 deletions
set.go
with
16 additions
and
1 deletion
CHANGELOG.md
View file @
a6716eda
<a
name=
"v0.5.1"
></a>
## [v0.5.1] - 2022-12-23
<a
name=
"v0.5.0"
></a>
## [v0.5.0] - 2022-12-18
...
...
@@ -23,6 +26,7 @@
-
feat takeover from other project
[
v0.5.1
]:
https://gitlab.schukai.com/oss/libraries/go/utilities/pathfinder/compare/v0.5.0...v0.5.1
[
v0.5.0
]:
https://gitlab.schukai.com/oss/libraries/go/utilities/pathfinder/compare/v0.4.0...v0.5.0
[
v0.4.0
]:
https://gitlab.schukai.com/oss/libraries/go/utilities/pathfinder/compare/v0.3.1...v0.4.0
[
v0.3.1
]:
https://gitlab.schukai.com/oss/libraries/go/utilities/pathfinder/compare/v0.3.0...v0.3.1
...
...
This diff is collapsed.
Click to expand it.
release.json
View file @
a6716eda
{
"version"
:
"0.5.
0
"
}
{
"version"
:
"0.5.
1
"
}
This diff is collapsed.
Click to expand it.
set.go
View file @
a6716eda
...
...
@@ -134,6 +134,17 @@ func SetValue[D any](obj D, keyWithDots string, newValue any) error {
v
.
SetFloat
(
s
)
}
case
reflect
.
Slice
,
reflect
.
Array
:
if
newValueKind
==
reflect
.
Ptr
{
newValue
=
reflect
.
ValueOf
(
newValue
)
.
Elem
()
.
Interface
()
v
.
Set
(
reflect
.
ValueOf
(
newValue
))
}
else
if
newValueKind
==
reflect
.
Slice
{
v
.
Set
(
reflect
.
ValueOf
(
newValue
))
}
else
{
return
newUnsupportedTypePathError
(
keyWithDots
,
v
.
Type
())
}
default
:
return
newInvalidTypeForPathError
(
keyWithDots
,
v
.
Type
()
.
String
(),
newValueKind
.
String
())
}
...
...
This diff is collapsed.
Click to expand it.