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

     1  package godata
     2  
     3  import (
     4  	"context"
     5  	"strconv"
     6  )
     7  
     8  func ParseTopString(ctx context.Context, top string) (*GoDataTopQuery, error) {
     9  	i, err := strconv.Atoi(top)
    10  	result := GoDataTopQuery(i)
    11  	return &result, err
    12  }
    13  
    14  func ParseSkipString(ctx context.Context, skip string) (*GoDataSkipQuery, error) {
    15  	i, err := strconv.Atoi(skip)
    16  	result := GoDataSkipQuery(i)
    17  	return &result, err
    18  }