mirror of
https://github.com/Pungyeon/clean-go-article.git
synced 2024-11-23 06:04:05 +00:00
commit
f18fd5f884
|
@ -311,7 +311,7 @@ func getReference(extension string) (string, bool) {
|
||||||
if !ok {
|
if !ok {
|
||||||
return EmptyItem, false
|
return EmptyItem, false
|
||||||
}
|
}
|
||||||
return refIface.(string)
|
return refIface.(string), true
|
||||||
}
|
}
|
||||||
|
|
||||||
func getItemByReference(reference string) (Item, error) {
|
func getItemByReference(reference string) (Item, error) {
|
||||||
|
@ -503,6 +503,7 @@ func getVal(num int) (string, error) {
|
||||||
if val == "" {
|
if val == "" {
|
||||||
return NewValue() // pretend function
|
return NewValue() // pretend function
|
||||||
}
|
}
|
||||||
|
return val, err
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
Loading…
Reference in a new issue