gorelease

package module
v0.0.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Installation

go get github.com/khachenn/go-release

Usage

Here is an example

package main

import (
    "fmt"
    "github.com/khachenn/go-release"
)

func main() {
	gv := NewGoVersion()
	gv.UpdateVersion()
}

Author

Khachenn

License

Licensed under the MIT License - see the LICENSE file for details.

Documentation

Index

Constants

View Source
const (
	SvIncMajor = "--major"
	SvIncMinor = "--minor"
	SvIncPatch = "--patch"
)

Variables

Functions

func Versioning

func Versioning(data Version, arg string) string

Types

type GoRelease

type GoRelease struct {
	Version string
	Path    string
}

func NewGoVersion

func NewGoVersion(fileName string) GoRelease

func (GoRelease) UpdateVersion

func (gv GoRelease) UpdateVersion() *string

type Version

type Version struct {
	Version *string `json:"version"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址