Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

validation.gno

0.20 Kb · 9 lines
1package game_vault
2
3func readQueryCSVEntry(csv string, start int) (string, int, bool) {
4	end := start
5	for end < len(csv) && csv[end] != ',' {
6		end++
7	}
8	return csv[start:end], end + 1, end == len(csv)
9}