...

Package modx

import "github.com/ory/x/modx"
Overview
Index

Overview ▾

func FindVersion

func FindVersion(gomod []byte, module string) (string, error)

FindVersion returns the version for a module given the contents of a go.mod file.

func MustFindVersion

func MustFindVersion(gomod []byte, module string) string

MustFindVersion returns the version for a module given the contents of a go.mod file or panics.