Make NewLogo more flexible

This commit is contained in:
2024-10-17 19:19:22 +02:00
parent 30623fdfe0
commit cb61d90cae
2 changed files with 4 additions and 6 deletions

4
id.go
View File

@@ -11,8 +11,8 @@ type ID struct {
}
// NewID creates a new ID. It returns a *ID.
func NewID(id IRI) *ID {
return &ID{URI: IRI(id)}
func NewID(uri IRI) *ID {
return &ID{URI: IRI(uri)}
}
// Check checks the ID for incompatibilities with RFC4287. It returns an error.