Skip to content

A package should not be able to import itself #1350

@dlsniper

Description

@dlsniper

$GOPATH/src/demo/fol/fol.go

package fol

func Func1() {}

$GOPATH/src/demo/fol/fol_test.go

package fol

import "demo/fol"

func Demo() {
    fol.Func1()
}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions