Skip to content

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

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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