gitlab.com/evatix-go/core@v1.3.55/cmd/main/indexEnumTesting01.go (about)

     1  package main
     2  
     3  import (
     4  	"fmt"
     5  
     6  	"gitlab.com/evatix-go/core/enums/versionindexes"
     7  )
     8  
     9  func indexEnumTesting01() {
    10  	build := versionindexes.Patch
    11  
    12  	toJson := build.Json()
    13  
    14  	fmt.Println(toJson.PrettyJsonString())
    15  	minor := versionindexes.Minor
    16  	fmt.Println(minor.Name(), minor)
    17  	minor.JsonParseSelfInject(&toJson)
    18  	fmt.Println(minor)
    19  
    20  	fmt.Println(minor.NameValue())
    21  }