github.com/CiscoM31/godata@v1.0.10/count_parser.go (about)

     1  package godata
     2  
     3  import (
     4  	"context"
     5  	"strconv"
     6  )
     7  
     8  func ParseCountString(ctx context.Context, count string) (*GoDataCountQuery, error) {
     9  	i, err := strconv.ParseBool(count)
    10  	if err != nil {
    11  		return nil, err
    12  	}
    13  
    14  	result := GoDataCountQuery(i)
    15  
    16  	return &result, nil
    17  }