Skip to content

Commit

Permalink
fix: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Khalid-Nowaf committed Jul 2, 2024
1 parent 63c9ace commit ae7e579
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ func main() {
if _, ipnet, err := net.ParseCIDR(network.cidr); err == nil {

metadata := supernet.NewMetadata(ipnet)
attributes is used to store any additional data about the network
// attributes is used to store any additional data about the network
metadata.Attributes["name"] = network.name
optional, it will be used to resolve conflict
if no priority add. the size of the network e.g /32, will be used as priority
so it is grunted smaller network will be not be over taken by larger network
// optional, it will be used to resolve conflict
// if no priority add. the size of the network e.g /32, will be used as priority
// so it is grunted smaller network will be not be over taken by larger network
metadata.Priority = network.priorities
result has information about the conflict and how it solve it
// result has information about the conflict and how it solve it
insertResult := super.InsertCidr(ipnet, metadata)
fmt.Println(insertResult.String()) see what happened
fmt.Println(insertResult.String()) // see what happened
}
}
// get all networks (it will return conflict free networks)
Expand Down

0 comments on commit ae7e579

Please sign in to comment.