Skip to content

net/url: url.Parse() dont check error #54689

@michail-vestnik

Description

@michail-vestnik

Hi!

Go version tested: 1.18, 1.19

package main

import (
	"fmt"
	"net/url"
)

func main() {
	_, e := url.Parse("Hey Go, are you ok? :-)")
	if e != nil {
		fmt.Println("Yes! I,m check this error!")
	} else {
		fmt.Println("NO! I broken and kill your production, grrrrr")
	}
}

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions